GATE CS 2014 Set 2 — Question 43
Go beyond PYQs with Success TrackerAI-powered personalised practice and doubt support. Unlimited practice on eligible plans; AI usage limits apply.MCQ+2 / -0.67HardPage Replacement AlgorithmsMemory ManagementOperating System
Operating System → Memory Management → Page Replacement Algorithms
Last updated
Question
A computer has twenty physical page frames which contain pages numbered 101 through 120. Now a program accesses the pages numbered 1, 2, …, 100 in that order, and repeats the access sequence THRICE. Which one of the following page replacement policies experiences the same number of page faults as the optimal page replacement policy for this program?
Correct answer
(D) Most-recently-used
Solution
The resident pages 101 to 120 are never referenced by the program, so the first 20 references (pages 1 to 20) fault and simply take over those 20 frames under every policy. After that the frames hold pages and the reference string is the cycle repeated, which is the worst case for recency-based eviction.Optimal (OPT). On each fault OPT evicts the page whose next use is farthest in the future. With a cyclic string that is always the page just used, i.e. the most recently used page. Counting faults gives in the first pass and in each of the next two passes: 260 faults.MRU. MRU evicts the most recently used page, which in this cyclic string is exactly OPT's victim at every fault, so MRU makes the same choices and also incurs 260 faults.LRU and FIFO (A, B). Both evict the page that is needed again soonest (the oldest one), so every one of the references faults: 300 faults.LIFO (C). LIFO evicts the page loaded last. It keeps pages fixed and cycles all other pages through one frame, so only 19 pages hit per pass: faults, two more than OPT.Only MRU matches the optimal policy.Answer: (D) Most-recently-used
Continue learning with Success Tracker
A step still unclear? Work through it with support
Use Success Tracker to ask about the reasoning, then try another GATE CS question to check your understanding.
AI-powered practice· Unlimited practice on eligible plans
- PYQs with solutions
- Attempt available previous-year questions, then compare your reasoning with the worked solution. Coverage varies by stream.
- Practice that adapts
- Choose a topic, work on weaker areas and bookmark questions to revisit. Your attempts feed your progress tracking.
- AI doubt support
- Ask follow-up questions about a step or concept while practising, instead of stopping at the final answer.
Unlimited practice is available on eligible plans. Free practice and AI usage have limits; check the current plan allowances before choosing.
This page stays readable without an account. AI responses can be wrong; check them against the solution and source material.
More questions on Memory Management
2026 Set 2 Q23Which one of the following CPU scheduling algorithms cannot be preemptive?2026 Set 1 Q29With respect to deadlocks in an operating system, which of the following statements is/are FALSE?2026 Set 1 Q31In the context of relational database normalization, which of the following statements is/are true?2026 Set 1 Q35Consider a system consisting of instances of a resource , being shared by 5 processes.…2026 Set 2 Q51Consider three processes P1, P2, and P3 running identical code, as shown in the pseudocode below. A…