In a paging system, which of the following maps virtual addresses to physical addresses?
A) Page table
B) Segment table
C) TLB
D) Cache
Answer: A) Page table
What is a page fault in the context of virtual memory?
A) An illegal memory access
B) A page not found in main memory
C) A process exceeding its memory limit
D) The operating system crashing
Answer: B) A page not found in main memory
Which of the following best describes segmentation?
A) Dividing memory into fixed-size blocks
B) Dividing programs into variable-size segments
C) Allocating memory contiguously
D) Allocating memory based on process priority
Answer: B) Dividing programs into variable-size segments
What is the purpose of a translation lookaside buffer (TLB) in a paging system?
A) To store data for quick CPU access
B) To cache frequently used page table entries
C) To manage virtual memory
D) To perform memory compaction
Answer: B) To cache frequently used page table entries
Which of the following causes internal fragmentation?
A) Fixed-size page allocation
B) Variable-size segment allocation
C) Excessive swapping
D) Memory compaction
Answer: A) Fixed-size page allocation
What is a segment table used for in segmentation?
A) Mapping virtual pages to physical frames
B) Keeping track of segment locations in memory
C) Allocating fixed memory blocks
D) Mapping processes to processors
Answer: B) Keeping track of segment locations in memory
Which of the following leads to external fragmentation?
A) Paging
B) Segmentation
C) Fixed partitioning
D) Cache allocation
Answer: B) Segmentation
In a system using paging, what is stored in a page table entry?
A) The size of the page
B) The process ID
C) The frame number of the physical memory
D) The segment number
Answer: C) The frame number of the physical memory
Which of the following describes virtual memory?
A) The physical memory installed on the system
B) Memory that is accessed via the CPU cache
C) A technique to extend the available memory using disk space
D) The memory directly managed by the user
Answer: C) A technique to extend the available memory using disk space
What is the primary advantage of using paging over segmentation?
A) Paging eliminates external fragmentation
B) Paging supports variable-sized memory blocks
C) Paging simplifies program structure
D) Paging provides faster CPU access
Answer: A) Paging eliminates external fragmentation
Which of the following memory management techniques uses a page table?
A) Segmentation
B) Paging
C) Contiguous memory allocation
D) Fixed partitioning
Answer: B) Paging
What happens when the TLB does not contain a mapping for the requested page?
A) A segmentation fault occurs
B) The operating system crashes
C) A TLB miss occurs, and the page table is accessed
D) The page is swapped out
Answer: C) A TLB miss occurs, and the page table is accessed
Which type of fragmentation is more common in segmentation?
A) Internal fragmentation
B) External fragmentation
C) Logical fragmentation
D) Virtual fragmentation
Answer: B) External fragmentation
What is the primary role of the MMU (Memory Management Unit)?
A) To manage disk I/O
B) To allocate physical memory
C) To translate virtual addresses to physical addresses
D) To handle process synchronization
Answer: C) To translate virtual addresses to physical addresses
In a virtual memory system, what is swapping?
A) Moving processes from main memory to disk and back
B) Loading the entire process into memory
C) Copying data between registers and cache
D) Allocating contiguous blocks of memory
Answer: A) Moving processes from main memory to disk and back
What causes a page fault in a demand paging system?
A) A process tries to access a page not in memory
B) The page table is full
C) The TLB has been cleared
D) The memory is corrupted
Answer: A) A process tries to access a page not in memory
Which of the following is a key advantage of using virtual memory?
A) Increased CPU speed
B) Isolation between processes
C) Elimination of paging
D) Reduced disk usage
Answer: B) Isolation between processes
What is a segment fault in segmentation?
A) When a process exceeds its allocated segment
B) When a segment is swapped out to disk
C) When a segment is not found in the page table
D) When a process terminates unexpectedly
Answer: A) When a process exceeds its allocated segment
In a paging system, what is the purpose of page replacement?
A) To allocate memory blocks contiguously
B) To manage multiple processes in memory
C) To replace pages in memory when the page table is full
D) To replace pages that are least recently used
Answer: D) To replace pages that are least recently used
Which of the following occurs during a TLB hit?
A) A page is swapped into memory
B) The page table is accessed
C) The page frame is found in the TLB
D) A segmentation fault occurs
Answer: C) The page frame is found in the TLB
Which of the following memory management techniques is prone to internal fragmentation?
A) Segmentation
B) Paging
C) Virtual memory
D) Dynamic memory allocation
Answer: B) Paging
In a virtual memory system, which of the following is the result of excessive page faults?
A) Thrashing
B) Segmentation fault
C) Memory leak
D) Deadlock
Answer: A) Thrashing
What is the difference between paging and segmentation?
A) Paging divides memory into fixed-size pages, while segmentation divides memory into variable-sized segments
B) Segmentation is faster than paging
C) Paging allocates memory contiguously, while segmentation does not
D) Segmentation requires more physical memory than paging
Answer: A) Paging divides memory into fixed-size pages, while segmentation divides memory into variable-sized segments
What is the primary benefit of demand paging?
A) Faster CPU performance
B) Reduces the need for physical memory
C) Eliminates the need for a page table
D) Ensures all processes are fully loaded into memory
Answer: B) Reduces the need for physical memory
Which memory management technique allows for logical division of programs?
A) Paging
B) Segmentation
C) Contiguous allocation
D) Fixed partitioning
Answer: B) Segmentation
What happens when a page replacement algorithm replaces a page?
A) The new page is added to the TLB
B) The page table is updated to reflect the new page in memory
C) The memory is cleared of all pages
D) The CPU reallocates memory blocks
Answer: B) The page table is updated to reflect the new page in memory
Which of the following describes the concept of thrashing in a paging system?
A) The process of continuously swapping pages in and out of memory
B) The fragmentation of memory blocks
C) The segmentation of large memory regions
D) The compaction of memory blocks
Answer: A) The process of continuously swapping pages in and out of memory
What is a valid page table entry in paging?
A) An entry that points to a valid page in physical memory
B) An entry that points to a segment in memory
C) An entry that marks a process as running
D) An entry that indicates the size of the page
Answer: A) An entry that points to a valid page in physical memory
Which of the following algorithms is used to select a page for replacement in memory?
A) FIFO
B) LRU
C) Round-robin
D) Multilevel feedback queue
Answer: B) LRU
What is the primary role of the page frame in a paging system?
A) It stores a process’s stack
B) It holds a fixed-size block of physical memory
C) It manages CPU registers
D) It handles input/output devices
Answer: B) It holds a fixed-size block of physical memory
What is the main disadvantage of paging?
A) External fragmentation
B) Internal fragmentation
C) Increased process synchronization time
D) Lack of process isolation
Answer: B) Internal fragmentation
Which of the following best describes a page frame in virtual memory?
A) A fixed-size block of physical memory
B) A variable-size block of logical memory
C) A portion of the TLB
D) A file on disk that stores data
Answer: A) A fixed-size block of physical memory
What is the purpose of the valid/invalid bit in a page table entry?
A) To indicate whether a page is in memory or on disk
B) To show if a page is writable
C) To track the age of a page
D) To mark pages for deletion
Answer: A) To indicate whether a page is in memory or on disk
In virtual memory, what is the swap space?
A) Space in RAM for memory paging
B) Disk space used to temporarily store pages
C) Memory allocated for I/O operations
D) Cache space for frequently used pages
Answer: B) Disk space used to temporarily store pages
What is the role of a page fault handler in a paging system?
A) To reload pages from disk into memory
B) To update the page table for running processes
C) To handle memory allocation errors
D) To allocate more memory for processes
Answer: A) To reload pages from disk into memory
In paging, what does the frame number represent?
A) The size of the physical page
B) The index of the page in virtual memory
C) The location of the page in physical memory
D) The number of memory accesses
Answer: C) The location of the page in physical memory
What is the primary goal of memory segmentation?
A) To improve memory utilization
B) To provide logical separation of a process’s components
C) To eliminate page faults
D) To prevent memory leaks
Answer: B) To provide logical separation of a process’s components
Which of the following describes a segmented paging system?
A) It divides memory into both fixed-size pages and variable-size segments
B) It eliminates the need for a TLB
C) It allocates memory contiguously
D) It prevents fragmentation
Answer: A) It divides memory into both fixed-size pages and variable-size segments
What is the main benefit of virtual memory for programs?
A) Faster memory access
B) Larger addressable memory space
C) Reduced process switching time
D) Decreased memory overhead
Answer: B) Larger addressable memory space
Which of the following occurs during a page fault?
A) The CPU accesses the page table
B) The page is loaded from disk into memory
C) The TLB is updated
D) The program terminates
Answer: B) The page is loaded from disk into memory
What is the role of memory compaction in segmentation?
A) To reduce internal fragmentation
B) To combine free memory into contiguous blocks
C) To allocate pages contiguously
D) To prevent page faults
Answer: B) To combine free memory into contiguous blocks
Which of the following describes paging and segmentation combined in a system?
A) Logical division into segments, further divided into pages
B) Memory allocation based on priority
C) Segmentation followed by compaction
D) Contiguous allocation of both pages and segments
Answer: A) Logical division into segments, further divided into pages
Which of the following is a feature of virtual memory that separates it from physical memory?
A) It requires disk access for page swapping
B) It uses continuous blocks of memory
C) It requires contiguous memory allocation
D) It is directly accessed by the CPU
Answer: A) It requires disk access for page swapping
Read More Computer Architecture MCQs
- SET 1: Computer Architecture MCQs
- SET 2: Computer Architecture MCQs
- SET 3: Computer Architecture MCQs
- SET 4: Computer Architecture MCQs
- SET 5: Computer Architecture MCQs
- SET 6: Computer Architecture MCQs
- SET 7: Computer Architecture MCQs
- SET 8: Computer Architecture MCQs
- SET 9: Computer Architecture MCQs
- Introduction to Computer Architecture MCQs
- Basic Components of a Computer System MCQs
- CPU Organization MCQs
- Instruction Set Architecture (ISA) MCQs
- Microarchitecture MCQs
- Memory Hierarchy MCQs
- Cache Memory MCQs
- Input/Output Organization MCQs
- Bus Architecture MCQs
- Performance Metrics MCQs
- Parallelism in Computer Architecture MCQs
- Multicore and Multiprocessor Systems MCQs
- Control Unit Design MCQs
- Pipeline Hazards MCQs
- Branch Prediction and Speculation MCQs
- Arithmetic and Logic Operations MCQs
- Memory Management MCQs
- Power and Energy Efficiency MCQs
- Advanced Topics MCQs
- Emerging Trends