Cyber Monday 2024! Hurry Up, Grab the Special Discount - Save 25%
- Ends In
00:00:00
Coupon code:
SAVE25
X
Welcome to Pass4Success
Login
|
Sign up
-
Free
Preparation Discussions
Mail Us
support@pass4success.com
Location
PL
MENU
Home
Popular vendors
Salesforce
Microsoft
Nutanix
Cisco
Amazon
Google
CompTIA
SAP
VMware
Oracle
Fortinet
PeopleCert
Eccouncil
HP
Palo Alto Networks
Adobe
ISC2
ServiceNow
Dell EMC
CheckPoint
Discount Deals
New
About
Contact
Login
Sign up
Home
Discussions
Python Institute Discussions
Exam PCAP-31-03 Topic 4 Question 70 Discussion
Python Institute Exam PCAP-31-03 Topic 4 Question 70 Discussion
Actual exam question for Python Institute's PCAP-31-03 exam
Question #: 70
Topic #: 4
[All PCAP-31-03 Questions]
Which of the following statements are true? (Select two answers)
A
open () is a function which returns an int that represents a physical file handle
B
the second open () argument is optional
C
instd, outstd, errstd are the names of pre-opened streams
D
if invoking open () fails, the value None is returned
Show Suggested Answer
Hide Answer
Suggested Answer:
A, B
by
Jovita
at
Jul 17, 2024, 11:19 PM
Limited Time Offer
25%
Off
Get Premium PCAP-31-03 Questions as Interactive Web-Based Practice Test or PDF
Contribute your Thoughts:
Submit
Cancel
Eugene
4 months ago
I'm going with A and C. D is just silly - as if open() would ever return None. That's what try-except blocks are for!
upvoted
0
times
...
Dulce
4 months ago
D is definitely wrong. If open() fails, it raises an exception, not returns None. A and C are the way to go.
upvoted
0
times
Whitley
3 months ago
C) instd, outstd, errstd are the names of pre-opened streams
upvoted
0
times
...
Whitley
4 months ago
A) open () is a function which returns an int that represents a physical file handle
upvoted
0
times
...
...
Chara
4 months ago
Haha, I bet the answer is B and C. Who uses open() without the second argument these days? And of course instd, outstd, and errstd are the real MVPs.
upvoted
0
times
Sherman
3 months ago
instd, outstd, and errstd are definitely important streams.
upvoted
0
times
...
Reena
4 months ago
Yeah, open() without the second argument seems outdated.
upvoted
0
times
...
Jerry
4 months ago
I think you're right, B and C are the correct answers.
upvoted
0
times
...
...
Mariko
4 months ago
I agree with A and C. But I'm not sure about the second argument to open() being optional. Isn't it required?
upvoted
0
times
Eden
3 months ago
If invoking open() fails, the value None is returned
upvoted
0
times
...
Paola
3 months ago
The second argument to open() is optional
upvoted
0
times
...
Justine
4 months ago
C) instd, outstd, errstd are the names of pre-opened streams
upvoted
0
times
...
Christene
4 months ago
A) open () is a function which returns an int that represents a physical file handle
upvoted
0
times
...
...
Chandra
5 months ago
A and C seem correct to me. The open() function returns a file handle, not None.
upvoted
0
times
Ira
4 months ago
That's true. If open() fails, it returns None.
upvoted
0
times
...
Meghan
4 months ago
Yes, you're right. The second argument in open() is optional.
upvoted
0
times
...
Cherry
4 months ago
I think A and C are correct. The open() function does return a file handle.
upvoted
0
times
...
...
Ernestine
5 months ago
I agree with Miss, A) and C) seem to be the correct statements.
upvoted
0
times
...
Darrin
5 months ago
I think B) and D) are the correct answers.
upvoted
0
times
...
Miss
5 months ago
A) and C) are true.
upvoted
0
times
...
Log in to Pass4Success
×
Sign in:
Forgot my password
Log in
Report Comment
×
Is the comment made by
USERNAME
spam or abusive?
Commenting
×
In order to participate in the comments you need to be logged-in.
You can
sign-up
or
login
Save
Cancel
az-700
pass4success
az-104
200-301
200-201
cissp
350-401
350-201
350-501
350-601
350-801
350-901
az-720
az-305
pl-300
Eugene
4 months agoDulce
4 months agoWhitley
3 months agoWhitley
4 months agoChara
4 months agoSherman
3 months agoReena
4 months agoJerry
4 months agoMariko
4 months agoEden
3 months agoPaola
3 months agoJustine
4 months agoChristene
4 months agoChandra
5 months agoIra
4 months agoMeghan
4 months agoCherry
4 months agoErnestine
5 months agoDarrin
5 months agoMiss
5 months ago