nerdexam
Python_Institute

PCAP-31-03 · Question #31

Which of the following statements are true? (Select two answers)

The correct answer is B. open () is a function which returns an object that represents a physical file D. if invoking open () fails, an exception is raised. See the full explanation below for the reasoning.

Question

Which of the following statements are true? (Select two answers)

Options

  • Aopen () requires a second argument
  • Bopen () is a function which returns an object that represents a physical file
  • Cinstd, outstd, errstd are the names of pre-opened streams
  • Dif invoking open () fails, an exception is raised

How the community answered

(36 responses)
  • A
    8% (3)
  • B
    72% (26)
  • C
    19% (7)

Community Discussion

No community discussion yet for this question.

Full PCAP-31-03 Practice