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

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





Does PHP 5 support exceptions?



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





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





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?





+ is the visibility code for?





Which version of PHP introduced E_STRICT Error level?





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





Which of the following are useful for method overloading?





Which of the following is not a predefined constant?






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





What is the description of Error level E_ERROR?





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





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





Which one of the following statements is true for require() and require_once()?





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





Select the incorrect statement about PHP programming language





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





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





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





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





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





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





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





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 of the following operations cannot be performed using the standard ftp:// stream wrapper? 





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





The inbuilt function to get the number of parameters passed is





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





How many ways can a session data be stored?





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





Which one of the following filter is used to filter several variables with the same or different filters?





A bidirectional relationship in class diagrams is described by..





How many types of filtering are present in PHP?





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





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





What is the default value of max_input_time directive?





__clone() is run on the ___ object.





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





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





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





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





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





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





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





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





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 class name is reserveed in PHP ?





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





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 of the following PHP function is commonly used when handling authentication via PHP? i) header() ii) footer() iii) inset() iv) isset()





How many error levels are available in PHP?





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





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





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





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





What does SPL stand for?





Which keyword is used to put a stop on inheritance?





Multiple select/load is possible with





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





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 function initializes the constants necessary for using the openlog(), clodelog(), and syslog() functions?





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





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





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





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





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





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





There are three different kind of arrays:





Which of the following is not supported in PHP5?






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





When you’re uploading files you need to set the enctype of the form to ___.





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?






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





Atleast how many abstract methods must an abstract class contain?





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





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





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






A package is a set of related ___.





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





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





Variables/functions in PHP don't work directly with





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





What functions count elements in an array?




Since which version of PHP was the directive max_file_limit available.





PHP recognizes constructors by the name..





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



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





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





Which directive determines how the session information will be stored?





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





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





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?



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





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





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





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





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





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





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