Skip to main content

Operating System MCQs with Answers

Practice important Operating System MCQs with answers and explanations.

Multiple Choice Questions

Q941: In a hierarchical paging system, what is the function of the inner page table?
  • A: It translates the inner page offset to a physical frame
  • B: It stores the mapping of the entire address space
  • C: It provides read-only access to pages
  • D: It manages the page directory
View Answer
A

Q942: In a page table, each entry typically contains what information?
  • A: The frame number associated with a page
  • B: The logical address of the page
  • C: The data stored in the page
  • D: The process ID of the program
View Answer
A

Q943: In paging, which type of code can be shared between multiple processes?
  • A: Reentrant code
  • B: Stack code
  • C: Dynamic code
  • D: Data code
View Answer
A

Q944: Segmentation is a memory management scheme that supports which programmer's view of memory?
  • A: Functions
  • B: Memory pages
  • C: Segments
  • D: Processes
View Answer
C

Q945: A logical address in segmentation consists of which two components?
  • A: Segment number and offset
  • B: Address base and length
  • C: Physical address and page number
  • D: Data and code
View Answer
A

Q946: What does the segment base contain in segmentation?
  • A: Physical address
  • B: Segment name
  • C: Segment offset
  • D: Segment length
View Answer
A

Q947: In segmentation, which register points to the segment table's location in memory?
  • A: Segment-table base register (STBR)
  • B: Segment-table length register (STLR)
  • C: Program counter (PC)
  • D: Instruction register (IR)
View Answer
A

Q948: What happens when a segment number is greater than the value in STLR in segmentation?
  • A: The segment is invalid
  • B: The segment is relocated
  • C: The program crashes
  • D: The segment is executed
View Answer
A

Q949: What is one advantage of segmentation in memory management?
  • A: Sharing of segments
  • B: Fixed segment size
  • C: Easy allocation
  • D: Contiguous memory allocation
View Answer
A

Q950: In paging, how does sharing of memory benefit multiple processes?
  • A: Shared code can be accessed by multiple processes without duplication
  • B: Each process gets its own copy of the code
  • C: Code is loaded into a separate physical memory for each process
  • D: Data is shared among processes
View Answer
A

Test Your Knowledge

Take a timed quiz on Operating System

🚀 Start Quiz Now