Question 68

Which method out of the following will allow the read operation from a Binary file in a Python program?

  1. Aread
  2. Binput
  3. Caccept
  4. Dload
Show answerHide answer

Correct answer: (A) read

Explanation

read() reads bytes from a file opened in binary mode ('rb'). input() reads from the keyboard.

From DSSSB TGT Computer Science Practice Set 5

This is question 68 of DSSSB TGT Computer Science Practice Set 5. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.