Question 10Asked in DSSSB TGT Computer Science (Technical), 13 Sep 2025, Shift 3 (5:00 PM)

In which scenario would the ReadConsole system call be used over ReadFile?

  1. AWhen reading input from a network socket
  2. BWhen reading from a database
  3. CWhen reading from the console or terminal window
  4. DWhen reading from a disk file
Show answerHide answer

Correct answer: (C) When reading from the console or terminal window

Explanation

In the Windows API, ReadConsole reads characters from the console input buffer (the terminal window). ReadFile is the general call for files, pipes and devices.

From DSSSB TGT Computer Science PYQ (Technical), 13 Sep 2025, Shift 3 (5:00 PM)

This is question 10 of DSSSB TGT Computer Science PYQ (Technical), 13 Sep 2025, Shift 3 (5:00 PM). 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.