The address generated by the CPU is called a logical address (or virtual address), whereas the address seen by the memory unit is the physical address.
Incorrect! Try again.
2The run-time mapping from virtual to physical addresses is done by a hardware device called the:
A.Memory Management Unit (MMU)
B.Loader
C.CPU Scheduler
D.Device Driver
Correct Answer: Memory Management Unit (MMU)
Explanation:
The MMU is the hardware component responsible for translating logical addresses into physical addresses at run-time.
Incorrect! Try again.
3In the context of memory management, what is the backing store?
A.The main memory (RAM)
B.The fast disk large enough to accommodate copies of all memory images for all users
C.The L1 Cache
D.The Registry
Correct Answer: The fast disk large enough to accommodate copies of all memory images for all users
Explanation:
The backing store is usually a hard disk or SSD used in swapping and paging to store memory pages that are not currently in main memory.
Incorrect! Try again.
4Which memory allocation policy allocates the smallest hole that is big enough to hold a process?
A.Best fit
B.Worst fit
C.First fit
D.Next fit
Correct Answer: Best fit
Explanation:
Best fit searches the entire list (unless ordered by size) and produces the smallest leftover hole.
Incorrect! Try again.
5External fragmentation occurs when:
A.Allocated memory may be slightly larger than requested memory
B.Total memory space exists to satisfy a request, but it is not contiguous
C.A process is loaded into memory but never executed
D.Pages are not modified in memory
Correct Answer: Total memory space exists to satisfy a request, but it is not contiguous
Explanation:
External fragmentation happens when there is enough total free memory to satisfy a request, but the available spaces are scattered in small blocks.
Incorrect! Try again.
6What is the solution to external fragmentation?
A.Swapping
B.Segmentation
C.Compaction
D.Paging
Correct Answer: Compaction
Explanation:
Compaction shuffles memory contents to place all free memory together in one large block, though Paging also solves it by allowing non-contiguous allocation.
Incorrect! Try again.
7In paging, physical memory is broken into fixed-sized blocks called:
A.Frames
B.Segments
C.Pages
D.Sectors
Correct Answer: Frames
Explanation:
Physical memory is divided into frames, while logical memory is divided into blocks of the same size called pages.
Incorrect! Try again.
8If the page size is 4 KB (2^12), how many bits are required for the page offset?
A.32 bits
B.10 bits
C.20 bits
D.12 bits
Correct Answer: 12 bits
Explanation:
The offset requires bits to address every byte within the page. Since 4 KB = 2^12 bytes, 12 bits are needed for the offset.
Incorrect! Try again.
9What data structure is used to map logical pages to physical frames?
A.Process Control Block
B.Segment table
C.Page table
D.Frame table
Correct Answer: Page table
Explanation:
The page table contains the base address of each page in physical memory.
Incorrect! Try again.
10Paging suffers from which type of fragmentation?
A.Both internal and external
B.Internal fragmentation
C.Neither
D.External fragmentation
Correct Answer: Internal fragmentation
Explanation:
Paging eliminates external fragmentation, but the last frame allocated to a process may not be completely full, resulting in internal fragmentation.
Incorrect! Try again.
11The Translation Look-aside Buffer (TLB) is used to:
A.Speed up the translation of logical addresses to physical addresses
B.Perform segmentation
C.Store the entire page table
D.Handle page faults
Correct Answer: Speed up the translation of logical addresses to physical addresses
Explanation:
The TLB is a small, fast-lookup hardware cache that stores recent translations from virtual memory to physical memory.
Incorrect! Try again.
12In segmentation, the logical address consists of:
A.Base and Limit
B.Segment number and offset
C.Page number and offset
D.Frame number and offset
Correct Answer: Segment number and offset
Explanation:
A logical address in segmentation is a two-dimensional entity represented by a tuple: <segment-number, offset>.
Incorrect! Try again.
13Which register is used in segmentation to store the starting physical address of a segment?
A.Limit register
B.Index register
C.Base register
D.Instruction register
Correct Answer: Base register
Explanation:
The base register contains the starting physical address where the segment resides in memory.
Incorrect! Try again.
14What technique allows a process to be larger than the physical memory allocated to it?
A.Segmentation
B.Overlays
C.Contiguous allocation
D.Virtual Memory
Correct Answer: Virtual Memory
Explanation:
Virtual memory separates logical memory from physical memory, allowing the execution of processes that are not completely in memory.
Incorrect! Try again.
15Overlays are used when:
A.The process is larger than the amount of memory allocated to it
B.The process is smaller than physical memory
C.Paging is disabled
D.The OS supports virtual memory
Correct Answer: The process is larger than the amount of memory allocated to it
Explanation:
Overlays allow a process to be larger than the physical memory by keeping in memory only those instructions and data that are needed at any given time.
Incorrect! Try again.
16In demand paging, a page is brought into memory only when:
A.The process starts
B.It is needed/referenced during execution
C.It is modified
D.The time quantum expires
Correct Answer: It is needed/referenced during execution
Explanation:
Demand paging loads pages only when they are demanded by the executing process.
Incorrect! Try again.
17What happens when a process tries to access a page that is not currently in memory?
A.Deadlock
B.System crash
C.Segmentation fault
D.Page fault
Correct Answer: Page fault
Explanation:
Accessing a page marked invalid (not in memory) causes a page-fault trap to the operating system.
Incorrect! Try again.
18Which bit in the page table indicates whether a page is in memory or on the disk?
A.Dirty bit
B.Reference bit
C.Protection bit
D.Valid-invalid bit
Correct Answer: Valid-invalid bit
Explanation:
The valid-invalid bit is set to 'valid' if the page is in memory, and 'invalid' if the page is not in the logical address space or is currently on the disk.
Incorrect! Try again.
19What is the main advantage of multi-level paging?
A.Reducing the size of the page table in memory
B.Simpler hardware implementation
C.Faster memory access
D.Elimination of internal fragmentation
Correct Answer: Reducing the size of the page table in memory
Explanation:
Multi-level paging allows the page table itself to be paged, meaning the entire page table does not need to reside contiguously in main memory.
Incorrect! Try again.
20In the context of page replacement, Belady's Anomaly states that:
A.Optimal replacement is impossible to implement
B.For some algorithms, the page-fault rate may increase as the number of allocated frames increases
C.Thrashing occurs when CPU utilization is low
D.LRU is always better than FIFO
Correct Answer: For some algorithms, the page-fault rate may increase as the number of allocated frames increases
Explanation:
Belady's Anomaly is a phenomenon in which increasing the number of page frames results in an increase in the number of page faults for certain algorithms like FIFO.
Incorrect! Try again.
21Which page replacement algorithm has the lowest possible page-fault rate for a fixed number of frames?
A.LRU
B.Counting-based
C.FIFO
D.Optimal
Correct Answer: Optimal
Explanation:
The Optimal algorithm replaces the page that will not be used for the longest period of time, guaranteeing the lowest fault rate, but it requires future knowledge.
Incorrect! Try again.
22Which page replacement algorithm replaces the page that has not been used for the longest period of time?
A.MFU (Most Frequently Used)
B.LRU (Least Recently Used)
C.Optimal
D.FIFO
Correct Answer: LRU (Least Recently Used)
Explanation:
LRU looks backward in time and replaces the page that hasn't been accessed for the longest duration.
Incorrect! Try again.
23What is 'Thrashing' in an operating system?
A.When the hard disk is full
B.A process spending more time paging than executing
C.A high rate of I/O operations
D.A deadlock situation
Correct Answer: A process spending more time paging than executing
Explanation:
Thrashing occurs when a system spends a majority of its time swapping pages in and out of memory rather than executing instructions, causing performance to degrade.
Incorrect! Try again.
24The 'Working Set Model' is used to prevent:
A.Deadlocks
B.fragmentation
C.Thrashing
D.Page faults
Correct Answer: Thrashing
Explanation:
The Working Set Model estimates the number of frames a process needs (its locality) to prevent thrashing by ensuring the process has enough frames.
Incorrect! Try again.
25In Segmentation with Paging:
A.The segment is divided into pages
B.The page is divided into segments
C.There are no page tables
D.External fragmentation is high
Correct Answer: The segment is divided into pages
Explanation:
To combine the benefits of both, the logical address space is divided into segments, and each segment is further divided into pages to eliminate external fragmentation.
Incorrect! Try again.
26Which bit is used to indicate if a page has been modified while in memory?
A.Valid bit
B.Dirty (or Modify) bit
C.Reference bit
D.Present bit
Correct Answer: Dirty (or Modify) bit
Explanation:
The dirty bit is set when a page is written to. If set, the page must be written back to the disk upon replacement.
Incorrect! Try again.
27Pure demand paging implies:
A.Loading all pages before execution
B.Never swapping pages out
C.Using segmentation only
D.Starting a process with no pages in memory
Correct Answer: Starting a process with no pages in memory
Explanation:
In pure demand paging, the process starts with zero pages in memory, and every initial instruction causes a page fault until the working set is loaded.
Incorrect! Try again.
28The effective access time in a paged memory system depends heavily on:
A.The number of processes
B.The Page Fault Rate
C.The clock speed
D.The size of the hard disk
Correct Answer: The Page Fault Rate
Explanation:
Since disk access is extremely slow compared to memory access, even a small increase in the page fault rate drastically increases the effective access time.
Incorrect! Try again.
29Which allocation algorithm allocates the first hole that is big enough?
A.Best fit
B.First fit
C.Worst fit
D.Quick fit
Correct Answer: First fit
Explanation:
First fit scans the list of free blocks and allocates the first one that is large enough, which is generally faster than Best fit.
Incorrect! Try again.
30Logical address space is seen by:
A.The User / Program
B.The RAM
C.The Memory Management Unit
D.The Bus
Correct Answer: The User / Program
Explanation:
The user program deals with logical addresses, unaware of where the data physically resides in memory.
Incorrect! Try again.
31The limit register in segmentation is used to:
A.Store the starting address
B.Point to the segment table
C.Count the number of segments
D.Specify the length of the segment
Correct Answer: Specify the length of the segment
Explanation:
The limit register specifies the length of the segment. The offset is compared against this limit to prevent illegal access.
Incorrect! Try again.
32If a page fault occurs and there are no free frames, what must the OS do?
A.Ignore the instruction
B.Execute a page replacement algorithm
C.Increase the page size
D.Terminate the process
Correct Answer: Execute a page replacement algorithm
Explanation:
The OS must select a victim page to swap out to disk to free up a frame for the new page.
Incorrect! Try again.
33Which of the following is a disadvantage of the FIFO page replacement algorithm?
A.It is hard to implement
B.It requires hardware support
C.It uses a stack
D.It suffers from Belady's Anomaly
Correct Answer: It suffers from Belady's Anomaly
Explanation:
FIFO is simple but can perform poorly and paradoxically increase faults when more memory is added (Belady's Anomaly).
Incorrect! Try again.
34Copy-on-Write (COW) allows parent and child processes to initially share the same:
A.Segments
B.Pages
C.Stack
D.File descriptors
Correct Answer: Pages
Explanation:
COW allows processes to share pages in memory. A copy is only made when one of the processes modifies a shared page.
Incorrect! Try again.
35The Second Chance (or Clock) algorithm is an approximation of:
A.LRU
B.FIFO
C.MRU
D.Optimal
Correct Answer: LRU
Explanation:
Second Chance uses a reference bit to give pages a 'second chance' before replacement, approximating LRU behavior without the high hardware cost.
Incorrect! Try again.
36Locality of reference refers to:
A.Global variables only
B.The physical location of memory sticks
C.The tendency of a program to access the same set of memory locations frequently over a short period
D.The distance between the CPU and RAM
Correct Answer: The tendency of a program to access the same set of memory locations frequently over a short period
Explanation:
This principle explains why demand paging and caching work efficiently, as programs tend to stay within a specific region of memory for a time.
Incorrect! Try again.
37Which scheme allows the user to view memory as a collection of variable-sized logical units?
A.Segmentation
B.Hashing
C.Contiguous Allocation
D.Paging
Correct Answer: Segmentation
Explanation:
Segmentation supports the user view of memory (e.g., main, stack, symbol table) where segments vary in size.
Incorrect! Try again.
38In a system using paging, if the logical address is 32 bits and the page size is 4KB (2^12 bytes), what is the size of the page number?
A.12 bits
B.32 bits
C.10 bits
D.20 bits
Correct Answer: 20 bits
Explanation:
Logical Address (32) = Page Number (p) + Page Offset (d). Since d = 12, p = 32 - 12 = 20 bits.
Incorrect! Try again.
39Internal fragmentation is NOT possible in:
A.Segmentation
B.Demand Paging
C.Fixed Partitioning
D.Paging
Correct Answer: Segmentation
Explanation:
Segmentation allocates exactly the memory required for a segment (variable size), so there is no unused space inside the allocated block (no internal fragmentation).
Incorrect! Try again.
40What is the purpose of the 'fence register' in early memory management?
A.To prevent a user program from modifying the OS part of memory
B.To count pages
C.To clock the CPU
D.To store the stack pointer
Correct Answer: To prevent a user program from modifying the OS part of memory
Explanation:
A fence register separates the OS memory partition from the user memory partition to provide protection.
Incorrect! Try again.
41In inverted page tables:
A.It increases memory usage significantly
B.The table is stored on the disk
C.There is one entry for each real physical frame
D.There is one entry for each logical page
Correct Answer: There is one entry for each real physical frame
Explanation:
Inverted page tables map physical frames to logical pages (PID + page number) to save memory when the logical address space is very large.
Incorrect! Try again.
42Which allocation strategy creates the largest leftover hole?
A.Best fit
B.First fit
C.Next fit
D.Worst fit
Correct Answer: Worst fit
Explanation:
Worst fit allocates the largest available hole, leaving the largest possible remaining fragment, which might be useful for future requests.
Incorrect! Try again.
43Swapping requires the backing store to be:
A.Tape storage
B.Large and fast
C.Accessible only by the kernel
D.Volatile
Correct Answer: Large and fast
Explanation:
The backing store must be large enough to hold memory images and fast enough to allow efficient swapping (usually a disk).
Incorrect! Try again.
44A 'Global' page replacement policy allows:
A.Pages to be shared globally
B.The OS to replace the kernel
C.A process to select a replacement frame from the set of all frames in the system
D.A process to only replace its own frames
Correct Answer: A process to select a replacement frame from the set of all frames in the system
Explanation:
Global replacement allows a process to 'steal' a frame from another process, which can improve system throughput but affect the predictability of individual process performance.
Incorrect! Try again.
45If the TLB hit ratio is high, the effective memory access time is:
A.Halved
B.Close to the memory access time
C.Doubled
D.Tripled
Correct Answer: Close to the memory access time
Explanation:
With a high TLB hit ratio, the system rarely needs to access the page table in RAM (which would require an extra cycle), keeping access time low.
Incorrect! Try again.
46Pre-paging is a technique used to:
A.Avoid the large number of initial page faults
B.Encrypt pages
C.Clear memory before use
D. Compress pages
Correct Answer: Avoid the large number of initial page faults
Explanation:
Pre-paging attempts to bring in all the pages a process will need at once (or the working set) to prevent the performance hit of many small page faults at startup.
Incorrect! Try again.
47Which fragmentation is solved by 'Compaction'?
A.External
B.Virtual
C.Logical
D.Internal
Correct Answer: External
Explanation:
Compaction consolidates free memory blocks to solve external fragmentation.
Incorrect! Try again.
48The mapping of a logical address to a physical address is done at 'Load Time' if:
A.Memory location is not known until execution
B.The process can be moved during execution
C.We know where the process will reside in memory at compile time
D.Virtual memory is used
Correct Answer: We know where the process will reside in memory at compile time
Explanation:
If the memory location is known at compile time, absolute code can be generated. If it is relocatable, binding happens at load time.
Incorrect! Try again.
49In a Multi-level paging scheme with a two-level page table, the logical address is divided into:
The page number is split: p1 indexes the outer table, p2 indexes the inner table, and d is the offset.
Incorrect! Try again.
50Counting based page replacement algorithms include:
A.Optimal and Second Chance
B.Round Robin
C.LFU and MFU
D.FIFO and LRU
Correct Answer: LFU and MFU
Explanation:
Least Frequently Used (LFU) and Most Frequently Used (MFU) use a counter to track the number of references to each page.
Incorrect! Try again.
Did this save you a night before the exam?
LPU Notes is free, and it stays free. Ads cover part of the server bill.
The rest comes out of a student's own pocket: the domain, the storage,
and keeping the site up through the weeks everyone needs it at once.
The payment button didn't load. An ad blocker or a filtered network is the usual reason.
to try again.
Nothing here is ever locked, and nothing unlocks. Chip in only if it was worth it.
What it pays for →