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

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

  

  

  

  

Since which version of PHP was the directive max_file_limit available.

  

  

  

  

Polymorphism is also know as…

  

  

  

  

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

  

  

  

  

The inbuilt function to get the number of parameters passed is

  

  

  

  

Variables/functions in PHP don't work directly with

  

  

  

  

How many configuration directives pertinent to PHP’s mail function are available?

  

  

  

  

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

  

  

  

  

Which one of the following keyword is used in conjunction with an Exception object?

  

  

  

  

PHP files have a default file extension of..

  

  

  

  

Which of the following is a single global function defined in the jQuery library?

  

  

  

  

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

  

  

  

Which of the following is Ternary Operator?

  

  

  

  

  

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

  

  

  

  

When dealing with timeout values in sockets, the connection timeout can be changed independently of the read/write time out. Which function must be used for this purpose?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

  

Which one of the following statements can be used to establish port 80 connection with www.google.com?

  

  

  

  

Select the incorrect statement about PHP programming language

  

  

  

  

Which directive should we disable to obscure the fact that PHP is being used on our server?

  

  

  

  

Which of the following is not a predefined constant?

  

  

  

  

  

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

  

  

  

  

What function can you use to create your own streams using the PHP stream wrappers and register them within PHP?

  

  

  

  

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

  

  

  

  

The date() function returns ___ representation of the current date and/or time.

  

  

  

  

Which one of the following method is used to retrieve the number of rows affected by an INSERT, UPDATE, or DELETE query?

  

  

  

  

Which one of the following filter is used to filter several variables with the same or different filters?

  

  

  

  

Which version of PHP introduced Try/catch Exception?

  

  

  

  

Which of the following variables does PHP use to authenticate a user? i) $_SERVER['PHP_AUTH_USER'] ii) $_SERVER['PHP_AUTH_USERS'] iii) $_SERVER['PHP_AUTH_PU'] iv) $_SERVER['PHP_AUTH_PW']

  

  

  

  

Atleast how many abstract methods must an abstract class contain?

  

  

  

  

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

  

  

Which one of the following is the correct way of declaring a namespace?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

How many error levels are available in PHP?

  

  

  

  

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

  

  

  

  

If the diamond is filled it depicts which relationship?

  

  

  

  

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

  

  

  

  

Which version of PHP introduced E_STRICT Error level?

  

  

  

  

If you want to temporarily store uploaded files in the /tmp/phpuploads/ directory, which one of the following statement will you use?

  

  

  

  

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”);

  

  

  

  

You use the get_class_methods() function to return the names of all the methods in the class. Which function will you use to print it on the screen?

  

  

  

  

Suppose all web material is located within the directory /home/www. To prevent users from viewing and manipulating files such as /etc/password, which one of the following statements should you use?

  

  

  

  

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

  

  

  

  

  

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

  

  

  

  

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

  

  

  

  

Placing a static method for generating ___ objects in the ___ class is convenient.

  

  

  

  

Which character do the error_reporting directive use to represent the logical operator NOT?

  

  

  

  

Assume you would like to sort an array in ascending order by value while preserving key associations. Which of the following PHP sorting functions would you use?

  

  

  

  

  

In PHP programming literal is a

  

  

  

  

Which method is invoked when an undefined property is accessed ?

  

  

  

  

What will be the output of the following code? echo 30*5 . 7;

  

  

  

  

  

Which of the following are useful for method overloading?

  

  

  

  

Which one of the following is the right description for the method getMessage() ?

  

  

  

  

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

  

  

  

  

When a user confirms that he wishes to delete an entry, that entry’s URL is passed to a function which removes the entry from the ___.

  

  

  

  

Which of the following can you place inside a namespace?

  

  

  

  

The session_start() function must appear..

  

  

  

  

Which directive determines whether PHP scripts on the server can accept file uploads?

  

  

  

  

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

  

  

  

  

__clone() is run on the ___ object.

  

  

  

  

Which keyword is used to put a stop on inheritance?

  

  

  

  

Which of the following statements causes PHP to disregard repeated error messages that occur within the same file and on the same line?

  

  

  

  

Which of the conditional statements is/are supported by PHP? i) if statements ii) if-else statements iii) if-elseif statements iv) switch statements

  

  

  

  

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

  

  

  

  

Which one among the following means tight coupling ?

  

  

  

  

Which class accepts a class name or an object reference and returns an array of interface name?

  

  

  

  

___ 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.

  

  

  

  

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

  

  

  

  

Which one of the following databases has PHP supported almost since the beginning?

  

  

  

  

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

  

  

  

  

Which function is used to remove all HTML tags from a string passed to a form?

  

  

  

  

The ftp_size() function returns the size of a specified file on the FTP server.

  

  

  

  

Which of the following are correct ways of creating an array? i) state[0] = “karnataka”; ii) $state[] = array(“karnataka”); iii) $state[0] = “karnataka”; iv) $state = array(“karnataka”);

  

  

  

  

Which one of the following methods in the exception class, is used to get a nested exception object?

  

  

  

  

Which one of the following statements should you use to set the session username to Nachi?

  

  

  

  

Which method scope prevents a method from being overridden by a subclass?

  

  

  

  

Which of the following PHP function is commonly used when handling authentication via PHP? i) header() ii) footer() iii) inset() iv) isset()

  

  

  

  

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

  

  

  

  

Which of the following is a PHP resource?

  

  

  

  

Which directive determines how the session information will be stored?

  

  

  

  

How many types of filtering are present in PHP?

  

  

  

  

What will be the output if we replace the line $num = preg_grep(“/[0-5]/”, $number); with $num = preg_grep(“/[0-5]/”, $number, PREG_GREP_INVERT);?

  

  

  

  

What is the description of Error level E_ERROR?

  

  

  

  

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

  

  

  

  

What is the default value of max_input_time directive?

  

  

  

  

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

  

  

  

  

# is the visibility code for?

  

  

  

  

There are three different kind of arrays:

  

  

  

  

Which keyword can be used to fix the above error?

  

  

  

  

The ............. statement is used to delete a table.

  

  

  

  

Which of the following is not supported in PHP5?

  

  

  

  

  

The memory_limit is only applicable if ___ is enabled when you configure PHP. Fill in the blank.

  

  

  

  

PHP recognizes constructors by the name..

  

  

  

  

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

  

  

  

  

  

Which of the following are valid PHP stream transports? 

  

  

  

  

What does PHP stand for? i) Personal Home Page ii) Hypertext Preprocessor iii) Pretext Hypertext Processor iv) Preprocessor Home Page

  

  

  

  

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

  

  

  

  

A package is a set of related ___.

  

  

  

  

Which of the following are valid PHP stream transports? 

  

  

  

  

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.