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

Match List I (Functions) with List II (Uses of functions)
List IList II
A. fseek()I. Gives the current position in the file
B. ftell()II. Sets the position to the beginning of the file
C. feof()III. Sets the position to a desired point in the file
D. rewind()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() sets the position to a desired point (A-III). ftell() gives the current position (B-I). feof() tests for end of file (C-IV). rewind() sets the position to the beginning (D-II).

More Programming Languages and Computer Graphics questions