What is the expected output of the following code if the file named existing_text_file is a non-zero length text file located inside the working directory?

What is the expected output of the following code if the file named existing_text_file is a non-zero length text file located inside the working directory?

A . the length of the first line from the file
B . -1
C . the number of lines contained inside the file
D . the length of the last line from the file

Answer: B

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments