MCQ 1 How many error levels are available in PHP ?

Correct Answer Choice B 16
See Answer

MCQ 2 Which of the following function is used to redirect a page to another page?

Correct Answer Choice B header()
See Answer

MCQ 3 Which of the operator is NOT a valid PHP comparison operator?

Correct Answer Choice C <=>
See Answer

MCQ 4 _____________ is used to unset a variable in PHP ?

Correct Answer Choice D unset()
See Answer


MCQ 5 _______________ is cocatenation operator in PHP?

Correct Answer Choice B dot
See Answer

MCQ 6 To validate an e-mail address, which flag is to be passed to the function filter_var()?

Correct Answer Choice A FILTER_VALIDATE_EMAIL
See Answer

MCQ 7 What gets printed?
$var = 'false';
if ($var) {
echo 'true';
} else {
echo 'false';
}

Correct Answer Choice A True
See Answer

MCQ 8 For checking a data type, PHP offers a function called

Correct Answer Choice C gettype ( )
See Answer


MCQ 9 What does isset() function do in PHP?

Correct Answer Choice A It checks whether variable is set or not
See Answer

MCQ 10 What will be the output of the following php code
< ?php
$num = 1;
$num1 = 2;
print $num . "+". $num1 ;
? >

Correct Answer Choice A 1+2
See Answer

MCQ 11 Which operator is used to compare a value to a specified list of values?

Correct Answer Choice C IN
See Answer

MCQ 12 For changing array with random numbers which function we can use?

Correct Answer Choice B shuffle ( )
See Answer


MCQ 13 Which version introduced the function error_get_last()?

Correct Answer Choice B PHP 5.2
See Answer

MCQ 14 For the first time version of PHP 5 includes

Correct Answer Choice B Exception handling object
See Answer

MCQ 15 Which version of PHP was added with Exception handling?

Correct Answer Choice C PHP 5
See Answer

MCQ 16 Which of the following is/are an exception?

  • A) OutOfBoundException
  • B) OutOfRangeException
  • C) OverflowException
  • D) UnderflowException
  • <

    Correct Answer Choice D all of the above
    See Answer


MCQ 17 Which one of the following functions will convert a string to all uppercase?

Correct Answer Choice B strtoupper()
See Answer

MCQ 18 Where setcookie( ) function must appear in PHP?

Correct Answer Choice D Before tag
See Answer

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?

Correct Answer Choice B continue
See Answer

MCQ 20 Which method retrieves each row from the prepared statement result and assigns the fields to the bound results?

Correct Answer Choice D fetch()
See Answer


MCQ 21 When you need to obtain the ASCII value of a character which of the following function you apply in PHP?

Correct Answer Choice D ord( );
See Answer

MCQ 22 How to create a function, in PHP. Use the function name is myFunction.

Correct Answer Choice B function myFunction()
See Answer

MCQ 23 What happens if you forget a slash at the end of a header tag?

Correct Answer Choice C Everything following will be a heading format
See Answer

MCQ 24 The die() and exit() functions do the exact same thing.

Correct Answer Choice A True
See Answer


MCQ 25 Which of them is a HTML specific string function?

Correct Answer Choice D All of the above
See Answer

NTSE, NEET, AIEEE, Olympiad & Other Competive Exams Preparation

Publish Your Article / Write for Us

Article Writing Guide/Help

Trending Questions


Advantages Of NCERT, CBSE & State Boards Solutions For All Subjects

  • All the NCERT Solutions have been prepared by academic experts having 10+ years of teaching experience.
  • They have prepared all the solutions in simple and easy language, so that each and every student can understand the concepts easily.
  • All the solutions have been explained step to step wise in details with better explainations.
  • Students can also use these question and answers for your assignments and in homework help.
  • All the solutions have been explained in detail and the answers have been compiled in a step-wise manner.
  • All the question and asnwers are commonly prepared according to the Latest Syllabus of Board Education and Guidelines.
  • Students can know about the various types of questions asked in the exams with the help of these solutions.

Top Course Categories