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()



CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad