Unit 5 - Practice Quiz

CSE316 50 Questions
0 Correct 0 Wrong 50 Left
0/50

1 The address generated by the CPU is known as:

A. Physical address
B. Memory Management Unit address
C. Post-relocation register address
D. Logical address

2 The run-time mapping from virtual to physical addresses is done by a hardware device called the:

A. Loader
B. Device Driver
C. Memory Management Unit (MMU)
D. CPU Scheduler

3 In the context of memory management, what is the backing store?

A. The fast disk large enough to accommodate copies of all memory images for all users
B. The Registry
C. The L1 Cache
D. The main memory (RAM)

4 Which memory allocation policy allocates the smallest hole that is big enough to hold a process?

A. Worst fit
B. Next fit
C. Best fit
D. First fit

5 External fragmentation occurs when:

A. Allocated memory may be slightly larger than requested memory
B. Pages are not modified in memory
C. A process is loaded into memory but never executed
D. Total memory space exists to satisfy a request, but it is not contiguous

6 What is the solution to external fragmentation?

A. Swapping
B. Segmentation
C. Compaction
D. Paging

7 In paging, physical memory is broken into fixed-sized blocks called:

A. Frames
B. Segments
C. Sectors
D. Pages

8 If the page size is 4 KB (2^12), how many bits are required for the page offset?

A. 32 bits
B. 10 bits
C. 12 bits
D. 20 bits

9 What data structure is used to map logical pages to physical frames?

A. Segment table
B. Page table
C. Frame table
D. Process Control Block

10 Paging suffers from which type of fragmentation?

A. Neither
B. External fragmentation
C. Both internal and external
D. Internal fragmentation

11 The Translation Look-aside Buffer (TLB) is used to:

A. Store the entire page table
B. Speed up the translation of logical addresses to physical addresses
C. Handle page faults
D. Perform segmentation

12 In segmentation, the logical address consists of:

A. Frame number and offset
B. Base and Limit
C. Segment number and offset
D. Page number and offset

13 Which register is used in segmentation to store the starting physical address of a segment?

A. Instruction register
B. Index register
C. Base register
D. Limit register

14 What technique allows a process to be larger than the physical memory allocated to it?

A. Overlays
B. Contiguous allocation
C. Segmentation
D. Virtual Memory

15 Overlays are used when:

A. The process is larger than the amount of memory allocated to it
B. Paging is disabled
C. The process is smaller than physical memory
D. The OS supports virtual memory

16 In demand paging, a page is brought into memory only when:

A. The time quantum expires
B. It is needed/referenced during execution
C. It is modified
D. The process starts

17 What happens when a process tries to access a page that is not currently in memory?

A. Segmentation fault
B. Page fault
C. System crash
D. Deadlock

18 Which bit in the page table indicates whether a page is in memory or on the disk?

A. Valid-invalid bit
B. Reference bit
C. Dirty bit
D. Protection bit

19 What is the main advantage of multi-level paging?

A. Simpler hardware implementation
B. Reducing the size of the page table in memory
C. Elimination of internal fragmentation
D. Faster memory access

20 In the context of page replacement, Belady's Anomaly states that:

A. For some algorithms, the page-fault rate may increase as the number of allocated frames increases
B. Thrashing occurs when CPU utilization is low
C. Optimal replacement is impossible to implement
D. LRU is always better than FIFO

21 Which page replacement algorithm has the lowest possible page-fault rate for a fixed number of frames?

A. Optimal
B. Counting-based
C. LRU
D. FIFO

22 Which page replacement algorithm replaces the page that has not been used for the longest period of time?

A. Optimal
B. MFU (Most Frequently Used)
C. LRU (Least Recently Used)
D. FIFO

23 What is 'Thrashing' in an operating system?

A. A high rate of I/O operations
B. A deadlock situation
C. A process spending more time paging than executing
D. When the hard disk is full

24 The 'Working Set Model' is used to prevent:

