nerdexam
Python_Institute

PCAP-31-03 · Question #157

What is the expected behavior of the following code? It will:

The correct answer is B. cause a runtime exception. See the full explanation below for the reasoning.

Question

What is the expected behavior of the following code? It will:

Options

  • Aprint 0
  • Bcause a runtime exception
  • Cprints 3
  • Dprint an empty line

How the community answered

(29 responses)
  • A
    7% (2)
  • B
    72% (21)
  • C
    17% (5)
  • D
    3% (1)

Community Discussion

No community discussion yet for this question.

Full PCAP-31-03 Practice