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 of the following statements is incorrect with regard to interfaces?





Can joins be nested?



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





Since which version of PHP was the directive max_file_limit available.





Which of the following is not supported in PHP5?






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





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





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





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





How many predefined exceptions does SPL provide access to?





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





How many ways can a session data be stored?





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





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





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



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





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





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





Which version introduced the function error_get_last()?





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





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





Which one of the following method is invoked when an undefined method is called by client code?





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






What is the default port number of HTTP’s?





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





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





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





Which of the following statements causes PHP to disregard repeated error messages that occur within the same file and on the same line?





A package is a set of related ___.





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





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






There are three different kind of arrays:





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





Which version of PHP introduced Try/catch Exception?





The session_start() function must appear..





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





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





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





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





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





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





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





Which of the following is a PHP resource?





In PHP language PEAR stands for





# is the visibility code for?





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





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





Which version of PHP introduced E_STRICT Error level?





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





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





What is the default value of max_input_time directive?





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





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





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





Which one among the following means tight coupling ?





which of the following is a correct declaration?





Which directive determines how the session information will be stored?





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





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





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





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





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





+ is the visibility code for?





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





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





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





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





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 function checks for the existence of DNS records?





What will happen at the end of the following sequence of SQL commands?   BEGIN TRANSACTION DELETE FROM MYTABLE WHERE ID=1 DELETE FROM OTHERTABLE ROLLBACK TRANSACTION  






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





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





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





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




In PHP programming literal is a





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





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





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 functions will you use to check that the class exists before you work with it?





Which function effectively deletes all sessions that have expired?





How many error levels are available in PHP?





Does PHP 5 support exceptions?



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





Polymorphism is also know as…





What is the description of Error level E_ERROR?





Parameter flags was added in which version of PHP?





A bidirectional relationship in class diagrams is described by..





What does SPL stand for?





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 functions will convert a string to all uppercase?





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





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





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






PHP files have a default file extension of..





How would you start a session?





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





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





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





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





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





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