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

Exam PCPP-32-101 All Questions

View all questions & answers for the PCPP-32-101 exam

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: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
FRAUSTOFR1
9 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
1 year, 2 months 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 3 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 ...