Computer

Memory Management Techniques MCQs with Answers

What is the primary goal of memory management in an operating system?
a) To allocate CPU resources to processes
b) To store files on the disk
c) To efficiently manage the computer’s memory resources
d) To monitor network traffic

Answer
c) To efficiently manage the computer’s memory resources

Which of the following memory management techniques is used to divide memory into fixed-size blocks?
a) Paging
b) Segmentation
c) Memory mapping
d) Virtual memory

Answer
a) Paging

What is the function of the memory management unit (MMU) in an operating system?
a) To handle file system operations
b) To translate virtual addresses to physical addresses
c) To manage disk storage
d) To schedule tasks for the CPU

Answer
b) To translate virtual addresses to physical addresses

Which memory management technique divides memory into variable-sized segments?
a) Paging
b) Segmentation
c) Memory mapping
d) Swapping

Answer
b) Segmentation

What is the primary benefit of using paging in memory management?
a) It eliminates fragmentation in memory
b) It allows more efficient use of CPU resources
c) It divides memory into large, contiguous blocks
d) It increases system security

Answer
a) It eliminates fragmentation in memory

In a system using paging, what is the size of a page typically based on?
a) The size of the CPU register
b) The size of the physical memory
c) A fixed block size set by the operating system
d) The amount of disk space available

Answer
c) A fixed block size set by the operating system

Which of the following is a disadvantage of the segmentation memory management technique?
a) External fragmentation
b) Increased memory overhead
c) Fixed size segments
d) Simplified memory allocation

Answer
a) External fragmentation

What is the role of the page table in a paging system?
a) To map virtual addresses to physical addresses
b) To store data about the operating system
c) To track the status of each process
d) To schedule memory allocation

Answer
a) To map virtual addresses to physical addresses

What is the purpose of the swap space in virtual memory?
a) To store system files
b) To hold the page table
c) To extend the system’s available memory by swapping data in and out of disk
d) To store backup data

Answer
c) To extend the system’s available memory by swapping data in and out of disk

Which technique is used to improve memory usage by swapping data between physical memory and disk storage?
a) Paging
b) Segmentation
c) Swapping
d) Virtual memory

Answer
c) Swapping

What is internal fragmentation in memory management?
a) Unused space within allocated memory blocks
b) Unused space between different memory segments
c) Memory that is not allocated to any process
d) Space used by the system for virtual memory

Answer
a) Unused space within allocated memory blocks

What is external fragmentation in memory management?
a) When data is split across different pages
b) When free memory is scattered in small blocks throughout the system
c) When memory is not properly allocated to processes
d) When the page table becomes corrupted

Answer
b) When free memory is scattered in small blocks throughout the system

Which memory management technique is used in systems with limited physical memory to allow larger applications to run?
a) Virtual memory
b) Paging
c) Segmentation
d) Swapping

Answer
a) Virtual memory

What does the term “thrashing” refer to in memory management?
a) The process of allocating more memory to a system
b) The situation where the system spends most of its time swapping data between memory and disk
c) The process of cleaning up memory leaks
d) The swapping of data between physical and virtual memory

Answer
b) The situation where the system spends most of its time swapping data between memory and disk

Which technique is used in memory management to combine small, free memory blocks into larger ones?
a) Compaction
b) Paging
c) Segmentation
d) Swapping

Answer
a) Compaction

What is the main goal of memory compaction in operating systems?
a) To increase memory speed
b) To eliminate fragmentation by merging free memory blocks
c) To reduce the amount of memory used by processes
d) To allocate memory more efficiently

Answer
b) To eliminate fragmentation by merging free memory blocks

What does the term “demand paging” refer to?
a) A type of memory management where pages are loaded only when required
b) A technique where all memory pages are loaded at startup
c) A system where the CPU schedules memory allocation
d) A method of storing pages in the page table

Answer
a) A type of memory management where pages are loaded only when required

Which of the following is true about the FIFO (First In First Out) page replacement algorithm?
a) It replaces the page that has been in memory the longest
b) It replaces the most recently used page
c) It replaces pages randomly
d) It replaces pages based on their size

Answer
a) It replaces the page that has been in memory the longest

Which of the following page replacement algorithms attempts to replace the page that will not be used for the longest period of time?
a) FIFO
b) LRU (Least Recently Used)
c) Optimal
d) Random

Answer
c) Optimal

What is the Least Recently Used (LRU) page replacement algorithm used for?
a) To allocate memory to processes
b) To choose which pages to swap out when memory is full
c) To optimize disk I/O
d) To prioritize CPU processes

Answer
b) To choose which pages to swap out when memory is full

Which of the following is an advantage of the paging memory management technique?
a) No external fragmentation
b) No internal fragmentation
c) Reduced memory overhead
d) Simplified memory allocation

Answer
a) No external fragmentation

In which type of memory management is each process divided into smaller, fixed-size blocks?
a) Segmentation
b) Virtual memory
c) Paging
d) Swapping

Answer
c) Paging

Which of the following is a disadvantage of using virtual memory?
a) It increases the effective size of physical memory
b) It can lead to thrashing if memory is overused
c) It is easier to manage than physical memory
d) It eliminates fragmentation

Answer
b) It can lead to thrashing if memory is overused

What is the primary disadvantage of using a segmented memory management technique?
a) Fragmentation
b) Increased memory speed
c) Simplified memory management
d) Reduced security

Answer
a) Fragmentation

Which memory management technique allows processes to be allocated non-contiguous blocks of memory?
a) Paging
b) Segmentation
c) Compaction
d) Virtual memory

Answer
a) Paging

What does the term “swapping” refer to in memory management?
a) Moving data between main memory and the disk
b) Dividing memory into pages
c) Combining free memory blocks
d) Removing data from memory permanently

Answer
a) Moving data between main memory and the disk

Which of the following refers to a technique used to allocate memory only when needed?
a) Demand paging
b) Static allocation
c) Memory compaction
d) Dynamic memory management

Answer
a) Demand paging

What is the primary benefit of using a multi-level page table?
a) Reducing the page table size
b) Increasing the speed of paging
c) Simplifying the allocation of memory
d) Eliminating fragmentation

Answer
a) Reducing the page table size

Which memory management technique can result in thrashing when memory resources are overused?
a) Virtual memory
b) Segmentation
c) Paging
d) Swapping

Answer
a) Virtual memory

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button