MCQ Answer

What does readlines() method return ?

What does readlines() method return ?

रीडलाइन () मेथड क्या रिटर्न करता है?
Topic : File Processing in Python

A. Dictionary शब्दकोश

B. String स्ट्रिंग

C. Tuple टपल

D. List लिस्ट




Correct Answer is :

D. List



Explanation

In Python, the readlines() method is a method used with file objects. It reads all the lines in a file and returns them as a list of strings. Each element in the list corresponds to a line in the file.

Online Exam Quiz for One day Exam Online Typing Test CCC Online Test 2026 Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Best Website and Software Company in Allahabad