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

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

  

  

  

  

Which version introduced the function error_get_last()?

  

  

  

  

# is the visibility code for?

  

  

  

  

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

  

  

  

  

Since which version of PHP was the directive max_file_limit available.

  

  

  

  

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

  

  

  

  

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

  

  

  

  

  

The inbuilt function to get the number of parameters passed is

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

If the diamond is filled it depicts which relationship?

  

  

  

  

Which of the following is a PHP resource?

  

  

  

  

Which of the following functions do not return a timestamp? 

  

  

  

  

  

Which of the following are valid PHP stream transports? 

  

  

  

  

__clone() is run on the ___ object.

  

  

  

  

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

  

  

  

  

Select the incorrect statement about PHP programming language

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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 preg PHP function is used to do a find and replace on a string or an array?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

Which method is invoked when an undefined property is accessed ?

  

  

  

  

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 of the following can you place inside a namespace?

  

  

  

  

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

  

  

  

  

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

  

  

  

Which version of PHP introduced Try/catch Exception?

  

  

  

  

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

  

  

  

  

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?

  

  

  

  

Which of the following is not a predefined constant?

  

  

  

  

  

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?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

How many error levels are available in PHP?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

In PHP programming literal is a

  

  

  

  

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

  

  

  

  

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

  

  

  

  

  

How many predefined exceptions does SPL provide access to?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

___ 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 should be used to disable the use of two classes administrator and janitor?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

There are three different kind of arrays:

  

  

  

  

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

  

  

  

  

Which one of the following function returns the port number of a specified service?

  

  

  

  

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

  

  

  

  

Which function effectively deletes all sessions that have expired?

  

  

  

  

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

  

  

  

  

Which of the following is not supported in PHP5?

  

  

  

  

  

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

  

  

  

  

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?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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?

  

  

  

  

  

Multiple select/load is possible with

  

  

  

  

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

  

  

  

  

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

  

  

  

  

A bidirectional relationship in class diagrams is described by..

  

  

  

  

What is the default port number of HTTP’s?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

How would you start a session?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

What does SPL stand for?

  

  

  

  

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

  

  

  

  

Which class name is reserveed in PHP ?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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.