log4j Online Quiz


Following quiz provides Multiple Choice Questions (MCQs) related to log4j Framework. You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer button. You can use Next Quiz button to check new set of questions in the quiz.

Questions and Answers

Q 3 - Which of the following level designates error events that might still allow the application to continue running?

A - DEBUG

B - ERROR

C - FATAL

D - INFO

Answer : B

Explanation

ERROR − Designates error events that might still allow the application to continue running.

Q 4 - Which of the following level designates informational messages that highlight the progress of the application at coarse-grained level?

A - DEBUG

B - ERROR

C - FATAL

D - INFO

Answer : D

Explanation

INFO − Designates informational messages that highlight the progress of the application at coarse-grained level.

Answer : A

Explanation

%20c − Left pad with spaces if the category name is less than 20 characters long.

Answer : C

Explanation

HTMLLayout.setTitle(String) − Sets the title for the HTML file. Default is log4j Log Messages.

Answer : B

Explanation

maxBackupIndex − This property denotes the number of backup files to be created.

Answer : A

Explanation

URL − Sets the JDBC URL.

Q 10 - The Logger object is responsible for publishing logging information to various preferred destinations such as a database, file, console, UNIX Syslog, etc.

A - true

B - false

Answer : B

Explanation

false − The Appender object is responsible for publishing logging information to various preferred destinations such as a database, file, console, UNIX Syslog, etc.

log4j_questions_answers.htm
Advertisements