Operating System MCQs with Answers
Practice important Operating System MCQs with answers and explanations.
Multiple Choice Questions
Q911: The translation look-aside buffer (TLB) improves paging performance by ______.
- A: reducing memory access time
- B: increasing the number of entries
- C: reducing page faults
- D: reducing frame size
View Answer
A
Q912: The number of frames in memory can be calculated by the formula ______.
- A: Physical memory / page size
- B: Number of bits in address / page size
- C: Number of pages * page size
- D: Physical address size / page size
View Answer
A
Q913: In a paging system, the page size is determined by the ______.
- A: operating system
- B: CPU hardware
- C: user configuration
- D: application
View Answer
B
Q914: The number of bits needed for the page number in a logical address space with 16 pages is ______.
- A: 4 bits
- B: 3 bits
- C: 5 bits
- D: 6 bits
View Answer
A
Q915: The number of frames in physical memory can be calculated by ______.
- A: dividing the physical memory size by the frame size
- B: multiplying the number of pages by frame size
- C: dividing the logical address size by the frame size
- D: calculating the TLB hit ratio
View Answer
A
Q916: What is the primary protection scheme in paging used for?
- A: Guards against unauthorized memory access
- B: Optimizes memory usage
- C: Increases system performance
- D: Decreases memory space
View Answer
A
Q917: What does the valid/invalid (v) bit in a page table indicate?
- A: Whether the page belongs to the process address space
- B: Whether the page is read-only
- C: Whether the page is writable
- D: Whether the page is in physical memory
View Answer
A
Q918: If a process tries to access a page marked as invalid, what happens?
- A: A hardware trap is triggered
- B: The page is automatically loaded into memory
- C: The operating system gives a warning
- D: The process continues without issues
View Answer
A
Q919: Which of the following can be used to define protection levels for a page in memory?
- A: Read, write, and execute bits
- B: Valid-invalid bit
- C: Page table entry bit
- D: Physical address
View Answer
A
Q920: What is the role of the page table in memory access?
- A: Maps virtual addresses to physical addresses
- B: Stores program code
- C: Stores data for quick access
- D: Ensures data is read-only
View Answer
A