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 of the following is not a predefined constant?

  

  

  

  

  

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

  

  

  

  

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

  

  

  

  

  

which of the following is a correct declaration?

  

  

  

  

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

  

  

  

  

Which of the following are valid PHP stream transports? 

  

  

  

  

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

  

  

  

  

Which version introduced the function error_get_last()?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

What is the description of Error level E_ERROR?

  

  

  

  

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

  

  

  

  

If you want to temporarily store uploaded files in the /tmp/phpuploads/ directory, which one of the following statement will you use?

  

  

  

  

Multiple select/load is possible with

  

  

  

  

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

  

  

  

  

Which of the following are valid PHP stream transports? 

  

  

  

  

Which directive determines how the session information will be stored?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

How many predefined exceptions does SPL provide access to?

  

  

  

  

+ is the visibility code for?

  

  

  

  

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

  

  

  

  

Which of the following type cast is not correct?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

PHP files have a default file extension of..

  

  

  

  

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

  

  

  

  

In a class diagram the class is divided into three sections, what is displayed in the first section?

  

  

  

  

What does SPL stand for?

  

  

  

  

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

  

  

  

  

UML stands for?

  

  

  

  

Which one of the following statements can be used to establish port 80 connection with www.google.com?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

How would you start a session?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

Which of the following is/are an external data? i) Cookies ii) Input data from a form iii) Server Variables iv) Web services data

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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 are correct ways of creating an array? i) state[0] = “karnataka”; ii) $state[] = array(“karnataka”); iii) $state[0] = “karnataka”; iv) $state = array(“karnataka”);

  

  

  

  

How many error levels are available in PHP?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

Which version of PHP introduced Try/catch Exception?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

Select the incorrect statement about PHP programming language

  

  

  

  

Can joins be nested?

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

Which version of PHP introduced E_STRICT Error level?

  

  

  

  

What will be the output of the following code? echo 30*5 . 7;

  

  

  

  

  

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

  

  

In PHP programming literal is a

  

  

  

  

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

  

  

  

  

Which of the following is not supported in PHP5?

  

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

A bidirectional relationship in class diagrams is described by..

  

  

  

  

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

  

  

  

  

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?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

Since which version of PHP was the directive max_file_limit available.

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

# is the visibility code for?

  

  

  

  

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

  

  

  

  

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

  

  

Which of the following network transports doesn’t PHP support?

  

  

  

  

  

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?

  

  

  

  

__clone() is run on the ___ object.

  

  

  

  

In PHP language PEAR stands for

  

  

  

  

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

  

  

  

  

  

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

  

  

  

  

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

  

  

  

  

Which symbol is used to declare nested namespaces?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

Which one among the following means tight coupling ?

  

  

  

  

Variables/functions in PHP don't work directly with

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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.