Skip to main content

Operating System MCQs with Answers

Practice important Operating System MCQs with answers and explanations.

Multiple Choice Questions

Q961: What is one benefit of sharing code in paging and segmentation?
  • A: It saves physical memory space
  • B: It reduces the need for memory allocation
  • C: It increases the execution speed
  • D: It prevents memory errors
View Answer
A

Q962: Which type of memory management system might cause compaction to eliminate external fragmentation?
  • A: Segmentation
  • B: Paging
  • C: Virtual memory
  • D: Fixed-size partitioning
View Answer
A

Q963: In a segmented memory system, how is protection handled for an array in a segment?
  • A: The hardware checks if array indexes are legal
  • B: The array is automatically checked for errors
  • C: The segment is made read-only
  • D: The segment is divided into fixed sizes
View Answer
A

Q964: Which memory management technique involves dividing memory into equal-sized blocks called pages?
  • A: Paging
  • B: Segmentation
  • C: Virtual memory
  • D: Dynamic partitioning
View Answer
A

Q965: What happens when a segment is marked as "read-only"?
  • A: The segment cannot be modified
  • B: The segment cannot be executed
  • C: The segment can be shared
  • D: The segment is discarded
View Answer
A

Q966: What is the main difference between paging and segmentation?
  • A: Paging divides memory into equal-sized blocks, while segmentation uses variable-sized blocks
  • B: Paging requires physical memory, while segmentation does not
  • C: Segmentation is a dynamic system, while paging is static
  • D: Paging uses larger memory blocks than segmentation
View Answer
A

Q967: What does the term "reentrant code" refer to?
  • A: Code that can be shared between multiple processes
  • B: Code that cannot be executed
  • C: Code that modifies itself during execution
  • D: Code that runs only once
View Answer
A

Q968: What happens when the segment base and limit in the hardware are used together in segmentation?
  • A: The logical address is translated to a physical address
  • B: The segment size is modified
  • C: The memory is allocated dynamically
  • D: The segment is split into smaller parts
View Answer
A

Q969: In paged segmentation, what is used to index the page table?
  • A: Segment number
  • B: Offset
  • C: Page size
  • D: Page table
View Answer
A

Q970: What is the primary advantage of using paged segmentation in memory management?
  • A: Fixed segment sizes
  • B: Sharing of code
  • C: Memory fragmentation
  • D: External fragmentation
View Answer
B

Test Your Knowledge

Take a timed quiz on Operating System

🚀 Start Quiz Now