Development - Php Test

Test Instructions :

1. The Test is 1hr duration.
2. The Test Paper consists of 30 questions. The maximum marks are 30.
3. All the questions are multiple choice question type with three options for each question.
4. Out of the three options given for each question, only one option is the correct answer.
5. Each question is allotted 1 mark for each correct response.
6. 0.25 will be deducted for incorrect response of each question.
Start Test

   Time Left : 00 : 30    : 00

Which two predefined variables are used to retrieve information from forms?

  

  

  

  

Which one of the following is displayed in the third section of the class diagram?

  

  

  

  

Which of the following statements is incorrect with regard to interfaces?

  

  

  

  

Parameter flags was added in which version of PHP?

  

  

  

  

How many predefined exceptions does SPL provide access to?

  

  

  

  

Which method introduced in PHP 5, is invoked just before an object is garbage collected?

  

  

  

  

The ........... function is used to read a single character from a file.

  

  

  

  

Which one of the following function is used to retrieve the MX records for the domain specified by hostname?

  

  

  

  

To create an object and set the date to JUNE 22, 2013, which one of the following statement should be executed?

  

  

  

  

Which version of PHP introduced E_STRICT Error level?

  

  

  

  

Which keyword is used to refer to properties or methods within the class itself?

  

  

  

  

PHP provides built-in interceptor methods, which can intercept messages sent to undefined methods and properties. This is also known as ___.

  

  

  

  

Select the incorrect statement about PHP programming language

  

  

  

  

Which one of the following methods recuperates any memory consumed by a result set?

  

  

  

  

he windows version of PHP has built-in support for the FTP extension

  

  

Which version introduced the function error_get_last()?

  

  

  

  

___ occurs when discrete parts of a system’s code are tightly bound up with one another so that a change in one part necessitates changes in the others.

  

  

  

  

Which one of the following statements is true about sequence diagrams?

  

  

  

  

Which of the following operations cannot be performed using the standard ftp:// stream wrapper? 

  

  

  

  

UML stands for?

  

  

  

  

What functions count elements in an array?

  

  

  

You can extend the exception base class, but you cannot override any of the preceding methods because the are declared as..

  

  

  

  

The windows version of PHP has built-in support for the FTP extension

  

  

Which of the below statements is equivalent to $add += $add ?

  

  

  

  

The session_start() function must appear..

  

  

  

  

Which one among the following means tight coupling ?

  

  

  

  

Can joins be nested?

  

  

If the directive session.cookie_lifetime is set to 3600, the cookie will live until..

  

  

  

  

Which one of the following functions finds the last occurrence of a string, returning its numerical position?

  

  

  

  

Which of the following network transports doesn’t PHP support?

  

  

  

  

  

Which one of the following preg PHP function is used to do a find and replace on a string or an array?

  

  

  

  

What is the description of Error level E_ERROR?

  

  

  

  

Atleast how many abstract methods must an abstract class contain?

  

  

  

  

The FTP functions are used to ....... files from file servers.

  

  

  

  

  

Which one of the following is the very first task executed by a session enabled page?

  

  

  

  

Which parameter determines whether the old session file will also be deleted when the session ID is regenerated?

  

  

  

  

What is the difference between print() and echo()?

  

  

  

  

  

Since which version of PHP was the directive max_file_limit available.

  

  

  

  

Which of the following is/are an exception? i) OutOfBoundException ii) OutOfRangeException iii) OverflowException iv) UnderflowException

  

  

  

  

Which one of the following function is used to send a e-mail using PHP script?

  

  

  

  

In PHP programming literal is a

  

  

  

  

___ code makes change easier because the impact of altering an implementation will be localized to the component being altered.

  

  

  

  

Which one of the following function should I use to find the parent class of a class?

  

  

  

  

The ......... function parses an English textual date or time into a Unix timestamp 

  

  

  

  

Which directive determines which degree of server details is provided if the ServerSignature directive is enabled?

  

  

  

  

Which one of the following statements should be used to include a file?

  

  

  

  

Before you can start processing images with PHP, you must first add the ability to upload images to your administrative form on ___.

  

  

  

  

The developers of PHP deprecated the safe mode feature as of which PHP version.

  

  

  

  

