Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam PCPP-32-101 topic 1 question 43 discussion

Actual exam question from Python Institute's PCPP-32-101
Question #: 43
Topic #: 1
[All PCPP-32-101 Questions]

What is the result of the following code?

  • A. Nothing will be displayed
  • B. Loading data...
  • C. Debugging mode has been enabled
  • D. Debugging mode has been enabled -
    Loading data...
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
FRAUSTOFR1
2 months, 2 weeks ago
Answer is B In the given code, the logging level is set to the default level, which is WARNING. The logger.info('Debuning mode has been enabled') statement will not be displayed because it is an info message, and info messages are below the default logging level. However, the logger.debug('Loading data...') statement will be displayed because it is a debug message, and debug messages are below the default logging level.
upvoted 1 times
...
Moneybing
7 months, 2 weeks ago
Selected Answer: A
Answer is A. The default logging level is Warning. Info and Debug level is lower than Warning, therefore, no message for Info and Debug. If you try code, nothing shows up. Level name Value CRITICAL 50 ERROR 40 WARNING (Default) 30 INFO 20 DEBUG 10 NOTSET 0 https://edube.org/learn/pcpp1-5/logging-in-python-2
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...