Sanjeev has written a program which is showing an error. As a friend of Sanjeev, help him to identify the wrong statement. f=open("test.txt","w") #Statement1 L = ["My name ", "is ", "Amit"] #Statement2 f.writeline(L) #Statement3 f.close() #Statement4

Question:
Sanjeev has written a program which is showing an error. As a friend of Sanjeev, help him to identify the wrong statement.
f=open("test.txt","w") #Statement1
L = ["My name
", "is
", "Amit"] #Statement2
f.writeline(L) #Statement3
f.close() #Statement4

1.. Statement1

2.. Statement2

3.. Statemen3

4.. Statement4

Posted Date:-2021-12-12 00:35:21


More MCQS Questions and answers

Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!