CBSE Class 12 Computer Science Question 59 of 136

Data File Handling — Question 24

Back to all questions
24
Question

Question 24

Which of the following modes 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.