What will be the output of the following code?

myobject=open("myfile.txt",'r')

myobject.readline(10)

myobject.close()

1

It prints the first 10 characters of the file opened

2
It prints the first character of the file 10 times
3
It prints the first 10 lines of the file
4
It prints the first 10 characters of the filename

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation