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 one of the following function is used to return an array consisting of various DNS resource records pertinent to a specific domain?

  

  

  

  

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 statements causes PHP to disregard repeated error messages that occur within the same file and on the same line?

  

  

  

  

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

  

  

  

  

Which class name is reserveed in PHP ?

  

  

  

  

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

  

  

  

  

Does PHP 5 support exceptions?

  

  

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

  

  

  

  

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

  

  

  

  

Which one among the following means tight coupling ?

  

  

  

  

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

  

  

  

  

Which of the following is a PHP resource?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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 is a correct declaration?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

Which version introduced the function error_get_last()?

  

  

  

  

How many ways can a session data be stored?

  

  

  

  

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

  

  

  

  

Which function effectively deletes all sessions that have expired?

  

  

  

  

The inbuilt function to get the number of parameters passed is

  

  

  

  

Which function initializes the constants necessary for using the openlog(), clodelog(), and syslog() functions?

  

  

  

  

Which directive determines how the session information will be stored?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

+ 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

  

  

  

  

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

  

  

  

  

Atleast how many abstract methods must an abstract class contain?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

  

Inheritance in class diagrams is depicted by..

  

  

  

  

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

  

  

  

  

Which relationship is illustrated by a line that begins with an unfilled diamond?

  

  

  

  

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

  

  

  

  

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 of the following is not supported in PHP5?

  

  

  

  

  

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

  

  

  

  

# is the visibility code for?

  

  

  

  

What is the description of Error level E_ERROR?

  

  

  

  

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

  

  

  

  

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 can be used to select the database?

  

  

  

  

Which one of the following is displayed in the third section of the class diagram?

  

  

  

  

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

  

  

  

  

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?

  

  

  

  

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

  

  

  

  

  

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

  

  

  

  

There are three different kind of arrays:

  

  

  

  

What is the default value of max_input_time directive?

  

  

  

  

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

  

  

  

  

UML stands for?

  

  

  

  

Which one of the following is know as the key to object-oriented programming ?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

A package is a set of related ___.

  

  

  

  

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

  

  

  

  

What does SPL stand for?

  

  

  

  

PHP files have a default file extension of..

  

  

  

  

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

  

  

  

  

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

  

  

  

  

  

Multiple select/load is possible with

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

Which keyword can be used to fix the above error?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

How would you start a session?

  

  

  

  

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

  

  

  

  

How many predefined exceptions does SPL provide access to?

  

  

  

  

Which version of PHP introduced Try/catch Exception?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

Parameter flags was added in which version of PHP?

  

  

  

  

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

  

  

  

  

A bidirectional relationship in class diagrams is described by..

  

  

  

  

How many types of filtering are present in PHP?

  

  

  

  

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.