Q.

What is the output of the following program?
f = None
for i in range (5):
with open("data.txt", "w") as f:
if i > 2:
break
print(f.closed)

A. True
B. False
C. None
D. Error
Answer» A. True
6.2k
0
Do you find this helpful?
30

View all MCQs in

Python Programming

Discussion

No comments yet