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 FTP functions are used to ....... files from file servers.

  

  

  

  

  

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

  

  

  

  

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

  

  

  

  

Parameter flags was added in which version of PHP?

  

  

  

  

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

  

  

  

  

Which method is invoked when an undefined property is accessed ?

  

  

  

  

Which of the following functions do not return a timestamp? 

  

  

  

  

  

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

  

  

  

  

Which of the following is Ternary Operator?

  

  

  

  

  

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

  

  

  

  

___ 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 function should I use to find the parent class of a class?

  

  

  

  

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

  

  

  

  

Which keyword can be used to fix the above error?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

Study following steps and determine the correct order (1) Open a connection to MySql server (2) Execute the SQL query (3) Fetch the data from query (4) Select database (5) Close Connection

  

  

  

  

Which of the following are valid PHP stream transports? 

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

Variables/functions in PHP don't work directly with

  

  

  

  

What is the default port number of HTTP’s?

  

  

  

  

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

  

  

  

  

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?

  

  

  

  

How would you start a session?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

Which directive determines how the session information will be stored?

  

  

  

  

How many error levels are available in PHP?

  

  

  

  

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

  

  

  

  

A bidirectional relationship in class diagrams is described by..

  

  

  

  

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

  

  

  

  

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

  

  

  

  

Inheritance in class diagrams is depicted by..

  

  

  

  

Which of the following type cast is not correct?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

The inbuilt function to get the number of parameters passed is

  

  

  

  

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

  

  

  

  

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

  

  

  

  

What is the description of Error level E_ERROR?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

In PHP programming literal is a

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

Which of the following is not supported in PHP5?

  

  

  

  

  

A package is a set of related ___.

  

  

  

  

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

  

  

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

  

  

  

  

Which datatypes are treaded as arrays

  

  

  

  

Which version of PHP introduced Try/catch Exception?

  

  

  

  

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

  

  

  

  

Which one of the following will you use to check the class of an object?

  

  

  

  

__clone() is run on the ___ object.

  

  

  

  

How many types of filtering are present in PHP?

  

  

  

  

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

  

  

  

  

  

___ 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 databases has PHP supported almost since the beginning?

  

  

  

  

UML stands for?

  

  

  

  

Object-oriented code tries to minimize dependencies by moving responsibility for handling tasks away from ___ and toward the objects in the system.

  

  

  

  

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

  

  

  

  

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 is a single global function defined in the jQuery library?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

Which version introduced the function error_get_last()?

  

  

  

  

What does SPL stand for?

  

  

  

  

Multiple select/load is possible with

  

  

  

  

Does PHP 5 support exceptions?

  

  

Atleast how many abstract methods must an abstract class contain?

  

  

  

  

Since which version of PHP was the directive max_file_limit available.

  

  

  

  

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

  

  

  

  

Which of the following is/are not an exception? i) BadFunctionCallException ii) BadMethodCallException iii) LogicException iv) DomainException

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

Which function effectively deletes all sessions that have expired?

  

  

  

  

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

  

  

  

  

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

  

  

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

  

  

  

  

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

  

  

  

  

Which symbol is used to declare nested namespaces?

  

  

  

  

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

  

  

  

  

How many ways can a session data be stored?

  

  

  

  

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

  

  

  

Which of the following are useful for method overloading?

  

  

  

  

Which class name is reserveed in PHP ?

  

  

  

  

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

  

  

  

  

If the diamond is filled it depicts which relationship?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

Select the incorrect statement about PHP programming language

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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.