CBSE Class 12 Computer Science Question 124 of 136

Data File Handling — Question 12

Back to all questions
12
Question

Question 12

readlines() function returns a list of strings, each separated by "\n".

Answer

True

Reason — The readlines() function reads all lines from the file into a list. It starts reading from the cursor position up to the end of the file and returns a list of strings, with each string separated by the newline character '\n'.