1. The main disadvantage of paging is:
Correct Answer: a) Internal fragmentation
Explanation: Paging eliminates external fragmentation but may cause internal fragmentation when a process doesn't completely fill its last page frame.
2. Which of the following is true about virtual memory?
Correct Answer: b) It is larger than physical memory
Explanation: Virtual memory creates the illusion of a larger memory space by using disk storage to supplement physical RAM.
3. The page fault service time includes:
Correct Answer: c) Both a and b
Explanation: Page fault handling involves context switching to the OS, disk I/O to fetch the page, and potentially other overhead like updating page tables.
4. The main purpose of the MMU is:
Correct Answer: b) To translate logical to physical addresses
Explanation: The Memory Management Unit (MMU) is a hardware component that performs address translation using page tables.
5. Which of the following is not a memory management technique?
Correct Answer: c) Deadlock prevention
Explanation: Deadlock prevention is related to process synchronization, not directly to memory management techniques like paging or segmentation.
6. The main advantage of virtual memory is:
Correct Answer: b) Increased effective memory size
Explanation: Virtual memory allows programs to execute as if they have more memory available than physically exists in RAM.
7. The main disadvantage of swapping is:
Correct Answer: a) High disk I/O
Explanation: Swapping entire processes between memory and disk creates significant I/O overhead, slowing down system performance.
8. Which of the following is not a part of the memory hierarchy?
Correct Answer: d) None of the above
Explanation: All listed components (cache, RAM, hard disk) are part of the standard memory hierarchy from fastest/smallest to slowest/largest.
9. The main purpose of compaction is to:
Correct Answer: b) Reduce external fragmentation
Explanation: Compaction moves allocated memory blocks together to create larger contiguous free blocks, reducing external fragmentation.
10. In segmentation, each segment has:
Correct Answer: b) A variable size
Explanation: Segments correspond to logical program units (functions, arrays, etc.) and thus naturally have different sizes.
11. The main advantage of multi-level paging is:
Correct Answer: a) Reduced page table size
Explanation: Multi-level paging significantly reduces memory usage for page tables by only storing active portions in memory.
12. The main disadvantage of demand paging is:
Correct Answer: a) Increased page faults
Explanation: Demand paging can lead to more page faults initially as pages are only loaded when first accessed, though this is offset by memory savings.