| 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.
Rearrange the following parts to form a meaningful and grammatically correct sentence:
P. a healthy diet and regular exercise
Q. are important habits
R. that help maintain good physical and mental health
S. especially in today's busy world