Home MCQs Memory Management & Virtual Memory
MCQs

Memory Management & Virtual Memory

Memory Management & Virtual Memory | MCQs & Past Papers

Practice MCQs Solved Questions Exam Preparation
7 Total MCQs
0 Topics
1 Past Papers

Memory Management & Virtual Memory

Q1
Paging is implemented in:
A Operating System
B Hardware
C Software
D None of these
Explanation
Paging is a memory-management scheme used by the operating system to divide logical memory into fixed-size pages and physical memory into fixed-size frames. The operating system manages the mapping between pages and frames using page tables.
Q2
Page-Table Length Register (PTLR) indicates the size of:
A Page Table
B Paging File
C Main Memory
D Virtual Memory
Explanation
The Page-Table Length Register (PTLR) indicates the size or length of the page table. It helps determine the number of entries present in the page table for a process.
Q3
Bringing a page into memory only when it is needed is called:
A Demand Paging
B Page Replacement
C Page Fault
D Page Segmentation
Explanation
Demand Paging is a virtual memory technique in which pages are loaded into physical memory only when they are needed. If a required page is not currently in memory, a page fault occurs and the operating system loads the page from secondary storage.
Q4
Divided logical memory into blocks with the same size as frames are called:
A Pages
B Frames
C Page Table
D Segmentation
Explanation
In paging, logical memory is divided into fixed-size blocks called pages, while physical memory is divided into fixed-size blocks called frames. Pages and frames have the same size, allowing pages to be mapped to available frames.
Q5
Which memory allocation policy allocates the largest hole to the process?
A Best-Fit
B Worst-Fit
C First-Fit
D None of them
Explanation
Worst-Fit is a memory allocation strategy that searches for and allocates the largest available free memory block, or hole, to a process. It is intended to leave relatively large remaining holes for future allocations.
Q6
When there is enough memory to fit a process in memory, but the space is not contiguous, we need:
A Internal Fragmentation
B Virtual Fragmentation
C External Fragmentation
D None of them
Explanation
External Fragmentation occurs when enough total free memory is available to satisfy a process request, but the free space is scattered across separate non-contiguous blocks. Therefore, the process cannot be allocated despite sufficient total free memory.
Q7
A time-sharing system implies:
A More than one processor in the system
B More than one memory in the system
C More than one program in memory
D None of above
Explanation
A time-sharing system allows multiple users or programs to share CPU time. Multiple programs are kept in memory, and the CPU rapidly switches among them to provide interactive execution. It does not require multiple processors.