nerdexam
Python_Institute

PCAP-31-03 · Question #38

What is the expected output of the following code if existing_file is the name of a file located inside the working directory?

The correct answer is C. 1 3. See the full explanation below for the reasoning.

Question

What is the expected output of the following code if existing_file is the name of a file located inside the working directory?

Exhibit

PCAP-31-03 question #38 exhibit

Options

  • A1 2
  • B1 2 3
  • C1 3
  • D2 3

How the community answered

(61 responses)
  • A
    3% (2)
  • B
    8% (5)
  • C
    79% (48)
  • D
    10% (6)

Community Discussion

No community discussion yet for this question.

Full PCAP-31-03 Practice