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

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





Which one among the following means tight coupling ?





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





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





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





Does PHP 5 support exceptions?



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





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





Which method is invoked when an undefined property is accessed ?





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






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





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





Which of the conditional statements is/are supported by PHP? i) if statements ii) if-else statements iii) if-elseif statements iv) switch statements





In PHP language PEAR stands for





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





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





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?






+ is the visibility code for?





What is the default value of max_input_time directive?





Inheritance in class diagrams is depicted by..





Which of the following multithreaded servers allow PHP as a plug-in?





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





Which version of PHP introduced E_STRICT Error level?





Which directive determines how the session information will be stored?





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





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





Variables/functions in PHP don't work directly with





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





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





The session_start() function must appear..





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  






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






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





Which of the following are useful for method overloading?





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





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





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





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





Which version introduced the function error_get_last()?





Which of the following is not a predefined constant?






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





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





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






Which of the following are valid PHP stream transports? 





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





Which one of the following methods in the exception class, is used to get a nested exception object?





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





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





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





Parameter flags was added in which version of PHP?





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





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





How would you start a session?





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





Which of the following functions do not return a timestamp? 






If the diamond is filled it depicts which relationship?





Can joins be nested?



Since which version of PHP was the directive max_file_limit available.





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





How many types of filtering are present in PHP?





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





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?





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





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





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





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





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





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





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





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





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 one of the following statements is true about sequence diagrams?





A bidirectional relationship in class diagrams is described by..





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





Which function effectively deletes all sessions that have expired?





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





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






__clone() is run on the ___ object.





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





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





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






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





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





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





Which symbol is used to declare nested namespaces?





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



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?





Multiple select/load is possible with





How many times can you define __autoload in a process?





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





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





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





A package is a set of related ___.





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





There are three different kind of arrays:





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





Which of the following type cast is not correct?





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





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