All mock tests are FREE till 31 December — register to save your progress

Match List I (functions) with List II (uses). List I: A. fseek(), B. ftell(), C. feof(), D. rewind(). List II: I. Gives the current position in the file; II. Sets the position to the beginning of the file; III. Sets the position to a desired point in the file; IV. Used to test for an end-of-file condition.

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: B. A-III, B-I, C-IV, D-II

Explanation

fseek() moves to a chosen position, ftell() reports the current position, feof() tests for end of file, and rewind() returns to the start.

More Programming Languages and Computer Graphics questions