Home > PHP & Programming > Quizzes > Practice Test: Error Handling In PHP
Practice Test: Error Handling In PHP
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 90% Most missed: “There are … separate error levels are available in PHP.”
Practice Test: Error Handling In PHP
Time left 00:00
20 Questions

1. Enabling … causes PHP to disregarded repeated error messages emanating from different files or different lines within the same file.
2. State whether the following statements about PHP’s logging facility are TRUE or FALSE.
i. PHP’s logging facilities will automatically be initialized when the openlog() or Syslog() functions are called.
ii. Calling the openlog() function is necessary.
iii.The Syslog() function is responsible for sending a custom message to the system log.
3. Enabling … causes PHP to disregard repeated error messages that occur within the same file on the same line.
4. The error level … suggest code changes based on the developer’s determinations as to proper coding methodologies and is intended to ensure portability across PHP versions.
5. There are … separate error levels are available in PHP.
6. … is the parameter of Syslog() function which specifies a serious system problem, likely signaling a crash.
7. … is the parameter of Syslog() function which specifies a critical error that could render a service unusable but does not necessarily place the system in danger.
8. In PHP error handling, the … directives determine the reporting sensitivity level.
9. In PHP’s error reporting, the … level reports compile-time parse errors.
10. In the … level, warnings regarding user-initiated use of features scheduled for removal in future PHP release.
11. The … directive will display any error encountered during the initialization of the PHP engine.
12. The error level … indicate that the script encountered something that could indicate an error.
13. While opening the logging connection, the … option does not open the connection until the first message has been submitted for logging.
14. In the openlog() function, the logging option … will output the logged message to both the Syslog and standard error.
15. The … error level was introduced in …
16. Enabling … causes PHP to store the most recent error message in the variable $php_errormsg.
17. In PHP’s error reporting, the … level reports fatal run-time errors.
18. Errors can be sent to the system logging daemon or can be sent to a file specified by the administrator via the … directives.
19. Enabling the … directive results in the display of any errors meeting the criteria defined by error_reporing.
20. While opening the logging connection, the … option immediately opens the connection to the Syslog.