Memory Management questions

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

Q54

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

Answer: 6

Q47

GATE CS 2025 CS-2Memory ManagementMSQ2 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  21 \; 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), as shown in the table:

The *-marked references cause page replacements.

Which one or more of the following could be the page replacement policy/policies in use?
Question figure
More than one option can be correct.
Show answer without attempting

Answer: D

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

0/50 correct0 marks

Related topics in Operating Systems