Memory Management: GATE CS Previous Year Questions

Memory Management · Operating System

67 questions · asked in 27 of 27 years (2000–2026)

MCQ 43 · MSQ 4 · NAT 201-mark 36 · 2-mark 31

2000Questions per year2026

Questions 1–5 of 67

Q1GATE 2026 (Session 1)2 marksMSQ
Consider a system that has a cache memory unit and a memory management unit (MMU). The address input to the cache memory is a physical address. The MMU has a translation lookaside buffer (TLB). Assume that when a page is evicted from the main memory, the corresponding blocks in the cache are marked as invalid.

For a given memory reference, which of the following sequences of events can NEVER happen?

One or more options are correct.

Q2GATE 2026 (Session 2)2 marksNAT
A system has a Translation Lookaside Buffer (TLB) that has a reach of 11 MB. TLB reach is defined as the total amount of physical memory that can be accessed through the TLB entries. The paging system uses pages of size 44 KB. The virtual address space is 6464 GB and physical address space is 11 GB. If each TLB entry stores a 44-bit process id, page number, frame number, and a 22-bit control field, then the size of the TLB (in bytes) is ________. (answer in integer)
Note: 1K=210,1M=220,1G=2301 {K}=2^{10}, 1 {M}=2^{20}, 1 {G}=2^{30}

Q3GATE 2026 (Session 2)2 marksNAT
Consider contiguous allocation of physical memory to processes using variable partitioning scheme. Suppose there are 88 holes in the memory of sizes 20KB,4KB20 \text{KB}, 4 \text{KB}, 25KB,18KB,7KB,9KB,15KB25 \text{KB}, 18 \text{KB}, 7 \text{KB}, 9 \text{KB}, 15 \text{KB}, and 12KB12\text{KB}. Assume that no two holes are adjacent. Two processes P1\text{P1} of size 16KB16KB and P2\text{P2} of size 9KB9KB arrive in that order, and they are allocated memory using the best-fit technique. After allocating space to P1\text{P1} and P2\text{P2}, the number of holes of size less than 8KB8KB is ________. (answer in integer)
Note: 1K=2101 {K}=2^{10}

Q4GATE 2025 (Session 1)1 markMCQ−0.33 if wrong
Consider a demand paging memory management system with 32-bit logical address, 20-bit physical address, and page size of 2048 bytes. Assuming that the memory is byte addressable, what is the maximum number of entries in the page table?

Q5GATE 2025 (Session 1)2 marksNAT
In optimal page replacement algorithm, information about all future page references is available to the operating system (OS). A modification of the optimal page replacement algorithm is as follows:
The OS correctly predicts only up to next 4 page references (including the current page) at the time of allocating a frame to a page.
A process accesses the pages in the following order of page numbers:

1, 3, 2, 4, 2, 3, 1, 2, 4, 3, 1, 4.

If the system has three memory frames that are initially empty, the number of page faults that will occur during execution of the process is _________. (Answer in integer)

Keep practising

Topics in Operating System

All CS topics ›