Php Interview Questions & Answers: part8



Php Interview QUESTIONS AND ANSWERS :: part8 : 1 to 5

Following PHP Multiple choice objective type questions and answers will help you in many software compnaies written examinations and inteview 2015 :

1.You can extend the exception base class, but you cannot override any of the preceding methods because the are declared as..

protected
final
static
private

2.Which of the following statements invoke the exception class?

throws new Exception();
throw new Exception();
new Exception();
new throws Exception();

3.Which version of PHP was added with Exception handling?

PHP 4
PHP 5
PHP 5.3
PHP 6

4.How many methods are available for the exception class?

5
6
7
8

5.Which of the following statements causes PHP to disregard repeated error messages that occur within the same file and on the same line? #107. Which of the following statements causes PHP to disregard repeated error messages that occur within the same file and on the same line?

ignore_repeated_errors
ignore_repeat_error
repeatedly_ignore_error
repeated_error_ignore

More Php Interview QUESTIONS AND ANSWERS available in next pages

    Health is the greatest gift, contentment is the greatest wealth -Buddha
Innovation distinguishes between a leader and a follower.-Steve Jobs