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 method scope prevents a method from being overridden by a subclass?





What functions count elements in an array?




Which version introduced the function error_get_last()?





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





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?





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





Multiple select/load is possible with





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





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





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





How many error levels are available in PHP?





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





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





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





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 method is used to retrieve the number of rows affected by an INSERT, UPDATE, or DELETE query?





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





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





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 type cast is not correct?





How many times can you define __autoload in a process?





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 will be the output of the following code? echo 30*5 . 7;






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





The memory_limit is only applicable if ___ is enabled when you configure PHP. Fill in the blank.





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





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





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





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




Which one among the following means tight coupling ?





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





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





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





Which function effectively deletes all sessions that have expired?





Since which version of PHP was the directive max_file_limit available.





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 databases has PHP supported almost since the beginning?





How many ways can a session data be stored?





Does PHP 5 support exceptions?



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





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





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





Variables/functions in PHP don't work directly with





The session_start() function must appear..





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





+ is the visibility code for?





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






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





which of the following is a correct declaration?





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





Which of the following are useful for method overloading?





PHP recognizes constructors by the name..





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





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 Apache directive outputs Apache’s server version, server name, port and compile-in modules?





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





UML stands for?





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





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





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





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





Which one of the following is displayed in the third section of the class diagram?





Which of the following is not a predefined constant?






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





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





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





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





Which one of the following functions will you use to check that the class exists before you work with it?





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





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





Which of the following can you place inside a namespace?





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





Parameter flags was added in which version of PHP?





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





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





Inheritance in class diagrams is depicted by..





How many predefined exceptions does SPL provide access to?





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





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





Polymorphism is also know as…





Which symbol is used to declare nested namespaces?





Which version of PHP introduced E_STRICT Error level?





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





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





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





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





Which of the following is a PHP resource?





__clone() is run on the ___ object.





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





How would you start a session?





What is the description of Error level E_ERROR?





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





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





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





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





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 one of the following methods recuperates any memory consumed by a result set?





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





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





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