Which one of the following functions will you use to check that the class exists before you work with it?

  

  

  

  

Which of the following is a PHP resource?

  

  

  

  

Which one of the following method is invoked when an undefined method is called by client code?

  

  

  

  

Which one of the following method is invoked when a value is assigned to an undefined property?

  

  

  

  

Which one of the following functions is used to search a string?

  

  

  

  

The ftp_mkdir() function creates a directory on the FTP server.

  

  

  

  

If the diamond is filled it depicts which relationship?

  

  

  

  

Which of the following PHP statements will output Hello World on the screen? i) echo (“Hello World”); ii) print (“Hello World”); iii) printf (“Hello World”); iv) sprintf (“Hello World”);

  

  

  

  

Which of the following statements is used to add an attachment to the mail?

  

  

  

  

How would you store order number (34) in an 'OrderCookie'?

  

  

  

  

Which one of the following function is used to return an array consisting of various DNS resource records pertinent to a specific domain?

  

  

  

  

Which of the following is/are an external data? i) Cookies ii) Input data from a form iii) Server Variables iv) Web services data

  

  

  

  

Which of the following is not supported in PHP5?

  

  

  

  

  

What will be the output if a protected method is given as argument to the function method_exist()?

  

  

  

  

Inheritance in class diagrams is depicted by..

  

  

  

  

A bidirectional relationship in class diagrams is described by..

  

  

  

  

Which one of the following statements should be used to disable the use of two classes administrator and janitor?

  

  

  

  

Which one of the following statements is true for require() and require_once()?

  

  

  

  

Which keyword can be used to fix the above error?

  

  

  

  

We can use ___ to comment a single line? i) /? ii) // iii) # iv) /* */

  

  

  

  

Which of the following is not a predefined constant?

  

  

  

  

  

How would you start a session?

  

  

  

  

Which one of the following functions can be used to concatenate array elements to form a single delimited string?

  

  

  

  

Which of the following is Ternary Operator?

  

  

  

  

  

Under what circumstance is it impossible to assign a default value to a parameter while declaring a function?

  

  

  

  

  

Which one of the following is know as the key to object-oriented programming ?

  

  

  

  

Which function displays the web page’s most recent modification date?

  

  

  

  

Which relationship is illustrated by a line that begins with an unfilled diamond?

  

  

  

  

The extent to which proximate procedures are related to one another is known as…

  

  

  

  

Say we have two compare two strings which of the following function/functions can you use? i) strcmp() ii) strcasecmp() iii) strspn() iv) strcspn()

  

  

  

  

Which one of the following statements can be used to select the database?

  

  

  

  

Which keyword is used to put a stop on inheritance?

  

  

  

  

+ is the visibility code for?

  

  

  

  

Which of the following multithreaded servers allow PHP as a plug-in?

  

  

  

  

In PHP in order to access MySQL database you will use:

  

  

  

  

Which one of the following is the default PHP session name?

  

  

  

  

Polymorphism is also know as…

  

  

  

  

You need to count the number of parameters given in the URL by a POST operation. The correct way is:

  

  

  

  

Does PHP 5 support exceptions?

  

  

PHP files have a default file extension of..

  

  

  

  

Which of the following functions do not return a timestamp? 

  

  

  

  

  

Which of the following can you place inside a namespace?

  

  

  

  

In PHP language PEAR stands for

  

  

  

  

How would you store order number (34) in an 'OrderCookie'?

  

  

  

  

In mail($param2, $param2, $param3, $param4), the $param2 contains:

  

  

  

  

# is the visibility code for?

  

  

  

  

The URLs in the administrative links won’t mean anything to admin.php unless you modify ___.

  

  

  

  

Which one of the following function checks for the existence of DNS records?

  

  

  

  

Which function is used to erase all session variables stored in the current session?

  

  

  

  

Till which version of PHP, developers were forced to name their files in a global context?

  

  

  

  

Which one of the following statements should be used to disable just the fopen(), and file() functions?

  

  

  

  

which of the following pair have non-associative equal precedence?

  

  

  

Note:
  • Click the 'Submit Test' button given in the bottom of this page to Submit your answers.
  • Test will be submitted automatically if the time expired.
  • Don't refresh the page.