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?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

  

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

  

  

  

  

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

  

  

  

  

Study following steps and determine the correct order (1) Open a connection to MySql server (2) Execute the SQL query (3) Fetch the data from query (4) Select database (5) Close Connection

  

  

  

  

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

  

  

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

  

  

  

  

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

  

  

  

  

Which of the following can you place inside a namespace?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

  

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

  

  

  

  

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

  

  

  

  

Which of the following type cast is not correct?

  

  

  

  

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?

  

  

  

  

  

What is the default value of max_input_time directive?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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?

  

  

  

  

  

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 of the following are valid PHP stream transports? 

  

  

  

  

Polymorphism is also know as…

  

  

  

  

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

  

  

  

  

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

  

  

  

  

Multiple select/load is possible with

  

  

  

  

Which version introduced the function error_get_last()?

  

  

  

  

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

  

  

  

  

Which of the following are useful for method overloading?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

which of the following pair have non-associative equal precedence?

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

Since which version of PHP was the directive max_file_limit available.

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

Which of the following functions do not return a timestamp? 

  

  

  

  

  

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?

  

  

  

  

How would you start a session?

  

  

  

  

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

  

  

  

  

Which one of the following statements should be used to include a file?

  

  

  

  

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

  

  

  

  

In PHP programming literal is a

  

  

  

  

A package is a set of related ___.

  

  

  

  

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

  

  

  

  

Which version of PHP introduced Try/catch Exception?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

# is the visibility code for?

  

  

  

  

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

  

  

  

  

Which of the following are valid PHP stream transports? 

  

  

  

  

Which one among the following means tight coupling ?

  

  

  

  

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

  

  

  

  

Which of the following is not supported in PHP5?

  

  

  

  

  

__clone() is run on the ___ object.

  

  

  

  

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

  

  

  

  

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 one of the following functions finds the last occurrence of a string, returning its numerical position?

  

  

  

  

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

  

  

  

  

Which keyword is used to refer to properties or methods within the class itself?

  

  

  

  

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

  

  

  

  

If the diamond is filled it depicts which relationship?

  

  

  

  

Which of the following is/are not an exception? i) BadFunctionCallException ii) BadMethodCallException iii) LogicException iv) DomainException

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

If the directive session.cookie_lifetime is set to 3600, the cookie will live until..

  

  

  

  

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

  

  

  

  

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

  

  

  

  

  

Which character do the error_reporting directive use to represent the logical operator NOT?

  

  

  

  

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

  

  

  

  

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 one of the following is the default PHP session name?

  

  

  

  

Which one of the following keyword is used in conjunction with an Exception object?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

A bidirectional relationship in class diagrams is described by..

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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 statements can be used to establish port 80 connection with www.google.com?

  

  

  

  

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

  

  

  

  

Inheritance in class diagrams is depicted by..

  

  

  

  

Can joins be nested?

  

  

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.