nerdexam
Python_Institute

PCAP-31-03 · Question #132

What is the expected behavior of the following code?

The correct answer is C. it raises an exception. See the full explanation below for the reasoning.

Question

What is the expected behavior of the following code?

Exhibit

PCAP-31-03 question #132 exhibit

Options

  • Ait outputs False
  • Bit outputs True
  • Cit raises an exception
  • Dit outputs nothing

How the community answered

(18 responses)
  • A
    6% (1)
  • B
    17% (3)
  • C
    72% (13)
  • D
    6% (1)

Community Discussion

No community discussion yet for this question.

Full PCAP-31-03 Practice