Which of the following options can be used to read the first line of a text file data.txt?
1.f = open(‘data.txt’); f.read()
2. f = open(‘data.txt’,’r’); f.read(n)
3.myfile = open(‘data.txt’); f.readline()
4. f = open(‘data.txt’); f.readlines()
Answer:3