Question 39

File operations that manipulate the 'open-count' maintained for each entry in open-file table include:

  1. AOpen, write
  2. BRead, write
  3. CWrite, close
  4. DOpen, close
Show answerHide answer

Correct answer: (D) Open, close

Explanation

The open-count records how many processes have the file open. open() increments it and close() decrements it, and the entry is removed when it reaches zero.

From DSSSB TGT Computer Science Practice Set 5

This is question 39 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.