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

If the diamond is filled it depicts which relationship?





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





+ is the visibility code for?





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





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





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?





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





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





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





Which one among the following means tight coupling ?





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?



What is the default value of max_input_time directive?





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





Inheritance in class diagrams is depicted by..





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





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






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





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





PHP recognizes constructors by the name..





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





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





What functions count elements in an array?




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





Multiple select/load is possible with





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





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





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





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?





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






Variables/functions in PHP don't work directly with





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





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





A package is a set of related ___.





Which of the following functions do not return a timestamp? 






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




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 one of the following will you use to check the class of an object?





Which datatypes are treaded as arrays





How would you start a session?





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





Which version of PHP introduced Try/catch Exception?





Which method is invoked when an undefined property is accessed ?





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





The inbuilt function to get the number of parameters passed is





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





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





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





What is the default port number of HTTP’s?





Select the incorrect statement about PHP programming language





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





Since which version of PHP was the directive max_file_limit available.





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





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



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 variable declarations within a class is invalid in PHP5?





How many times can you define __autoload in a process?





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





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





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





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





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






Which of the following are valid PHP stream transports? 





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





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





__clone() is run on the ___ object.





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





which of the following is a correct declaration?





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





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






In PHP language PEAR stands for





Which one of the following preg PHP functions is used to take a string, and put it in an array?





How many predefined exceptions does SPL provide access to?





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





Which of the following statements is used to add an attachment to the mail?





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





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





A bidirectional relationship in class diagrams is described by..





Does PHP 5 support exceptions?



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





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





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





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





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





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





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





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





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





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





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





In PHP programming literal is a





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





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?






Which version introduced the function error_get_last()?





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






UML stands for?





Which one of the following statements should be used to disable the use of two classes administrator and janitor?





Which of the following are valid PHP stream transports? 





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





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