Question 59Asked in UGC NET Computer Science, August 2016 (Paper II & III, Selected Questions)

Consider the following page reference string: 1, 2, 3, 4, 2, 1, 5, 6, 2, 1, 2, 3, 7, 6, 3, 2, 1, 2, 3, 6

Consider the following page reference string: 1, 2, 3, 4, 2, 1, 5, 6, 2, 1, 2, 3, 7, 6, 3, 2, 1, 2, 3, 6 Which of the following options, gives the correct number of page faults related of LRU, FIFO, and optimal page replacement algorithms respectively, assuming 05 page frames and all frames are initially empty?
  1. A10, 14, 8
  2. B8, 10, 7
  3. C7, 10, 8
  4. D7, 10, 7
Show answerHide answer

Correct answer: (B) 8, 10, 7

Explanation

With 5 frames: (1) LRU algorithm: total number of page faults = 8. (2) FIFO algorithm: total number of page faults = 10. (3) Optimal algorithm: total number of page faults = 7.

From UGC NET Computer Science PYQ, August 2016 (Paper II & III, Selected Questions)

This is question 59 of UGC NET Computer Science PYQ, August 2016 (Paper II & III, Selected Questions). 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.