1. Which of the following statements about the program is correct?

Screenshot 1

A. The code counts the number of characters in the file
B. The code counts the number of words in the file
C. The code counts the number of blank lines in the file
D. The code counts the number of lines in the file


Correct Answer: B. The code counts the number of words in the file

2. Which of the following statements about the program is correct?

Screenshot 2

A. The code writes a text to a file
B. The code reads text files and displays its content in reverse order
C. The code writes a text to a file in reverse order
D. None of the above


Correct Answer: B. The code reads text files and displays its content in reverse order

3. Point out the correct statements about the program.

Screenshot 3

A. The code copies the content of one file to another
B. The code writes strings that are read from the keyboard into a file.
C. The code reads a file
D. None of the above


Correct Answer: B. The code writes strings that are read from the keyboard into a file.

Comments

No comments yet. Why don’t you start the discussion?

    Leave a Reply

    Your email address will not be published. Required fields are marked *

    4 × one =