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 5 Question 76 Discussion

Actual exam question for Python Institute's PCAP-31-03 exam
Question #: 76
Topic #: 5
[All PCAP-31-03 Questions]

What is the expected out of the following code of the file named zero_length_existing_file is a zero-length file located inside the working directory?

Show Suggested Answer Hide Answer
Suggested Answer: D

Contribute your Thoughts:

Ronny
2 days ago
Oh, I know this one! The correct answer has to be C, an errno value corresponding to file not found. That's gotta be it, right?
upvoted 0 times
...
Melodie
8 days ago
Wait, is this a trick question? I'm not so sure about 0 anymore. Maybe -1 is the correct answer, since it's a zero-length file and all.
upvoted 0 times
...
Carolann
13 days ago
But the question specifies that it's a zero-length file, so I still think it's A) 0.
upvoted 0 times
...
Mitsue
17 days ago
I disagree, I believe it should be B) -1 because the file is empty.
upvoted 0 times
...
Bettina
18 days ago
Hmm, interesting. The file is zero-length, so I'm guessing the answer is 0. That seems like the most logical choice.
upvoted 0 times
Wava
3 days ago
User1: I think the answer is 0.
upvoted 0 times
...
...
Carolann
25 days ago
I think the expected output is A) 0.
upvoted 0 times
...

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  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77