log4j Online Quiz


Advertisements


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 fine-grained informational events that are most useful to debug an application?

A - DEBUG

B - ERROR

C - FATAL

D - INFO

Answer : A

Explanation

DEBUG − Designates fine-grained informational events that are most useful to debug an application.

Q 4 - Which of the following level designates very severe error events that will presumably lead the application to abort?

A - DEBUG

B - ERROR

C - FATAL

D - INFO

Answer : C

Explanation

FATAL − Designates very severe error events that will presumably lead the application to abort.

Answer : C

Explanation

r − Used to output the number of milliseconds elapsed from the construction of the layout until the creation of the logging event.

Answer : B

Explanation

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

Answer : A

Explanation

fileAppend − This is by default set to true, which means the logging information being appended to the end of the same file.

Answer : A

Explanation

maxFileSize − This is the critical size of the file above which the file will be rolled.

Q 9 - The layout layer of log4j architecture provides objects which are used to format logging information in different styles.

A - false

B - true

Answer : B

Explanation

true − The layout layer of log4j architecture provides objects which are used to format logging information in different styles. It provides support to appender objects before publishing logging information.

Q 10 - By default, the LogManager looks for a file named log4j.properties in the CLASSPATH.

A - false

B - true

Answer : B

Explanation

true − By default, the LogManager looks for a file named log4j.properties in the CLASSPATH.


log4j_questions_answers.htm

Advertisements