Question

What is the purpose of the with statement when working with files?

A To open a file in write mode
B To open a file in read mode
C To ensure that a file is properly closed after it is no longer needed
D To delete a file
E To rename a file
Practice Next

Hey! Ask a query

🎓
Think You're Ready for RBI Grade B?
RBI Grade B 2026 Phase 1 Memory Based Paper
  • 200 Questions with Detailed Solutions
  • Section-wise Coverage (GA, English, Quant & Reasoning)