Understanding Virtual Memory
Which of the following best describes virtual memory?
- A memory management technique that gives the illusion of a larger main memory than physically exists
- A type of physical RAM installed on the motherboard
- A hard disk that stores operating system files only
- The process of backing up memory to an external drive
- A method of encrypting data in memory
Paging Concepts
In paging, what is a 'page fault'?
- When a program accesses a page not currently in main memory
- When a page is written to disk for backup purposes
- When two processes try to use the same memory page
- A type of hardware failure in RAM modules
- When an operating system switches between user accounts
Address Translation
Given the following code snippet, what translates a virtual address to a physical address?nnint *ptr = (int*)0x00400010; // Example memory access
- The Memory Management Unit (MMU)
- The Central Processing Unit (CPU) cache
- The device driver
- The application’s source code
- The network interface card (NIC)
Page Table Structure
What is stored in a page table?
- The mapping between virtual pages and physical frames
- The list of interrupt requests
- The execution order of processes
- File directory structures
- Network routing tables
Page Replacement Policies
Which of these is a common page replacement algorithm in virtual memory systems?
- Least Recently Used (LRU)
- First Come First Served (FCFS)
- Round Robin (RR)
- Binary Search Algorithm
- Flood Fill Algorithm
Thrashing Trap
What often happens if a system experiences too many page faults per second?
- The system enters a state called thrashing, with severely degraded performance
- The CPU temperature drops rapidly
- All data is saved instantly to disk
- Processes become immune to memory errors
- Application performance improves dramatically
Fragmentation Types
Which type of fragmentation can be significantly reduced by using paging?
- External fragmentation
- Internal segmentation
- Binary fragmentation
- Logical fragmentation
- Stack fragmentation
Identifying Typos
Select the correct term for the smallest fixed-size block in paging systems from the options below.
- Page
- Paeg
- Pegge
- Paige
- Pagge
Common Pitfall: Stack Overflow
What is most likely to cause a stack overflow in a process's memory layout?
- Infinite or excessively deep recursion
- A large number of open network connections
- Frequent context switching
- Too many threads waiting for I/O
- Insufficient secondary storage
Virtual Address Space
For a 32-bit system, what is the maximum theoretical size of the virtual address space for a process?
- 4 GB
- 16 KB
- 64 GB
- 2 TB
- 128 MB