CBSE Class 12 Computer Science Question 46 of 145

File Handling — Question 7

Back to all questions
7
Question

Question 7

Which of the following mode will refer to binary data ?

  1. r
  2. w
  3. +
  4. b
Answer

b

Reason — When we open a file in binary mode by adding 'b' to the file mode, it indicates that the file should be treated as a binary file.