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

- Online Exam Test Papers | - MCQs[multiple choice questions and answers ] | - Mock Test Papers | - Practice Papers | - Sample Test Papers |

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


More MCQS Questions and answers

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!