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?

  

  

  

  

Say you want to report error concerned about fatal run-time, fatal compile-time error and core error which statement would you use?

  

  

  

  

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

  

  

  

  

Which function effectively deletes all sessions that have expired?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

Which of the following can you place inside a namespace?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

Which class name is reserveed in PHP ?

  

  

  

  

PHP does not have an built in support for which one of the following ?

  

  

  

  

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

  

  

  

  

Since which version of PHP was the directive max_file_limit available.

  

  

  

  

Which of the following is not supported in PHP5?

  

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

Which function was introduced to help automate the inclusion of class files?

  

  

  

  

Parameter flags was added in which version of PHP?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

  

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

  

  

  

  

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 is know as the key to object-oriented programming ?

  

  

  

  

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

  

  

  

  

What functions count elements in an array?

  

  

  

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

  

  

  

  

How would you start a session?

  

  

  

  

Multiple select/load is possible with

  

  

  

  

Which one among the following means tight coupling ?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

  

In PHP programming literal is a

  

  

  

  

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

  

  

  

  

Polymorphism is also know as…

  

  

  

  

If the diamond is filled it depicts which relationship?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

A bidirectional relationship in class diagrams is described by..

  

  

  

  

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?

  

  

  

  

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?

  

  

  

  

  

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

  

  

  

  

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

  

  

  

  

Select the incorrect statement about PHP programming language

  

  

  

  

Which version introduced the function error_get_last()?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

  

PHP 4 did not support instanceof. Instead, which function did it provide?

  

  

  

  

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 one of the following statements can be used to select the database?

  

  

  

  

Which datatypes are treaded as arrays

  

  

  

  

Which method is invoked when an undefined property is accessed ?

  

  

  

  

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

  

  

  

  

When you’re uploading files you need to set the enctype of the form to ___.

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

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

  

  

  

  

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

  

  

  

  

In PHP language PEAR stands for

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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 function is used to send a e-mail using PHP script?

  

  

  

  

Which of the following variable declarations within a class is invalid in PHP5?

  

  

  

  

___ are used in class diagrams to describe the way in which specific elements should be used.

  

  

  

  

Which one of the following is displayed below the class name in the class diagrams?

  

  

  

  

Does PHP 5 support exceptions?

  

  

Variables/functions in PHP don't work directly with

  

  

  

  

PHP files have a default file extension of..

  

  

  

  

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

  

  

  

  

How many error levels are available in PHP?

  

  

  

  

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

  

  

  

  

Which directive determines how the session information will be stored?

  

  

  

  

which of the following is a correct declaration?

  

  

  

  

Which keyword must be added before $first variable on the third line of the above question to make $second and $first as distinct objects in PHP 5?

  

  

  

  

Which of the following are valid PHP stream transports? 

  

  

  

  

Which keyword can be used to fix the above error?

  

  

  

  

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

  

  

  

  

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

  

  

  

__clone() is run on the ___ object.

  

  

  

  

Which one of the following should not be used while sending passwords or other sensitive information?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

The inbuilt function to get the number of parameters passed is

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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.