CBSE 2026 · Central · Set 4 · Q10 · 1 mark
Consider the statement given below :
f1 = open("pqr.dat","________")
Which of the following is the correct file mode to open the file in read only mode ?
f1 = open("pqr.dat","________") Which of the following is the correct file mode to open the file in read only mode ?Official answer
From CBSE’s own marking scheme for this paper.
(B)
rb
Marking-scheme solution
(B)
rb
File Handling - Binary FilesBinary File Open ModesRemembermcq
More from File Handling - Binary Files
CBSE Class 12 Computer Science past-paper question from the 2026board exam, with the answer as CBSE’s own marking scheme gives it. Where our answers come from.