NIELIT O Level Exam

Which function writes/returns a list of strings to/from a file?

Which function writes/returns a list of strings to/from a file?

File से strings की list कौन-सा function return करता है?

A. writelines()

B. write()

C. readlines()

D. append()




Correct Answer is :

C. readlines()



Explanation
readlines() reads all lines and returns them as a list of strings.

readlines() सभी lines को पढ़कर strings की list return करता है।
Latest Current Affairs 2026 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online MBA 2 years Online MCA Online BCA Best Website and Software Company in Allahabad