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 are useful for method overloading?





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





Which keyword can be used to fix the above error?





What is the description of Error level E_ERROR?





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





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





Which of the following functions do not return a timestamp? 






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






How many times can you define __autoload in a process?





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





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





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



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?





__clone() is run on the ___ object.





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





A bidirectional relationship in class diagrams is described by..





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





In PHP programming literal is a





Which of the following type cast is not correct?





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





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 relationship is illustrated by a line that begins with an unfilled diamond?





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





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





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





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





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





Which class name is reserveed in PHP ?





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 function is used to remove all HTML tags from a string passed to a form?





The inbuilt function to get the number of parameters passed is





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





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






Which of the following is not supported in PHP5?






Which of the following are valid PHP stream transports? 





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 datatypes are treaded as arrays





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





Which one of the following preg PHP function is used to do a find and replace on a string or an array?





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





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





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 of the following are valid PHP stream transports? 





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






In PHP language PEAR stands for





Polymorphism is also know as…





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





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





What is the default value of max_input_time directive?





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 is displayed below the class name in the class diagrams?





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





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





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





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





Which keyword is used to put a stop on inheritance?





Parameter flags was added in which version of PHP?





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





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





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





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





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





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





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





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





What functions count elements in an array?




Which version of PHP introduced E_STRICT Error level?





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





PHP recognizes constructors by the name..





Which version of PHP introduced Try/catch Exception?





Which of the following can you place inside a namespace?





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 you want to report error concerned about fatal run-time, fatal compile-time error and core error which statement would you use?





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





How would you start a session?





The filesize() function returns the file size in ___.





Atleast how many abstract methods must an abstract class contain?





Can joins be nested?



What does SPL stand for?





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





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





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





How many predefined exceptions does SPL provide access to?





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





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





Which directive determines how the session information will be stored?





If the diamond is filled it depicts which relationship?





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





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





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





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





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






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




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





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?





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





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





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





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