Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

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)

Show Suggested Answer Hide Answer
Suggested Answer: A, B

Contribute your Thoughts:

Bettina
1 months 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 months 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 months 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
Noel
27 days ago
User1: I agree, returning None for a failed file open doesn't make sense.
upvoted 0 times
...
...
Hyman
1 months 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
22 days ago
Yes, you're right. B is also true. The second argument is optional for open().
upvoted 0 times
...
Carman
24 days ago
I think A and B are correct. The second argument is indeed optional.
upvoted 0 times
...
...
Reid
1 months ago
You're right, I misunderstood. A and C make more sense now.
upvoted 0 times
...
Dorothy
2 months ago
But the second argument in open() is not optional, it is mandatory.
upvoted 0 times
...
Reid
2 months ago
I think B and D are the correct answers.
upvoted 0 times
...
Dorothy
2 months ago
A and C are true.
upvoted 0 times
...
Wilson
2 months ago
A and C seem correct to me. The open() function returns a file descriptor, not None.
upvoted 0 times
Benton
1 months ago
The open() function returns a file descriptor, not None.
upvoted 0 times
...
Katie
2 months ago
A and C seem correct to me.
upvoted 0 times
...
...

Save Cancel