nerdexam
Python_Institute

PCAP-31-03 · Question #61

How many lines does the following snippet output?

The correct answer is B. one. This only prints one line. This can be verified in the python interpreter.

Technology and architecture

Question

How many lines does the following snippet output?

Exhibit

PCAP-31-03 question #61 exhibit

Options

  • Athree
  • Bone
  • Ctwo
  • Dfour

How the community answered

(39 responses)
  • A
    8% (3)
  • B
    79% (31)
  • C
    10% (4)
  • D
    3% (1)

Explanation

This only prints one line. This can be verified in the python interpreter.

Topics

#Python output#print function#code tracing#line counting

Community Discussion

No community discussion yet for this question.

Full PCAP-31-03 Practice