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)- A8% (3)
- B72% (26)
- C19% (7)
Community Discussion
No community discussion yet for this question.