nerdexam
Python_Institute

PCEP-30-02 · Question #385

What is true about exceptions and debugging? (Select two answers.)

The correct answer is A. A tool that allows you to precisely trace program execution is called a debugger. C. One try-except block may contain more than one except branch. See the full explanation below for the reasoning.

Question

What is true about exceptions and debugging? (Select two answers.)

Options

  • AA tool that allows you to precisely trace program execution is called a debugger.
  • BIf some Python code is executed without errors, this proves that there are no errors in it.
  • COne try-except block may contain more than one except branch.
  • DThe default (anonymous) except branch cannot be the last branch in the try-except block.

How the community answered

(32 responses)
  • A
    81% (26)
  • B
    6% (2)
  • D
    13% (4)

Community Discussion

No community discussion yet for this question.

Full PCEP-30-02 Practice