nerdexam
Python_Institute

PCAP-31-03 · Question #115

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

The correct answer is B. print 1 2. See the full explanation below for the reasoning.

Question

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

Options

  • Aprint 2 1
  • Bprint 1 2
  • Ccause a runtime exception
  • Dprint <generator object f at (some hex digits)>

How the community answered

(45 responses)
  • A
    2% (1)
  • B
    80% (36)
  • C
    11% (5)
  • D
    7% (3)

Community Discussion

No community discussion yet for this question.

Full PCAP-31-03 Practice