Question 54Asked in DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 1

Consider a main memory with the capacity of 3 page frames which are initially empty. Page reference is 4, 7, 6, 1, 7, 6, 1, 2, 7, 2. What is the number of…

Consider a main memory with the capacity of 3 page frames which are initially empty. Page reference is 4, 7, 6, 1, 7, 6, 1, 2, 7, 2. What is the number of page fault using optimal page replacement algorithm?
  1. A7
  2. B6
  3. C5
  4. D4
Show answerHide answer

Correct answer: (C) 5

Explanation

Faults for 4, 7, 6 (3). Page 1: evict 4 (never used again), fault 4. 7, 6, 1 hit. Page 2: evict 6 or 1 (never used again), fault 5. 7 and 2 hit. Total 5 page faults.

From DSSSB TGT Computer Science PYQ (Technical), 1 Aug 2021, Shift 1

This is question 54 of DSSSB TGT Computer Science PYQ (Technical), 1 Aug 2021, Shift 1. 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.