| List-I | List-II |
| (A) readline() | (I) Writes a sequence of strings to the file |
| (B) writelines() | (II) Reads a single line from the file |
| (C) seek() | (III) Force any buffered output to be written to the file |
| (D) flush() | (IV) Moves the file pointer to the specified position |
To correctly match the methods and their functionalities from List-I and List-II, let's analyze each:
| List-I | List-II |
| (A) readline() | (II) Reads a single line from the file |
| (B) writelines() | (I) Writes a sequence of strings to the file |
| (C) seek() | (IV) Moves the file pointer to the specified position |
| (D) flush() | (III) Force any buffered output to be written to the file |
The correct answer is: (A) - (II), (B) - (I), (C) - (IV), (D) - (III)
Let's match the functions with their descriptions:
Therefore, the correct matching is:
(A) - (II)
(B) - (I)
(C) - (IV)
(D) - (III)
This corresponds to option (2).
Additional Context:
Given the following statement: import matplotlib.pyplot as plt 'plt' in the above statement is .............. name.
Fill in the blank with the correct option.
The teacher believed that the student’s sudden lack of interest in class was an ..........., as he had always been enthusiastic and attentive.