Paging questions — page 1 of 2

Q54

GATE CS 2026 CS-1Memory ManagementMSQ2 marks
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?
More than one option can be correct.
Show answer without attempting

Answer: B, C

Q54

GATE CS 2026 CS-2Memory ManagementNAT2 marks
A system has a Translation Lookaside Buffer (TLB) that has a reach of 1 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 4 KB. The virtual address space is 64 GB and physical address space is 1 GB. If each TLB entry stores a 4-bit process id, page number, frame number, and a 2-bit control field, then the size of the TLB (in bytes) is ___________. (answer in integer)

Note: 1K=210,1M=220,1G=2301\text{K}=2^{10}, 1\text{M}=2^{20}, 1\text{G}=2^{30}
Show answer without attempting

Answer: 1536

Q55

GATE CS 2026 CS-2Memory ManagementNAT2 marks
Consider contiguous allocation of physical memory to processes using variable partitioning scheme. Suppose there are 8 holes in the memory of sizes 20 KB, 4 KB, 25 KB, 18 KB, 7 KB, 9 KB, 15 KB, and 12 KB. Assume that no two holes are adjacent. Two processes P1 of size 16 KB and P2 of size 9 KB arrive in that order, and they are allocated memory using the best-fit technique. After allocating space to P1 and P2, the number of holes of size less than 8 KB is ____________. (answer in integer)

Note: 1K=2101\text{K}=2^{10}
Show answer without attempting

Answer: 3

Q14

GATE CS 2025 CS-1Memory ManagementMCQ1 mark−1/3 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?
Show answer without attempting

Answer: A

Q51

GATE CS 2025 CS-1Memory ManagementNAT2 marks
A disk of size 512M bytes is divided into blocks of 64K bytes. A file is stored in the disk using linked allocation. In linked allocation, each data block reserves 4 bytes to store the pointer to the next data block. The link part of the last data block contains a NULL pointer (also of 4 bytes). Suppose a file of 1M bytes needs to be stored in the disk. Assume, 1K=2101\text{K} = 2^{10} and 1M=2201\text{M} = 2^{20}. The amount of space in bytes that will be wasted due to internal fragmentation is ______. (Answer in integer)
Show answer without attempting

Answer: 65468

Q58

GATE CS 2025 CS-2Memory ManagementNAT2 marks
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)
Show answer without attempting

Answer: 11

Q62

GATE CS 2024 CS-1Memory ManagementNAT2 marks
Consider a memory management system that uses a page size of 2 KB. Assume that both the physical and virtual addresses start from 0. Assume that the pages 0, 1, 2, and 3 are stored in the page frames 1, 3, 2, and 0, respectively. The physical address (in decimal format) corresponding to the virtual address 2500 (in decimal format) is _________
Show answer without attempting

Answer: 6596

Q24

GATE CS 2024 CS-2Memory ManagementMSQ1 mark
Which of the following tasks is/are the responsibility/responsibilities of the memory management unit (MMU) in a system with paging-based memory management?
More than one option can be correct.
Show answer without attempting

Answer: B, C, D

Q64

GATE CS 2024 CS-2Memory ManagementNAT2 marks
Consider a 32-bit system with 4 KB page size and page table entries of size 4 bytes each. Assume 1 KB=2101 \text{ 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 ________
Show answer without attempting

Answer: 1028

Q57

GATE CS 2023 CSMemory ManagementNAT2 marks
Consider the following two-dimensional array D in the 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 512 elements of the array D. The Least Recently Used (LRU) page-replacement policy is used by the operating system. A total of 30 physical page frames are allocated to a process which executes the following code snippet:
for (int i = 0; i < 128; i++)
  for (int j = 0; j < 128; j++)
    D[j][i] *= 10;
The number of page faults generated during the execution of this code snippet is ____________.
Show answer without attempting

Answer: 4096

Q58

GATE CS 2023 CSMemory ManagementNAT2 marks
Consider a computer system with 57-bit virtual addressing using multi-level tree-structured page tables with LL levels for virtual to physical address translation. The page size is 4 KB (1 KB=1024 B1 \text{ KB} = 1024 \text{ B}) and a page table entry at any of the levels occupies 8 bytes.

The value of LL is ____________.
Show answer without attempting

Answer: 5

Q38

GATE CS 2022 CSMemory ManagementMCQ2 marks−2/3 if wrong
Which one of the following statements is FALSE?
Show answer without attempting

Answer: C

Q11

GATE CS 2021 CS-1Memory ManagementMSQ1 mark
In the context of operating systems, which of the following statements is/are correct with respect to paging?
More than one option can be correct.
Show answer without attempting

Answer: A, C

Q48

GATE CS 2021 CS-2Memory ManagementNAT2 marks
Consider a three-level page table to translate a 39-bit virtual address to a physical address as shown below.

The page size is 4KB (1KB=2101\text{KB} = 2^{10} bytes) and page table entry size at every level is 8 bytes. A process PP is currently using 2GB (1GB=2301\text{GB} = 2^{30} bytes) virtual memory which is mapped to 2GB of physical memory. The minimum amount of memory required for the page table of PP across all levels is ____________ KB.
Question figure
Show answer without attempting

Answer: 4108

Q11

GATE CS 2020 CSMemory ManagementMCQ1 mark−1/3 if wrong
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 statements is TRUE?
Show answer without attempting

Answer: C

Q33

GATE CS 2019 CSMemory ManagementMCQ2 marks−2/3 if wrong
Assume that in a certain computer, the virtual addresses are 64 bits long and the physical addresses are 48 bits long. The memory is word addressable. The page size is 8 kB8\text{ 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 addresses can be translated without any TLB miss?
Show answer without attempting

Answer: B

Q47

GATE CS 2016 CS-1Memory ManagementNAT2 marks
Consider a computer system with 40-bit virtual addressing and page size of sixteen kilobytes. If the computer system has a one-level page table per process and each page table entry requires 48 bits, then the size of the per-process page table is ________ megabytes.
Show answer without attempting

Answer: 384.0

Q29

GATE CS 2015 CS-1Memory ManagementNAT1 mark
Consider a system with byte-addressable memory, 32-bit logical addresses, 4 kilobyte page size and page table entries of 4 bytes each. The size of the page table in the system in megabytes is ________.
Show answer without attempting

Answer: 4

Q19

GATE CS 2015 CS-2Memory ManagementNAT1 mark
A computer system implements a 40-bit virtual address, page size of 8 kilobytes, and a 128-entry translation look-aside buffer (TLB) organized into 32 sets each having four ways. Assume that the TLB tag does not store any process id. The minimum length of the TLB tag in bits is __________.
Show answer without attempting

Answer: 22

Q43

GATE CS 2015 CS-2Memory ManagementNAT2 marks
A computer system implements 8 kilobyte pages and a 32-bit physical address space. Each page table entry contains a valid bit, a dirty bit, three permission bits, and the translation. If the maximum size of the page table of a process is 24 megabytes, the length of the virtual address supported by the system is _______________ bits.
Show answer without attempting

Answer: 36

0/200 correct0 marks

Related topics in Memory Management