Report Bug

QusWhich of the following options can be used to read the first line of a text file data.txt? Qus टेक्स्ट फाइल data.txt की पहली लाइन को पढ़ने के लिए निम्न में से कौन सा विकल्प इस्तेमाल किया जा सकता है?


A. f = open('data.txt'); f.read()
B. f = open('data.txt','r'); f.read(n)
C. myfile = open('data.txt'); f.readline()
D. f= open('data.txt'); f.readlines()


Solution
C. myfile = open('data.txt'); f.readline()



Latest Current Affairs 2025 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