Report Bug

Qus

What happens if the file does not exist?

f = open("abc.txt", "r")
Qus

यदि फ़ाइल मौजूद न हो तो क्या होगा?

f = open("abc.txt", "r")


A. New file is created
B. FileNotFoundError
C. Returns None
D. Opens empty file


Solution
B. FileNotFoundError



Latest Current Affairs 2026 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online MBA 2 years Online MCA Online BCA Best Website and Software Company in Allahabad