Skip to content

GATE CS Memory Management and Virtual Memory questions

Practise Memory Management and Virtual Memory questions for GATE CS. Explore official PYQs and original topic-wise quizzes, check answers and view available solutions. Free, no sign-in.

Subject, topic, year and type filter the full library. Match any choice within a filter, and all selected filter categories. Search, source and sort apply to this page.

20 on this page
Official PYQ2026Operating SystemMemory Management and Virtual MemoryNAT · 2 marks
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, …
Official PYQ2026Operating SystemMemory Management and Virtual MemoryNAT · 2 marks
Consider contiguous allocation of physical memory to processes using variable partitioning scheme. Suppose there are 88 holes in the memory of sizes 20KB,4 KB20 \mathrm{KB}, 4 \mathrm{~KB}, 25 KB,18 KB,7 KB,9 KB,15 KB25 \mathrm{~KB}, 18 \mathrm{~KB}, 7 \mathrm{~KB}, 9 \mathrm{~KB}, 15 \mathrm{~KB}, and 1212 KB. Assume that no two holes are adjacent. Two processes P1\text{P1} of …
Official PYQ2025Operating SystemMemory Management and Virtual MemoryMCQ · 1 mark
Consider a demand paging memory management system with 3232-bit logical address, 2020-bit physical address, and page size of 20482048 bytes. Assuming that the memory is byte addressable, what is the maximum number of entries in the page table?
Official PYQ2025Operating SystemMemory Management and Virtual MemoryNAT · 2 marks
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 44 page references (including the current page) at the time of allocating a frame to a page. A process accesses the …
Official PYQ2025Operating SystemMemory Management and Virtual MemoryNAT · 2 marks
A computer system supports a logical address space of 2322^{32} bytes. It uses two-level hierarchical paging with a page size of 40964096 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 …
Official PYQ2025Operating SystemMemory Management and Virtual MemoryMCQ · 2 marks
​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): …
Official PYQ2024Operating SystemMemory Management and Virtual MemoryNAT · 2 marks
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 00. 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 …
Official PYQ2024Operating SystemMemory Management and Virtual MemoryMSQ · 1 mark
​Which of the following tasks is/are the responsibility/responsibilities of the memory management unit (MMU)\text{(MMU)} in a system with paging-based memory management?
Official PYQ2024Operating SystemMemory Management and Virtual MemoryNAT · 2 marks
Consider a 3232-bit system with 4 KB4 \mathrm{~KB} page size and page table entries of size 44 bytes each. Assume 1 KB=2101 \mathrm{~KB}=2^{10} bytes. The OS uses a 22-level page table for memory management, with the page table containing an outer page directory and an inner page table. The OS\text{OS} allocates a page for the outer page directory upon …
Official PYQ2023Operating SystemMemory Management and Virtual MemoryNAT · 2 marks
Consider a computer system with 5757-bit virtual addressing using multi-level tree-structured page tables with L\mathrm{L} levels for virtual to physical address translation. The page size is 4 KB(1 KB=1024 B)4 \mathrm{~KB}(1 \mathrm{~KB}=1024 \mathrm{~B}) and a page table entry at any of the levels occupies 88 bytes. The value of L\mathrm{L} is …
Official PYQ2023Operating SystemMemory Management and Virtual MemoryNAT · 2 marks
Consider the following two-dimensional array D\text{D} in the C\text{C} programming language, which is stored in row-major order: int D[128][128]; Demand paging is used for allocating memory and each physical page frame holds 512512 elements of the array D.\text{D}. The Least Recently Used (LRU)\text{(LRU)} page-replacement policy is used by the …
Official PYQ2022Operating SystemMemory Management and Virtual MemoryMCQ · 2 marks
Which one of the following statements is FALSE?\text{FALSE}?
Official PYQ2022Operating SystemMemory Management and Virtual MemoryNAT · 2 marks
Consider a demand paging system with four page frames (initially empty) and LRU\text{LRU} page replacement policy. For the following page reference string 7,2,7,3,2,5,3,4,6,7,7,1,5,6,17, 2, 7, 3, 2, 5, 3, 4, 6, 7, 7, 1, 5, 6, 1 the page fault rate, defined as the ratio of number of page faults to the number of memory accesses (rounded off to one decimal place)\textit{(rounded off to one decimal place)} is …
Official PYQ2021Operating SystemMemory Management and Virtual MemoryMSQ · 1 mark
In the context of operating systems, which of the following statements is/are correct with respect to paging?
Official PYQ2021Operating SystemMemory Management and Virtual MemoryNAT · 2 marks
Consider a three-level page table to translate a 39−39-bit virtual address to a physical address as shown below: The page size is 4 KB  (1KB=210\text{4 KB} \;(1\text{KB}=2^{10} bytes)) and page table entry size at every level is 88 bytes. A process PP is currently using 2GB  (1GB=2302\text{GB}\;(1 \text{GB}=2^{30} bytes)) virtual memory which is mapped to …
Official PYQ2020Operating SystemMemory Management and Virtual MemoryMCQ · 1 mark
Consider allocation of memory to a new process. Assume that none of the existing holes in the memory will exactly fit the process’s memory requirement. Hence, a new hole of smaller size will be created if allocation is made in any of the existing holes. Which one of the following statement is TRUE?
Official PYQ2020Operating SystemMemory Management and Virtual MemoryNAT · 2 marks
Consider a paging system that uses 11-level page table residing in main memory and a TLB\textsf{TLB} for address translation. Each main memory access takes 100100 ns and TLB\textsf{TLB} lookup takes 2020 ns. Each page transfer to/from the disk takes 50005000 ns. Assume that the TLB\textsf{TLB} hit ratio is 95%95 \%, page fault rate is 10%10 \%. …
Official PYQ2019Operating SystemMemory Management and Virtual MemoryMCQ · 2 marks
Assume that in a certain computer, the virtual addresses are 6464 bits long and the physical addresses are 4848 bits long. The memory is word addressible. The page size is 88 kB and the word size is 44 bytes. The Translation Look-aside Buffer (TLB) in the address translation path has 128128 valid entries. At most how many distinct virtual …
Official PYQ2018Operating SystemMemory Management and Virtual MemoryMCQ · 1 mark
Consider a process executing on an operating system that uses demand paging. The average time for a memory access in the system is MM units if the corresponding memory page is available in memory, and DD units if the memory access causes a page fault. It has been experimentally measured that the average time taken for a memory access in the process is …
Official PYQ2017Operating SystemMemory Management and Virtual MemoryMCQ · 1 mark
Recall that Belady's anomaly is that the page-fault rate may increase as the number of allocated frames increases. Now, consider the following statements: S1S_1: Random page replacement algorithm (where a page chosen at random is replaced) suffers from Belady's anomaly. S2S_2: LRU page replacement algorithm suffers from Belady's anomaly. Which of the …