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





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





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






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





Which of the below statements is equivalent to $add += $add ?





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





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





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





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





Which of the following is Ternary Operator?






What functions count elements in an array?




Which of the following statements is incorrect with regard to interfaces?





Polymorphism is also know as…





Which datatypes are treaded as arrays





The ............. statement is used to delete a table.





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





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





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





__clone() is run on the ___ object.





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





Which of the following are valid PHP stream transports? 





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





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





Which symbol is used to declare nested namespaces?





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





The inbuilt function to get the number of parameters passed is





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





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





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





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





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





A bidirectional relationship in class diagrams is described by..





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





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





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





In PHP programming literal is a





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





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





Which function effectively deletes all sessions that have expired?





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





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





A package is a set of related ___.





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




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





___ 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 version of PHP introduced Try/catch Exception?





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





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





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





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



Which keyword is used to refer to properties or methods within the class itself?





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





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





Which keyword can be used to fix the above error?





Which of the following functions do not return a timestamp? 






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





How many types of filtering are present in PHP?





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





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





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





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





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





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





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





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





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





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





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





Which directive determines how the session information will be stored?





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 statements can be used to select the database?





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





Which one of the following will you use to check the class of an object?





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





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





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





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





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





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





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





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





Does PHP 5 support exceptions?



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





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





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 version of PHP introduced E_STRICT Error level?





Which function was introduced to help automate the inclusion of class files?





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





Select the incorrect statement about PHP programming language





Variables/functions in PHP don't work directly with





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





In PHP language PEAR stands for





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






Which of the following can you place inside a namespace?





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





Multiple select/load is possible with





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





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 one among the following means tight coupling ?





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