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

If the diamond is filled it depicts which relationship?

  

  

  

  

Which of the following are valid PHP stream transports? 

  

  

  

  

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

  

  

  

  

A bidirectional relationship in class diagrams is described by..

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

Which one among the following means tight coupling ?

  

  

  

  

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

  

  

  

  

Which of the following functions do not return a timestamp? 

  

  

  

  

  

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

  

  

  

  

Does PHP 5 support exceptions?

  

  

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

  

  

  

  

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

  

  

  

  

In PHP language PEAR stands for

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

  

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 method introduced in PHP 5, is invoked just before an object is garbage collected?

  

  

  

  

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

  

  

  

  

Since which version of PHP was the directive max_file_limit available.

  

  

  

  

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 DBMSs do not have a native PHP extension?

  

  

  

  

  

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

  

  

  

  

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

  

  

  

  

What is the description of Error level E_ERROR?

  

  

  

  

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

  

  

  

  

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

  

  

Which of the following is Ternary Operator?

  

  

  

  

  

Multiple select/load is possible with

  

  

  

  

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

  

  

  

  

Which of the following are valid PHP stream transports? 

  

  

  

  

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

  

  

  

  

Variables/functions in PHP don't work directly with

  

  

  

  

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

  

  

  

  

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

  

  

  

  

Which one of the following is the correct way of declaring a namespace?

  

  

  

  

Which class name is reserveed in PHP ?

  

  

  

  

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 statements is used to create a table?

  

  

  

  

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 directive should we disable to obscure the fact that PHP is being used on our server?

  

  

  

  

Which keyword is used to put a stop on inheritance?

  

  

  

  

Which one of the following functions will convert a string to all uppercase?

  

  

  

  

__clone() is run on the ___ object.

  

  

  

  

Inheritance in class diagrams is depicted by..

  

  

  

  

Parameter flags was added in which version of PHP?

  

  

  

  

which of the following is a correct declaration?

  

  

  

  

The ........... function is used to read a single character from a file.

  

  

  

  

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

  

  

  

  

  

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

  

  

  

  

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

  

  

  

  

To create an object and set the date to JUNE 22, 2013, which one of the following statement should be executed?

  

  

  

  

Select the incorrect statement about PHP programming language

  

  

  

  

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

  

  

  

  

  

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

  

  

  

  

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

  

  

  

  

Which version introduced the function error_get_last()?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

What functions count elements in an array?

  

  

  

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

  

  

  

  

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

  

  

  

  

# is the visibility code for?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

Which directive determines how the session information will be stored?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

___ code makes change easier because the impact of altering an implementation will be localized to the component being altered.

  

  

  

  

Which one of the following functions finds the last occurrence of a string, returning its numerical position?

  

  

  

  

Atleast how many abstract methods must an abstract class contain?

  

  

  

  

Which logging option’s description is, if an error occurs when writing to the syslog, send output to the system console?

  

  

  

  

Which version of PHP introduced Try/catch Exception?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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?

  

  

  

  

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

  

  

  

  

Which function displays the web page’s most recent modification date?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

Can joins be nested?

  

  

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

  

  

  

  

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

  

  

  

  

+ is the visibility code for?

  

  

  

  

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

  

  

  

  

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.