MCQ Answer

Which mode creates a new file if the file does not exist?

Which mode creates a new file if the file does not exist?

यदि फ़ाइल मौजूद नहीं है तो कौन सा मोड एक नई फाइल बनाता है?
Topic : File Processing in Python

A. write mode राइट मोड

B. read mode रीड मोड

C. append mode अपेण्ड मोड

D. Both (A) And (C) (A) और (C) दोनों




Correct Answer is :

D. Both (A) And (C)



Explanation
<p><span style="font-size: 14px;">w (write mode)</span></p><p><span style="font-size: 14px;">or</span></p><p><span style="font-size: 14px;">a (append mode)</span></p><p><span style="font-size: 14px;">or</span></p><p><span style="font-size: 14px;">x (exclusive creation mode)</span></p>
Latest Current Affairs 2025 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test 2025 Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Sarkari Naukari Notification Best Website and Software Company in Allahabad Sarkari Exam Quiz