ExamLookup
Menu mobile
Home
Current Affairs
General Knowledge
Computer
Python
HTML
Programming and Problem Solving through Python
: File Processing in Python
टेक्स्ट फाइल data.txt की पहली लाइन को पढ़ने के लिए निम्न में से कौन सा विकल्प इस्तेमाल किया जा सकता है? , Which of the following options can be used to read the first line of a text file data.txt?
Which of the following options can be used to read the first line of a text file data.txt?
A.
f = open('data.txt'); f.read()
f = open('data.txt'); f.read()
B.
f = open('data.txt','r'); f.read(n)
f = open('data.txt','r'); f.read(n)
C.
myfile = open('data.txt'); f.readline()
myfile = open('data.txt'); f.readline()
D.
f= open('data.txt'); f.readlines()
f= open('data.txt'); f.readlines()
Solution
C. myfile = open('data.txt'); f.readline()
CCC Online Test 2021
CCC Practice Test Hindi
Python Programming Tutorials
Best Computer Training Institute in Prayagraj (Allahabad)
O Level NIELIT Study material and Quiz
Bank SSC Railway TET UPTET Question Bank
career counselling in allahabad
Sarkari Exam Quiz
Website development Company in Allahabad