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

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

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 (?) , you can switch to a simple comment.
Switch to a voting comment New
macxsz
Highly Voted 1 year, 11 months ago
Selected Answer: AC
answer is correct: AC
upvoted 6 times
...
Ujjal_d
Most Recent 8 months, 1 week ago
So it is A C right?
upvoted 1 times
...
cufta05
10 months, 1 week 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 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
1 year, 11 months ago
it's not instd, outstd, errstd... "stdin", "stdout" and "stderr" would be the correct ones
upvoted 5 times
...
stuartz
1 year, 10 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 ...