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 one of the following functions can be used to concatenate array elements to form a single delimited string?

  

  

  

  

Which method is invoked when an undefined property is accessed ?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

A package is a set of related ___.

  

  

  

  

Which one of the following preg PHP functions is used to take a string, and put it in an array?

  

  

  

  

Which of the following are valid PHP stream transports? 

  

  

  

  

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

  

  

  

  

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

  

  

  

  

Which keyword is used to put a stop on inheritance?

  

  

  

  

Which version of PHP introduced E_STRICT Error level?

  

  

  

  

Which version of PHP introduced Try/catch Exception?

  

  

  

  

Which of the following DBMSs do not have a native PHP extension?

  

  

  

  

  

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

  

  

  

  

Since which version of PHP was the directive max_file_limit available.

  

  

  

  

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

  

  

  

  

Which of the following is a PHP resource?

  

  

  

  

How many times can you define __autoload in a process?

  

  

  

  

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

  

  

  

  

Which keyword can be used to fix the above error?

  

  

  

  

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

  

  

  

  

Which of the following type cast is not correct?

  

  

  

  

Which one of the following does not describe a validating filter?

  

  

  

  

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?

  

  

  

  

What array will you get if you convert an object to an array?

  

  

  

  

If the diamond is filled it depicts which relationship?

  

  

  

  

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

  

  

  

  

Which of the following printing construct/function accpets multiple parameters?

  

  

  

  

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']

  

  

  

  

Parameter flags was added in which version of PHP?

  

  

  

  

Can joins be nested?

  

  

What is the difference between stat() and fstat()?

  

  

  

  

  

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

  

  

  

  

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

  

  

  

  

  

PHP recognizes constructors by the name..

  

  

  

  

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

  

  

  

  

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

  

  

  

  

  

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

  

  

  

  

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

  

  

  

  

What is the default value of max_execution_time directive? This directive specifies how many seconds a script can execute before being terminated.

  

  

  

  

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

  

  

  

  

Polymorphism is also know as…

  

  

  

  

Which function is responsible for sending a custom message to the system log?

  

  

  

  

A PHP script should start with ___ and end with ___:

  

  

  

  

Which logging option’s description is, if an error occurs when writing to the syslog, send output to the system console?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

During PHP installation which function creates a HTML page to display records how PHP was installed ?

  

  

  

  

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 will you use to check the class of an object?

  

  

  

  

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

  

  

  

  

Inheritance in class diagrams is depicted by..

  

  

  

  

___ 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 method is used to retrieve the number of rows affected by an INSERT, UPDATE, or DELETE query?

  

  

  

  

Which symbol is used to declare nested namespaces?

  

  

  

  

How many error levels are available in PHP?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

If you call a method and it doesn’t exist it’ll cause a problem. To check the method which function will you use?

  

  

  

  

In PHP programming literal is a

  

  

  

  

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?

  

  

  

  

Which one of the following is not a preg PHP function?

  

  

  

  

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

  

  

  

  

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?

  

  

  

  

  

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 developers of PHP deprecated the safe mode feature as of which PHP version.

  

  

  

  

What is the default value of max_input_time directive?

  

  

  

  

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

  

  

Which directive determines how the session information will be stored?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

Which one of the following filter checks if variable of specified type exists?

  

  

  

  

which of the following is a correct declaration?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

Which one among the following means tight coupling ?

  

  

  

  

How many types of filtering are present in PHP?

  

  

  

  

Which function initializes the constants necessary for using the openlog(), clodelog(), and syslog() functions?

  

  

  

  

Which one of the following statements is used to create a table?

  

  

  

  

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

  

  

  

  

What functions count elements in an array?

  

  

  

Which one of the following functions will convert a string to all uppercase?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

How would you start a session?

  

  

  

  

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

  

  

  

  

Variables/functions in PHP don't work directly with

  

  

  

  

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

  

  

  

  

Which of the following are valid PHP stream transports? 

  

  

  

  

Which function is used to transform PHP’s session-handler behavior into that defined by your custom handler?

  

  

  

  

Which of the following is not supported in PHP5?

  

  

  

  

  

The filesize() function returns the file size in ___.

  

  

  

  

Which of the following is used to maintain the value of a variable over different pages?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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.