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 keyword is used to refer to properties or methods within the class itself?





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





Which of the following can you place inside a namespace?





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





__clone() is run on the ___ object.





Polymorphism is also know as…





What is the description of Error level E_ERROR?





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





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





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





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





Which keyword can be used to fix the above error?





# is the visibility code for?





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





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





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?





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





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





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





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





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





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





How would you start a session?





In PHP programming literal is a





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





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






Before you can start processing images with PHP, you must first add the ability to upload images to your administrative form on ___.





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





Which datatypes are treaded as arrays





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






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





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





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 of the following printing construct/function accpets multiple parameters?





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





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






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





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





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





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





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





A package is a set of related ___.





How many predefined exceptions does SPL provide access to?





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



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





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





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?





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





PHP files have a default file extension of..





What does SPL stand for?





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





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





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





If the diamond is filled it depicts which relationship?





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





Which directive determines how the session information will be stored?





Which of the following type cast is not correct?





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





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





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





Which version introduced the function error_get_last()?





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





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





Which version of PHP introduced Try/catch Exception?





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





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





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





Variables/functions in PHP don't work directly with





How many ways can a session data be stored?





Which one among the following means tight coupling ?





In PHP language PEAR stands for





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






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





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





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



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





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





Select the incorrect statement about PHP programming language





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





PHP recognizes constructors by the name..





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





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





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





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





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





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





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?





There are three different kind of arrays:





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





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





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





The session_start() function must appear..





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





Which one of the following statements can be used to establish port 80 connection with





Which of the following are valid PHP stream transports? 





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





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 one of the following preg PHP function is used to do a find and replace on a string or an array?





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