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

Exam PCAP All Questions

View all questions & answers for the PCAP exam

Exam PCAP topic 1 question 112 discussion

Actual exam question from Python Institute's PCAP
Question #: 112
Topic #: 1
[All PCAP Questions]

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

  • A. if invoking open () fails, an exception is raised
  • B. open () requires a second argument
  • C. open () is a function which returns an object that represents a physical file
  • D. instd, outstd. errstd are the names of pre-opened streams
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
macxsz
Highly Voted 2 years, 6 months ago
Selected Answer: AC
answer is correct: AC
upvoted 6 times
...
Ujjal_d
Most Recent 1 year, 3 months ago
So it is A C right?
upvoted 1 times
...
cufta05
1 year, 5 months ago
A. If invoking open() fails, an exception is raised. D. instd, outstd, errstd are the names of pre-opened streams.
upvoted 1 times
...
aserr
2 years, 7 months ago
C is wrong. According to python doc "mode" is an optional string. instd, outstd. errstd are preopened streams in sys module. Would go then for A and D.
upvoted 1 times
deckman
2 years, 6 months ago
it's not instd, outstd, errstd... "stdin", "stdout" and "stderr" would be the correct ones
upvoted 5 times
...
stuartz
2 years, 5 months ago
it is stdin, stdout, and stderr
upvoted 4 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 ...