Exam PCAP-31-03 All QuestionsBrowse all questions from this exam
Question 39

Which of the following statements are true? (Choose two.)

    Correct Answer: A, D

    When invoking open() fails, an exception is indeed raised, making this statement true. Additionally, open() is a function that returns an object representing a physical file, which is also a true statement. The statement that open() requires a second argument is incorrect as the mode argument is optional and defaults to 'r' (read mode). The names instd, outstd, and errstd are not standard terms for pre-opened streams in Python, making that option incorrect.

Discussion
Dave304409Options: AC

A, C is correct

DKAT2023

sorry , A and C are corrects not D,

DKAT2023Options: AD

A and D are corrects

b4779c5Options: AD

the correct anserws are AandD