Sail E0 Webinar

MCQs

Total Questions : 10
Question 1. Which of the following method of logger print a log message in info mode?
  1.    public void debug(Object message)
  2.    public void error(Object message)
  3.    public void fatal(Object message)
  4.    public void info(Object message)
 Discuss Question
Answer: Option D. -> public void info(Object message)




Question 2. Which of the following genres does Log4j produce?
  1.    Gospel music
  2.    Avant-rock
  3.    Logging Tool
  4.    Action game
 Discuss Question
Answer: Option C. -> Logging Tool




Question 3. Mention what are the three principal components of Log4j?
  1.    Loggers
  2.    Appenders
  3.    Layout
  4.    All of these
 Discuss Question
Answer: Option D. -> All of these




Question 4. Who developed Log4j?
  1.    Mozilla Foundation
  2.    Apache Software Foundation
  3.    Sony Creative Software
  4.    Blender Foundation
 Discuss Question
Answer: Option B. -> Apache Software Foundation




Question 5. Mention what are the different types of Appenders?
  1.    ConsoleAppender logs to standard output
  2.    FileAppender prints logs to some file
  3.    Rolling file appender to a file with maximum size
  4.    All of these
 Discuss Question
Answer: Option D. -> All of these




Question 6. Mention what are the other support objects in Log4j?
  1.    Level Object
  2.    Filter Object
  3.    Object Renderer
  4.    All of these
 Discuss Question
Answer: Option D. -> All of these




Question 7. Inside logger component what are the different log levels?
  1.    All
  2.    Debug
  3.    Info
  4.    None
 Discuss Question
Answer: Option A. -> All




Question 8. The Appender object is responsible for publishing logging information to various preferred destinations such as a database, file, console, UNIX Syslog, etc.
  1.    false
  2.    true
  3.    Both of these
  4.    None
 Discuss Question
Answer: Option B. -> true




Question 9. Which of the following platforms does Log4j run on?
  1.    Debian
  2.    Windows Server 2008
  3.    Cross-platform
  4.    Normal-platform
 Discuss Question
Answer: Option C. -> Cross-platform




Question 10. What are the format characters used in log4j?
  1.    L- it is used to output the line number from where the logging request was processed or issued
  2.    m- It is used to output the application supplied message related to the logging event
  3.    P- It is used to output the priority of the logging event
  4.    All
 Discuss Question
Answer: Option D. -> All




Latest Videos

Latest Test Papers