- Home
- Class - 12 CBSE Computer Science — Assertion Reason Type Questions
Assertion (A): The readline() method reads
Class - 12 CBSE Computer Science — Assertion Reason Type Questions
Assertion (A): The readline() method reads one complete line from a text file.
Reasoning (R): The readline() function can also be used to read a specified number (n) of bytes of data from a file but maximum up to the newline character (\n).
- Both A and R are true and R is the correct explanation of A.
- Both A and R are true but R is not the correct explanation of A.
- A is true but R is false.
- A is false but R is true.