Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam PCAP-31-03 All Questions

View all questions & answers for the PCAP-31-03 exam

Exam PCAP-31-03 topic 1 question 39 discussion

Actual exam question from Python Institute's PCAP-31-03
Question #: 39
Topic #: 1
[All PCAP-31-03 Questions]

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

  • A. if invoking open() fails, an exception is raised
  • B. instd, outstd, errstd are the names of pre-opened streams
  • C. open() requires a second argument
  • D. open() is a function which returns an object that represents a physical file
Show Suggested Answer Hide Answer
Suggested Answer: AC 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
jarun2024
2 months, 2 weeks ago
ANS: A & D
upvoted 1 times
...
kino_1994
3 months ago
A second parameter is not necessary because it uses default parameters. See the documentation: https://docs.python.org/3/library/functions.html#open If the mode is not specified, it defaults to 'r'. Therefore, the correct answers are A and D.
upvoted 2 times
...
Dave304409
4 months, 3 weeks ago
A, C is correct
upvoted 2 times
...
DKAT2023
4 months, 3 weeks ago
sorry , A and C are corrects not D,
upvoted 1 times
...
DKAT2023
4 months, 3 weeks ago
A and D are corrects
upvoted 1 times
...
b4779c5
5 months ago
the correct anserws are AandD
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...