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:

Carolann
4 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
8 days ago
I disagree, I believe it should be B) -1 because the file is empty.
upvoted 0 times
...
Bettina
9 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
...
Carolann
16 days ago
I think the expected output is A) 0.
upvoted 0 times
...

Save Cancel