Deal of The Day! 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
US
MENU
Home
Popular vendors
Salesforce
Microsoft
Nutanix
Amazon
Google
CompTIA
SAP
VMware
Fortinet
PeopleCert
Eccouncil
HP
Palo Alto Networks
Adobe
ServiceNow
Dell EMC
CheckPoint
Linux Foundation
Discount Deals
New
About
Contact
Login
Sign up
Home
Discussions
Python Institute Discussions
Exam PCAP-31-03 Topic 6 Question 68 Discussion
Python Institute Exam PCAP-31-03 Topic 6 Question 68 Discussion
Actual exam question for Python Institute's PCAP-31-03 exam
Question #: 68
Topic #: 6
[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
Marge
at
Jun 28, 2024, 07:52 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
Bettina
1 years ago
A, C, and D all sound plausible to me. I'm going to go with those three just to be safe.
upvoted
0
times
...
Billye
1 years ago
Haha, open() returning None? That's the equivalent of your car's owner's manual being blank. Not very useful!
upvoted
0
times
...
Glory
1 years ago
D definitely can't be right. What kind of programmer would return None for a failed file open? That's just silly.
upvoted
0
times
Golda
11 months ago
Definitely, it would be more useful to return an error code or something.
upvoted
0
times
...
Delmy
11 months ago
Yeah, it seems like a bad design choice.
upvoted
0
times
...
Paris
11 months ago
I agree, returning None for a failed file open doesn't make sense.
upvoted
0
times
...
Veronika
11 months ago
Yeah, those sound more logical. Good choices.
upvoted
0
times
...
Alecia
11 months ago
I think the correct statements are B) the second open () argument is optional and C) instd, outstd, errstd are the names of pre-opened streams.
upvoted
0
times
...
Noel
1 years ago
I agree, returning None for a failed file open doesn't make sense.
upvoted
0
times
...
...
Hyman
1 years ago
I'm pretty sure B is also true. The second argument to open() is the file mode, which can be specified optionally.
upvoted
0
times
Carman
1 years ago
Yes, you're right. B is also true. The second argument is optional for open().
upvoted
0
times
...
Carman
1 years ago
I think A and B are correct. The second argument is indeed optional.
upvoted
0
times
...
...
Reid
1 years ago
You're right, I misunderstood. A and C make more sense now.
upvoted
0
times
...
Dorothy
1 years ago
But the second argument in open() is not optional, it is mandatory.
upvoted
0
times
...
Reid
1 years ago
I think B and D are the correct answers.
upvoted
0
times
...
Dorothy
1 years ago
A and C are true.
upvoted
0
times
...
Wilson
1 years ago
A and C seem correct to me. The open() function returns a file descriptor, not None.
upvoted
0
times
Benton
1 years ago
The open() function returns a file descriptor, not None.
upvoted
0
times
...
Katie
1 years ago
A and C seem correct to me.
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
Bettina
1 years agoBillye
1 years agoGlory
1 years agoGolda
11 months agoDelmy
11 months agoParis
11 months agoVeronika
11 months agoAlecia
11 months agoNoel
1 years agoHyman
1 years agoCarman
1 years agoCarman
1 years agoReid
1 years agoDorothy
1 years agoReid
1 years agoDorothy
1 years agoWilson
1 years agoBenton
1 years agoKatie
1 years ago