1) Which one of the following format parameter can be used to identify timezone?
2) How many ways can a session data be stored?
3) If the format is F then which one of the following will be returned?
4) Which one of the following function is useful for producing a timestamp based on a given date and time.
5) A PHP scripting block always starts with
6) What is most appropriate way to open file "placementquestion.txt" in write mode?
7) In terms of keywords and language syntax, PHP is similar to?
8) list in PHP is ?
9) __FILE__ is ?
10) What option should be enable to allow php short tags in php.ini?
11) Which of the following is invalid PHP code?
12) Which of the following tags is not a valid way t o begin and end a PHP code block?
13) In which circumstance it is not possible to assign default value to a parameter while declaring a function?
14) How does the identity operator === compare two values?
15) PECL stands for?
16) If cookie expiration time is not set explicitly, what happens to it?
17) By default, PHP stores session data in ______________.
18) In PHP 5, how can you write a class so that some of its properties cannot be accessed from outside its methods?
19) The ___________ function automatically transforms newline characters into HTML <br /> tags.
20) Which object-oriented pattern would you use to implement a class that must be instantiated only once for the entire lifespan of a script?
21) Array values are keyed by ______ values (called indexed arrays) or using ______ values (called associative arrays).
22) _______ function is used to sort an array in ascending order by value while preserving key associations.
23) What is the name of function used to convert an array into a string?
24) What is the simplest method of computing the sum of all the elements of an array?
25) Which PHP function or variable will return the value of current session id?
26) Which is a valid character for starting a PHP function name?
27) What will range('a', 'z') return?
28) microtime() returns _______.
29) include_once is a ________.
30) How to typecast a variable to Boolean?
31) Which of the following is a correct way to declare constant variable?
32) If property of class is declare using var then PHP5 will treat the property as?
33) Static properties cannot be initialized using
34) What is input sanitization?
35) What function split an array into chunks?
36) Which of those is not magic method?
37) Choice Questions Calling a non-static method statically generates _____ .
38) Full form of SPL is?
39) Identify the function which converts a string to uppercase.
40) The function FILESIZE() returns the size of the file in?
41) Which of the below symbols is a newline character?
42) Which PHP function displays the web page’s most recent modification date?
43) Which variable is used to collect form data sent with both the GET and POST methods?
44) Which one of the following function is used to start a session?
45) What is the default time(in seconds) for which session data is considered valid?
46) What is the default number of seconds that cached session pages are made available before the new pages are created?
47) Neglecting to set which of the following cookie will result in the cookie’s domain being set to the host name of the server which generated it.
48) If the directive session.cookie_lifetime is set to 3600, the cookie will live until _______
49) If session.use_cookie is set to 0, this results in use of _______
50) Which one of the following is the very first task executed by a session enabled page?
51) Which method returns the error code generated from the execution of the last MySQL function?
52) Which one of the following methods can be used to diagnose and display information about a MySQL connection error?
53) Which one of the following statements can be used to select the database?
54) Which one of the following statements instantiates the mysqli class?
55) Which one of the following statements is used to create a table?
56) Which one of the following lines need to be uncommented or added in the php.ini file so as to enable mysqli extension?
57) The updated MySQL extension released with PHP 5 is typically referred to as _________
58) Which one of the following databases has PHP supported almost since the beginning?
59) Which is the most powerful authentication method among the four?
60) Which function is used to split a string into a series of substrings, with each string boundary is determined by a specific separator?
61) The authenticationFile.txt, the file which stores username and password should be stored ___ the server document root.
62) How many predefined variables does PHP use to authenticate a user?
63) Which logging option’s description is if an error occurs when writing to the syslog, send output to the system console?
64) What is the description of Error level E_ERROR?
65) How many error levels are available in PHP?
66) Identify the property scope not supported by PHP.
67) Which one of the following is the default PHP session name?
68) Which version of PHP introduced the advanced concepts of OOP?
69) Which PHP statement will give output as $x on the screen?
70) What does PDO stand for?
71) How to define a function in PHP?
72) Which of the following is the correct syntax to write a PHP code?
73) What does PHP stand for?
74) Who is the father of PHP?
75) Which of the following is used to end a statement in PHP?
76) Which of the following is/are the code editors in PHP?
77) Which of the following function is used to sort an array in descending order?
78) Which of the following function is used to unset a variable in PHP?
79) Which of the following function is used to get the ASCII value of a character in PHP?
80) Which of the following function is used to set cookie in PHP?
81) Which of the following function is used to find files in PHP?
82) Which of the following function displays the information about PHP and its configuration?
83) Which of the following is the correct way to open the file "sample.txt" as readable?
84) What is the use of sprintf() function in PHP?
85) What is the use of isset() function in PHP?
86) What is the use of fopen() function in PHP?
87) Which of the following is the correct use of the strcmp() function in PHP?
88) Which of the following is the correct way of defining a variable in PHP?
89) Which of the following PHP function is used to generate unique id?
90) Which of the following is the correct way to create a function in PHP?
91) What does PEAR stands for?
92) Which of the following is the use of strpos() function in PHP?
93) Which of the following starts with __ (double underscore) in PHP?
94) Which of the following is used for concatenation in PHP?
95) Which of the following is the use of strlen() function in PHP?
96) Which of the following is not a variable scope in PHP?
97) Which of the following is the default file extension of PHP?
98) Variable name in PHP starts with -
99) Who is known as the father of PHP?
100) PHP stands for -