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

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





Which keyword can be used to fix the above error?





Under what circumstance is it impossible to assign a default value to a parameter while declaring a function?






Does PHP 5 support exceptions?



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





Which keyword must be added before $first variable on the third line of the above question to make $second and $first as distinct objects in PHP 5?





Which of the following can you place inside a namespace?





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





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





Object-oriented code tries to minimize dependencies by moving responsibility for handling tasks away from ___ and toward the objects in the system.





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





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 filter is used to filter several variables with the same or different filters?





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





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?



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






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





Which version introduced the function error_get_last()?





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





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





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





Variables/functions in PHP don't work directly with





Can joins be nested?



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





What is the default port number of HTTP’s?





Say you want to report error concerned about fatal run-time, fatal compile-time error and core error which statement would you use?





Inheritance in class diagrams is depicted by..





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





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





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





+ is the visibility code for?





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





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





There are three different kind of arrays:





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





In a class diagram the class is divided into three sections, what is displayed in the first section?





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





Which class name is reserveed in PHP ?





The filesize() function returns the file size in ___.





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





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



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






Which datatypes are treaded as arrays





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 of the following is Ternary Operator?






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





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





Which of the following type cast is not correct?





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





UML stands for?





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





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





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





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





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





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





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





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





Which of the following are useful for method overloading?





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





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





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






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





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





Which one of the following preg PHP function is used to do a find and replace on a string or an array?





How many predefined exceptions does SPL provide access to?





Parameter flags was added in which version of PHP?





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





How many types of filtering are present in PHP?





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 function can you use to create your own streams using the PHP stream wrappers and register them within PHP?





__clone() is run on the ___ object.





The session_start() function must appear..





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





Say we have two compare two strings which of the following function/functions can you use? i) strcmp() ii) strcasecmp() iii) strspn() iv) strcspn()





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





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





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





How many error levels are available in PHP?





Which symbol is used to declare nested namespaces?





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





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





Which of the following is/are an external data? i) Cookies ii) Input data from a form iii) Server Variables iv) Web services data





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





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





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 one of the following statements should you use to set the session username to Nachi?





A bidirectional relationship in class diagrams is described by..





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





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?





# is the visibility code for?





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





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





PHP files have a default file extension of..





How would you start a session?





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






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 array will you get if you convert an object to an array?





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





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