A. Thrashing
B. Page faults
C. fragmentation
D. Deadlocks

25 In Segmentation with Paging:

A. There are no page tables
B. External fragmentation is high
C. The segment is divided into pages
D. The page is divided into segments

26 Which bit is used to indicate if a page has been modified while in memory?

A. Reference bit
B. Dirty (or Modify) bit
C. Valid bit
D. Present bit

27 Pure demand paging implies:

A. Loading all pages before execution
B. Starting a process with no pages in memory
C. Never swapping pages out
D. Using segmentation only

28 The effective access time in a paged memory system depends heavily on:

A. The Page Fault Rate
B. The size of the hard disk
C. The clock speed
D. The number of processes

29 Which allocation algorithm allocates the first hole that is big enough?

A. Worst fit
B. First fit
C. Best fit
D. Quick fit

30 Logical address space is seen by:

A. The Bus
B. The RAM
C. The User / Program
D. The Memory Management Unit

31 The limit register in segmentation is used to:

A. Specify the length of the segment
B. Count the number of segments
C. Store the starting address
D. Point to the segment table

32 If a page fault occurs and there are no free frames, what must the OS do?

A. Execute a page replacement algorithm
B. Increase the page size
C. Terminate the process
D. Ignore the instruction

33 Which 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 suffers from Belady's Anomaly
D. It uses a stack

34 Copy-on-Write (COW) allows parent and child processes to initially share the same:

A. Segments
B. Stack
C. File descriptors
D. Pages

35 The Second Chance (or Clock) algorithm is an approximation of:

A. Optimal
B. FIFO
C. MRU
D. LRU

36 Locality of reference refers to:

A. The physical location of memory sticks
B. The tendency of a program to access the same set of memory locations frequently over a short period
C. Global variables only
D. The distance between the CPU and RAM

37 Which scheme allows the user to view memory as a collection of variable-sized logical units?

A. Paging
B. Segmentation
C. Contiguous Allocation
D. Hashing

38 In 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. 20 bits
B. 12 bits
C. 32 bits
D. 10 bits

39 Internal fragmentation is NOT possible in:

A. Paging
B. Demand Paging
C. Fixed Partitioning
D. Segmentation

40 What is the purpose of the 'fence register' in early memory management?

A. To clock the CPU
B. To store the stack pointer
C. To prevent a user program from modifying the OS part of memory
D. To count pages

41 In inverted page tables:

A. There is one entry for each real physical frame
B. There is one entry for each logical page
C. It increases memory usage significantly
D. The table is stored on the disk

42 Which allocation strategy creates the largest leftover hole?

A. Next fit
B. Best fit
C. First fit
D. Worst fit

43 Swapping requires the backing store to be:

A. Tape storage
B. Volatile
C. Accessible only by the kernel
D. Large and fast

44 A 'Global' page replacement policy allows:

A. The OS to replace the kernel
B. A process to only replace its own frames
C. Pages to be shared globally
D. A process to select a replacement frame from the set of all frames in the system

45 If the TLB hit ratio is high, the effective memory access time is:

A. Doubled
B. Halved
C. Tripled
D. Close to the memory access time

46 Pre-paging is a technique used to:

A. Compress pages
B. Clear memory before use
C. Avoid the large number of initial page faults
D. Encrypt pages

47 Which fragmentation is solved by 'Compaction'?

A. External
B. Internal
C. Logical
D. Virtual

48 The mapping of a logical address to a physical address is done at 'Load Time' if:

A. The process can be moved during execution
B. We know where the process will reside in memory at compile time
C. Virtual memory is used
D. Memory location is not known until execution

49 In a Multi-level paging scheme with a two-level page table, the logical address is divided into:

A. Row, Column
B. Outer page table index, Inner page table index, offset
C. Page number, offset
D. Segment, offset

50 Counting based page replacement algorithms include:

A. Round Robin
B. Optimal and Second Chance
C. FIFO and LRU
D. LFU and MFU