Php Interview Questions & Answers: part8



Php Interview QUESTIONS AND ANSWERS :: part8 : 6 to 10

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

6.Which function initializes the constants necessary for using the openlog(), clodelog(), and syslog() functions?

define_variable()
define_log_variable()
log_variable()
define_syslog_variable()

7.Which of the following is/are not an exception? i) BadFunctionCallException ii) BadMethodCallException iii) LogicException iv) DomainException

All of the mentioned
Only iv)
iii) and iv)
None of the mentioned

8.Which one of the following is the right description for the method getMessage() ?

Returns the message if it is passed to the constructor.
Returns the message if it is passed to the class.
Returns the message if it is passed to the file.
Returns the message if it is passed to the object.

9.Which function is responsible for sending a custom message to the system log?

systemlog()
syslog()
log_system()
sys_log()

10.Which version added the method getPrevious()?

PHP 4
PHP 5
PHP 5.1
PHP 5.3

More Php Interview QUESTIONS AND ANSWERS available in next pages

    Health is the greatest gift, contentment is the greatest wealth -Buddha
If your ship doesn’t come in, swim out to meet it!-Jonathan Winters