Skip to main content

Operating System MCQs with Answers

Practice important Operating System MCQs with answers and explanations.

Multiple Choice Questions

Q951: In segmentation, which type of code is typically marked as read-only or execute-only for protection?
  • A: Instructions
  • B: Data
  • C: Stack
  • D: Code segments
View Answer
A

Q952: What is the main issue with segmentation that leads to external fragmentation?
  • A: Variable segment sizes
  • B: Fixed segment sizes
  • C: Static memory allocation
  • D: Memory compaction
View Answer
A

Q953: The protection of segments in a system is ensured by which component?
  • A: Segment-table entries
  • B: Memory bus
  • C: Program counter
  • D: Cache memory
View Answer
A

Q954: When does external fragmentation occur in segmentation?
  • A: When memory is not contiguous
  • B: When memory is compacted
  • C: When memory is allocated dynamically
  • D: When segments are too small
View Answer
A

Q955: Which algorithm is commonly used to solve the memory allocation problem in segmentation?
  • A: Best fit or worst fit
  • B: First fit
  • C: Next fit
  • D: Equal fit
View Answer
A

Q956: In the context of segmentation, what happens when a job is latched in memory during I/O operations?
  • A: It should wait until I/O is completed
  • B: It will run even if I/O is in progress
  • C: It will crash the system
  • D: I/O operations should be done in OS buffers
View Answer
D

Q957: What happens when segmentation is combined with paging?
  • A: Paged segmentation eliminates external fragmentation
  • B: Segmentation results in more fragmentation
  • C: Paging will increase memory usage
  • D: Segmentation will be more complex
View Answer
A

Q958: A segment-table entry's protection bits include which of the following?
  • A: Read, write, execute bits
  • B: Data, code, instruction bits
  • C: Validity, length, offset bits
  • D: Memory, data, stack bits
View Answer
A

Q959: What does the segment-table length register (STLR) indicate?
  • A: The number of segments used by a program
  • B: The total memory allocated for the program
  • C: The offset for each segment
  • D: The location of the segment in memory
View Answer
A

Q960: In segmentation, what does the segment limit specify?
  • A: The length of the segment
  • B: The memory address of the segment
  • C: The offset within the segment
  • D: The segment's base address
View Answer
A

Test Your Knowledge

Take a timed quiz on Operating System

🚀 Start Quiz Now