Sail E0 Webinar

MCQs

Total Questions : 20 | Page 1 of 2 pages
Question 1. How many error levels are available in PHP?
  1.    14
  2.    15
  3.    16
  4.    17
 Discuss Question
Answer: Option C. -> 16
Question 2. What is the description of Error level E_ERROR?
  1.    Fatal run-time error
  2.    Near-fatal error
  3.    Compile-time error
  4.    Fatal Compile-time error
 Discuss Question
Answer: Option A. -> Fatal run-time error
Question 3. Which version of PHP introduced E_STRICT Error level?
  1.    PHP 4
  2.    PHP 5
  3.    PHP 5.2
  4.    PHP 5.3
 Discuss Question
Answer: Option B. -> PHP 5
Question 4. Which character do the error_reporting directive use to represent the logical operator NOT?
  1.    /
  2.    !
  3.    ~
  4.    ^
 Discuss Question
Answer: Option C. -> ~
Question 5. Say you want to report error concerned about fatal run-time, fatal compile-time error and core error which statement would you use?
  1.    error_reporting = E_ALL
  2.    error_reporting = E_ERROR | E_PARSE | E_CORE_ERROR
  3.    error_reporting = E_ERROR | E_COMPILE_WARNING | E_CORE_ERROR
  4.    error_reporting = E_ERROR | E_COMPILE_ERROR | E_CORE_ERROR
 Discuss Question
Answer: Option D. -> error_reporting = E_ERROR | E_COMPILE_ERROR | E_CORE_ERROR
Question 6. Which version introduced the function error_get_last()?
  1.    PHP 4
  2.    PHP 5
  3.    PHP 5.2
  4.    PHP 5.3
 Discuss Question
Answer: Option C. -> PHP 5.2
Question 7. Which of the following statements causes PHP to disregard repeated error messages that occur within the same file and on the same line?
  1.    ignore_repeated_errors
  2.    ignore_repeat_error
  3.    repeatedly_ignore_error
  4.    repeated_error_ignore
 Discuss Question
Answer: Option A. -> ignore_repeated_errors
Question 8. Which function initializes the constants necessary for using the openlog(), clodelog(), and syslog() functions?
  1.    define_variable()
  2.    define_log_variable()
  3.    log_variable()
  4.    define_syslog_variable()
 Discuss Question
Answer: Option D. -> define_syslog_variable()
Question 9. Which logging option’s description is, if an error occurs when writing to the syslog, send output to the system console?
  1.    LOG_CONS
  2.    LOG_NDELAY
  3.    LOG_ODELAY
  4.    LOG_PERROR
 Discuss Question
Answer: Option A. -> LOG_CONS
Question 10. Which function is responsible for sending a custom message to the system log?
  1.    systemlog()
  2.    syslog()
  3.    log_system()
  4.    sys_log()
 Discuss Question
Answer: Option B. -> syslog()

Latest Videos

Latest Test Papers