MCQ 1 If there is no error, then what will the error() method return?
MCQ 2 Which of the following is a comparison operator in SQL?
MCQ 3 Which of the following function returns the sum of the values in an array?
MCQ 4 How many functions are used by PHP to convert between arrays and variables?
MCQ 5 What is right way to Initialize array?
MCQ 6 Which operator is used to select values within a range?
MCQ 7 Which functions returns and caches the size of the file in bytes.
MCQ 8 What is the use of strlen( ) function in PHP?
MCQ 9 What is the output of the code given.
< ? php
$num = "123";
if (!filter_var($num, FILTER_VALIDATE_INT))
echo("Value of an Integer is not valid");
else
echo("Value of an Integer is valid");
?>
MCQ 10 Find Error/Output in follwing code:
< ? php
$usermail = 'knowledge@email.com';
$user = strstr($usermail, '@', true);
echo $user;
?>
MCQ 11 How many number of predefined exceptions does SPL provide access to?
MCQ 12 The if statement is used to execute some code only if a specified condition is true.
MCQ 13 What will be the output of the following PHP code?
< ?php
function a()
{
function b()
{
echo 'I am b';
}
echo 'I am a';
}
a();
a();
? >
MCQ 14 Which one of the following is the right way to clone an object?
MCQ 15 Which magic method is used to implement overloading in PHP?
MCQ 16 Which feature allows us to call more than one method or function of the class in single instruction?
MCQ 17 The class from which the child class inherits is called as _____________.
MCQ 18 Which method is used to tweak an object’s cloning behavior?
MCQ 19 Which version of PHP introduced the advanced concepts of OOP?
MCQ 20 If one intends to create a model that will be assumed by a number of closely related objects, which class must be used?
MCQ 21 Which of the following advanced OOP features is/are not supported by PHP?
MCQ 22 Which function will return true if a variable is an array or false if it is not?
MCQ 23 Which function can be used to move the pointer to the previous array position ?
MCQ 24 An array elements are always stored in ________ memory locations.
MCQ 25 Array_splice function is same as array_slice but it starts taking arguments from