nerdexam
Python_Institute

PCAP-31-03 · Question #93

Python's built-in function named open () tries to open a file and returns:

The correct answer is C. a stream object. See the full explanation below for the reasoning.

Question

Python's built-in function named open () tries to open a file and returns:

Options

  • Aan integer value identifying an opened file
  • Ban error code (0 means success)
  • Ca stream object
  • Dalways None

How the community answered

(48 responses)
  • A
    13% (6)
  • B
    4% (2)
  • C
    75% (36)
  • D
    8% (4)

Community Discussion

No community discussion yet for this question.

Full PCAP-31-03 Practice