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

Select the incorrect statement about PHP programming language

  

  

  

  

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

  

  

  

  

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

  

  

  

  

What is the description of Error level E_ERROR?

  

  

  

  

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

  

  

  

  

  

Parameter flags was added in which version of PHP?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

If the diamond is filled it depicts which relationship?

  

  

  

  

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

  

  

  

  

  

Which one of the following method is invoked when a value is assigned to an undefined property?

  

  

  

  

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

  

  

  

  

What functions count elements in an array?

  

  

  

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

  

  

  

  

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

  

  

  

  

How would you start a session?

  

  

  

  

Does PHP 5 support exceptions?

  

  

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

  

  

  

  

Which of the following is not a predefined constant?

  

  

  

  

  

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

  

  

  

  

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

  

  

  

  

How many error levels are available in PHP?

  

  

  

  

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

  

  

  

  

  

How many predefined exceptions does SPL provide access to?

  

  

  

  

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

  

  

  

  

What will happen at the end of the following sequence of SQL commands?   BEGIN TRANSACTION DELETE FROM MYTABLE WHERE ID=1 DELETE FROM OTHERTABLE ROLLBACK TRANSACTION  

  

  

  

  

  

Which symbol is used to declare nested namespaces?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

In PHP language PEAR stands for

  

  

  

  

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

  

  

  

  

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

  

  

  

  

UML stands for?

  

  

  

  

Multiple select/load is possible with

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

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 you use to set the session username to Nachi?

  

  

  

  

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

  

  

  

  

Which of the following is not supported in PHP5?

  

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

How many times can you define __autoload in a process?

  

  

  

  

Which of the following are useful for method overloading?

  

  

  

  

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

  

  

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

  

  

  

  

Which method is invoked when an undefined property is accessed ?

  

  

  

  

Which version of PHP introduced Try/catch Exception?

  

  

  

  

What is the default port number of HTTP’s?

  

  

  

  

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

  

  

  

  

The session_start() function must appear..

  

  

  

  

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

  

  

  

  

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

  

  

  

  

The developers of PHP deprecated the safe mode feature as of which PHP version.

  

  

  

  

Which of the following type cast is not correct?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

Can joins be nested?

  

  

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 function displays the web page’s most recent modification date?

  

  

  

  

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?

  

  

  

  

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

  

  

  

  

+ is the visibility code for?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

Which class name is reserveed in PHP ?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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?

  

  

  

  

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?

  

  

  

  

Atleast how many abstract methods must an abstract class contain?

  

  

  

  

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

  

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

Which directive determines how the session information will be stored?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

Which of the following are valid PHP stream transports? 

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

In PHP programming literal is a

  

  

  

  

Inheritance in class diagrams is depicted by..

  

  

  

  

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.