MCQ 1 How many error levels are available in PHP ?
MCQ 2 Which of the following function is used to redirect a page to another page?
MCQ 3 Which of the operator is NOT a valid PHP comparison operator?
MCQ 4 _____________ is used to unset a variable in PHP ?
MCQ 5 _______________ is cocatenation operator in PHP?
MCQ 6 To validate an e-mail address, which flag is to be passed to the function filter_var()?
MCQ 7 What gets printed?
$var = 'false';
if ($var) {
echo 'true';
} else {
echo 'false';
}
MCQ 8 For checking a data type, PHP offers a function called
MCQ 9 What does isset() function do in PHP?
MCQ 10 What will be the output of the following php code
< ?php
$num = 1;
$num1 = 2;
print $num . "+". $num1 ;
? >
MCQ 11 Which operator is used to compare a value to a specified list of values?
MCQ 12 For changing array with random numbers which function we can use?
MCQ 13 Which version introduced the function error_get_last()?
MCQ 14 For the first time version of PHP 5 includes
MCQ 15 Which version of PHP was added with Exception handling?
MCQ 16 Which of the following is/are an exception?
MCQ 17 Which one of the following functions will convert a string to all uppercase?
MCQ 18 Where setcookie( ) function must appear in PHP?
MCQ 19 Which of the following keyword causes the loop to skip the remainder of its body and immediately retest its condition prior to reiterating?
MCQ 20 Which method retrieves each row from the prepared statement result and assigns the fields to the bound results?
MCQ 21 When you need to obtain the ASCII value of a character which of the following function you apply in PHP?
MCQ 22 How to create a function, in PHP. Use the function name is myFunction.
MCQ 23 What happens if you forget a slash at the end of a header tag?
MCQ 24 The die() and exit() functions do the exact same thing.
MCQ 25 Which of them is a HTML specific string function?