Question 16Asked in UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions)

A LRU page replacement is used with four page frames and eight pages. How many page faults will occur with the reference string 0172327103 if the four…

A LRU page replacement is used with four page frames and eight pages. How many page faults will occur with the reference string 0172327103 if the four frames are initially empty?
  1. A6
  2. B7
  3. C5
  4. D8
Show answerHide answer

Correct answer: (B) 7

Explanation

Reference string 0 1 7 2 3 2 7 1 0 3 with 4 frames (LRU): 0, 1, 7, 2 are faults (4); 3 replaces 0 (5); 2, 7, 1 are hits; 0 replaces 3 (6); 3 replaces 2 (7). Total page faults = 7.

From UGC NET Computer Science PYQ, June 2015 (Paper II & III, Selected Questions)

This is question 16 of UGC NET Computer Science PYQ, June 2015 (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.