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 (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
jaycosmo_23
1 month ago
Selected Answer: AD
Correct Answers A. If invoking open() fails, an exception is raised D. open() is a function which returns an object that represents a physical file
upvoted 1 times
...
jarun2024
4 months, 1 week ago
ANS: A & D
upvoted 2 times
...
kino_1994
4 months, 4 weeks 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
6 months, 2 weeks ago
A, C is correct
upvoted 2 times
...
DKAT2023
6 months, 2 weeks ago
sorry , A and C are corrects not D,
upvoted 1 times
...
DKAT2023
6 months, 2 weeks ago
A and D are corrects
upvoted 2 times
...
b4779c5
6 months, 3 weeks 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago