CS FundamentalsVery hardGATE CS · TCS Digital

The page reference string is 1, 2, 1, 3, 4, 1, 2, 5, 2, 1. Using a working-set window of the last 5 references, what is the size of the working set at the end of the string (after the final reference)?

  1. A. 4
  2. B. 5
  3. C. 3
  4. D. 2

Correct answer: C. 3

The window covers 1, 2, 5, 2, 1, whose distinct pages are 1, 2 and 5, so the size is 3.

More Operating Systems questions

Exams that ask this topic