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

Answer : D

Explanation

All of the above options are correct.

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 potentially harmful situations?

A - OFF

B - TRACE

C - WARN

D - ALL

Answer : C

Explanation

WARN − Designates potentially harmful situations.

Answer : D

Explanation

Filename − The name of the log file.

Answer : B

Explanation

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

Q 9 - Is log4j thread safe?

A - true

B - false

Answer : A

Explanation

true − log4j is thread-safe.

Q 10 - The target may be a console, a file, or another item depending on the appender.

A - true

B - false

Answer : A

Explanation

true − The target may be a console, a file, or another item depending on the appender.

log4j_questions_answers.htm
Advertisements