Question 5Asked in DSSSB TGT Computer Science (Technical), 12 Sep 2025, Shift 2 (1:00 PM)

If CloseHandle is NOT called after opening a file with CreateFile, which of the following

If CloseHandle is NOT called after opening a file with CreateFile, which of the following issues might occur?
  1. AThe file will be corrupted.
  2. BResources associated with the file may not be released.
  3. CThe file may not be accessible.
  4. DThe file will become read-only.
Show answerHide answer

Correct answer: (B) Resources associated with the file may not be released.

Explanation

CloseHandle releases the kernel object and the resources tied to the handle. If it is never called, those handles and resources stay allocated (a handle/resource leak) until the process ends.

From DSSSB TGT Computer Science PYQ (Technical), 12 Sep 2025, Shift 2 (1:00 PM)

This is question 5 of DSSSB TGT Computer Science PYQ (Technical), 12 Sep 2025, Shift 2 (1: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.