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

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

  

  

The session_start() function must appear..

  

  

  

  

The inbuilt function to get the number of parameters passed is

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

Polymorphism is also know as…

  

  

  

  

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

  

  

  

  

  

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

  

  

  

  

When dealing with timeout values in sockets, the connection timeout can be changed independently of the read/write time out. Which function must be used for this purpose?

  

  

  

  

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

  

  

  

  

UML stands for?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

Which datatypes are treaded as arrays

  

  

  

  

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?

  

  

  

  

Which class name is reserveed in PHP ?

  

  

  

  

In PHP language PEAR stands for

  

  

  

  

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

  

  

  

  

  

Which one among the following means tight coupling ?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

Which version of PHP introduced Try/catch Exception?

  

  

  

  

Inheritance in class diagrams is depicted by..

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

  

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

  

  

  

  

which of the following is a correct declaration?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

Variables/functions in PHP don't work directly with

  

  

  

  

PHP 4 did not support instanceof. Instead, which function did it provide?

  

  

  

  

# is the visibility code for?

  

  

  

  

PHP files have a default file extension of..

  

  

  

  

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

  

  

  

  

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

  

  

  

  

What functions count elements in an array?

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

Which of the following is Ternary Operator?

  

  

  

  

  

If the diamond is filled it depicts which relationship?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

Which method is invoked when an undefined property is accessed ?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

  

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

  

  

  

  

Which keyword can be used to fix the above error?

  

  

  

  

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

  

  

  

  

A package is a set of related ___.

  

  

  

  

__clone() is run on the ___ object.

  

  

  

  

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 is true for require() and require_once()?

  

  

  

  

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

  

  

  

  

Which version of PHP introduced E_STRICT Error level?

  

  

  

  

Which of the following is not a predefined constant?

  

  

  

  

  

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

  

  

  

  

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

  

  

  

  

Which of the following functions do not return a timestamp? 

  

  

  

  

  

PHP recognizes constructors by the name..

  

  

  

  

How many predefined exceptions does SPL provide access to?

  

  

  

  

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']

  

  

  

  

What is the description of Error level E_ERROR?

  

  

  

  

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

  

  

  

  

How many types of filtering are present in PHP?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

  

Which version introduced the function error_get_last()?

  

  

  

  

Which symbol is used to declare nested namespaces?

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

Multiple select/load is possible with

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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.