nerdexam
Python_Institute

PCAP-31-03 · Question #101

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:

Exhibit

PCAP-31-03 question #101 exhibit

Options

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

How the community answered

(26 responses)
  • A
    4% (1)
  • B
    73% (19)
  • C
    15% (4)
  • D
    8% (2)

Community Discussion

No community discussion yet for this question.

Full PCAP-31-03 Practice