Development - Php - 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 one of the following databases has PHP supported almost since the beginning?

  

  

  

  

What does SPL stand for?

  

  

  

  

Does PHP 5 support exceptions?

  

  

In PHP language PEAR stands for

  

  

  

  

Which of the following operations cannot be performed using the standard ftp:// stream wrapper? 

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

How many error levels are available in PHP?

  

  

  

  

Which version of PHP introduced Try/catch Exception?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

Which of the following is not a predefined constant?

  

  

  

  

  

How would you start a session?

  

  

  

  

Which of the following is a PHP resource?

  

  

  

  

which of the following is a correct declaration?

  

  

  

  

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

  

  

  

  

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?

  

  

  

  

Under what circumstance is it impossible to assign a default value to a parameter while declaring a 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);?

  

  

  

  

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

  

  

Since which version of PHP was the directive max_file_limit available.

  

  

  

  

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

  

  

  

  

Which class name is reserveed in PHP ?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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.