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 relationship is illustrated by a line that begins with an unfilled diamond?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

Select the incorrect statement about PHP programming language

  

  

  

  

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?

  

  

  

  

In PHP programming literal is a

  

  

  

  

which of the following is a correct declaration?

  

  

  

  

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

  

  

  

  

Which Apache directive outputs Apache’s server version, server name, port and compile-in modules?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

  

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

  

  

  

  

Which of the following are valid PHP stream transports? 

  

  

  

  

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

  

  

  

  

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 checks for the existence of DNS records?

  

  

  

  

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

  

  

  

  

How many types of filtering are present in PHP?

  

  

  

  

Can joins be nested?

  

  

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

  

  

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

  

  

  

  

In PHP language PEAR stands for

  

  

  

  

How many predefined exceptions does SPL provide access to?

  

  

  

  

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

  

  

  

  

Which of the following functions do not return a timestamp? 

  

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

Which keyword can be used to fix the above error?

  

  

  

  

Which one of the following statements should be used to disable the use of two classes administrator and janitor?

  

  

  

  

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 keyword is used to refer to properties or methods within the class itself?

  

  

  

  

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

  

  

  

  

Say I want to change the extension of a PHP file, which of the following statements should I edit to change from .php to .html in the httpd.conf file?

  

  

  

  

Which of the following are useful for method overloading?

  

  

  

  

Which of the following is Ternary Operator?

  

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

We can use ___ to comment a single line? i) /? ii) // iii) # iv) /* */

  

  

  

  

+ is the visibility code for?

  

  

  

  

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

  

  

  

  

Polymorphism is also know as…

  

  

  

  

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

  

  

  

  

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

  

  

  

  

Which symbol is used to declare nested namespaces?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

Multiple select/load is possible with

  

  

  

  

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

  

  

  

  

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

  

  

  

  

Which of the following is not a predefined constant?

  

  

  

  

  

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

  

  

  

  

Which of the following are valid PHP stream transports? 

  

  

  

  

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

  

  

  

  

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

  

  

  

  

Which method is invoked when an undefined property is accessed ?

  

  

  

  

Since which version of PHP was the directive max_file_limit available.

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

How would you start a session?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

How many error levels are available in PHP?

  

  

  

  

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

  

  

  

  

You can extend the exception base class, but you cannot override any of the preceding methods because the are declared as..

  

  

  

  

Which version introduced the function error_get_last()?

  

  

  

  

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

  

  

  

  

Which of the following is not supported in PHP5?

  

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

Which version of PHP introduced Try/catch Exception?

  

  

  

  

Which class name is reserveed in PHP ?

  

  

  

  

What functions count elements in an array?

  

  

  

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

  

  

  

  

  

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

  

  

  

  

  

You are using sessions and session_register() to register objects. These objects are serialized automatically at the end of each PHP page and are de-serialized automatically on each of the following pages. Is this true or false?

  

  

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

  

  

  

  

Which keyword is used to put a stop on inheritance?

  

  

  

  

What is the description of Error level E_ERROR?

  

  

  

  

# is the visibility code for?

  

  

  

  

A bidirectional relationship in class diagrams is described by..

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

What is the default value of max_input_time directive?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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.