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 6–10 of 67

Q6GATE 2025 (Session 2)2 marksMSQ
Consider a demand paging system with three frames, and the following page reference string: 1 2 3 4 5 4 1 6 4 5 1 3 2. The contents of the frames are as follows initially and after each reference (from left to right):
initiallyafter -1*2*3*4*5*416*451*3*2* -1111111666662 --224444444111 ---33555555533
The *-marked references cause page replacements.
Which one or more of the following could be the page replacement policy/policies in use?

One or more options are correct.

Q7GATE 2025 (Session 2)2 marksNAT
A computer system supports a logical address space of 2322^{32} bytes. It uses two-level hierarchical paging with a page size of 4096 bytes. A logical address is divided into a bb-bit index to the outer page table, an offset within the page of the inner page table, and an offset within the desired page. Each entry of the inner page table uses eight bytes. All the pages in the system have the same size.

The value of bb is ___________ . (Answer in integer)

Q8GATE 2024 (Session 1)2 marksNAT
Consider a memory management system that uses a page size of 2 KB2 \mathrm{~KB}. Assume that both the physical and virtual addresses start from 0. Assume that the pages 0,1,20,1,2, and 33 are stored in the page frames 1,3,21,3,2, and 00, respectively. The physical address (in decimal format) corresponding to the virtual address 25002500 (in decimal format) is ____

Q9GATE 2024 (Session 2)1 markMSQ
Which of the following tasks is/are the responsibility/responsibilities of the memory management unit (MMU) in a system with paging-based memory management?

One or more options are correct.

Q10GATE 2024 (Session 2)2 marksNAT
Consider a 32-bit system with 4 KB4 \mathrm{~KB} page size and page table entries of size 4 bytes each. Assume 1 KB=2101 \mathrm{~KB}=2^{10} bytes. The OS uses a 2-level page table for memory management, with the page table containing an outer page directory and an inner page table. The OS allocates a page for the outer page directory upon process creation. The OS uses demand paging when allocating memory for the inner page table, i.e., a page of the inner page table is allocated only if it contains at least one valid page table entry.
An active process in this system accesses 2000 unique pages during its execution, and none of the pages are swapped out to disk. After it completes the page accesses, let XX denote the minimum and YY denote the maximum number of pages across the two levels of the page table of the process.
The value of X+YX+Y is _____

Keep practising

Topics in Operating System

All CS topics ›