MCQ 1 Which one of the following methods is used to recuperating prepared statements resources?
MCQ 2 What is the default execution time set in set_time_limit()?
MCQ 3 Where session_start() function must appear in PHP?
MCQ 4 What does fopen() function do in PHP?
MCQ 5 What is the use of strlen( ) function in PHP?
MCQ 6 What will be the output of the following PHP code?
< ? php
$team = "M"
switch ($team) {
case "M": echo "Today is Monday";
case "T": echo "Today is Tuesday";
case "W": echo "Today is Wednesday";
}
? >
MCQ 7 Which function is used to remove all HTML tags from a string passed to a form?
MCQ 8 When a session ia active, PHP provides a special constant called
MCQ 9 What will be the output of the following PHP code?
< ? php
$fruits = array ("apple", "mango", "peach", "pear", "orange");
$subset = array_splice ($fruits, 2);
print_r ($fruits);
? >
MCQ 10 cookies are set by using the ______________ in PHP language.
MCQ 11 Which method rolls back the present transaction?
MCQ 12 How do you create a cookie in PHP Language?
MCQ 13 Which operator is used to check if two values are equal and of same data type?
MCQ 14 Which of the following function is used to get the size of a file?
MCQ 15 What is the description of Error level E_ERROR?
MCQ 16 Which function initializes the constants necessary for using the openlog(), clodelog(), and syslog() functions?
MCQ 17 Which of the following are correct ways of creating an array?
MCQ 18 Which version introduced the function error_get_last()?
MCQ 19 Output of Md5 is.
MCQ 20 What will be the output of the following PHP code?
< ?php
function calc($price, $tax="")
{
$total = $price + ($price * $tax);
echo "$total";
}
calc(42);
? >
MCQ 21 What is the strpos() function used for?
MCQ 22 The ______________ function in PHP returns a list of response headers sent (or ready to send).
MCQ 23 Which function is used to Strip whitespace (or other characters) from the beginning and end of a string?
MCQ 24 Which function in PHP is used to get the length of string variable?
MCQ 25 Which of the following methods is used to execute the statement after the parameters have been bound?