Operating System MCQs with Answers
Practice important Operating System MCQs with answers and explanations.
Multiple Choice Questions
Q821: Fill in the blank: The term "_______" refers to when a program's address is resolved at load time, not compile time.
- A: Static linking
- B: Dynamic loading
- C: Dynamic linking
- D: Load-time binding
View Answer
D
Q822: The logical address is generated by the _______.
- A: CPU
- B: Memory management unit
- C: Operating system
- D: Program counter
View Answer
A
Q823: Fill in the blank: When a program is loaded into memory, it is assigned a _______ address by the operating system.
- A: Physical
- B: Logical
- C: Relative
- D: Binary
View Answer
B
Q824: What is the purpose of overlays in memory management?
- A: Increase memory capacity
- B: Load only necessary data and instructions
- C: Allocate fixed-size memory blocks
- D: Reduce memory fragmentation
View Answer
B
Q825: In the two-pass compiler example, the main memory size is __________.
- A: 100k
- B: 150k
- C: 200k
- D: 250k
View Answer
B
Q826: What happens when Pass 1 finishes in the two-pass compiler?
- A: Pass 1 code is removed
- B: Pass 2 code is loaded on top of Pass 1 code
- C: Pass 2 code is discarded
- D: Pass 1 code is executed again
View Answer
B
Q827: Which of the following is a problem associated with overlays?
- A: The programmer is responsible for writing the overlay driver
- B: Overlays are always efficient
- C: Overlays require no additional memory
- D: Overlays never cause fragmentation
View Answer
A
Q828: What is the purpose of swapping in operating systems?
- A: Increase CPU speed
- B: Temporarily move processes to and from memory
- C: Prevent memory leaks
- D: Execute multiple programs simultaneously
View Answer
B
Q829: Which of the following is a condition that can cause swapping to be problematic?
- A: Quantum expiration
- B: High memory capacity
- C: Low disk space
- D: High process priority
View Answer
A
Q830: In a round robin CPU scheduling algorithm, when does swapping occur?
- A: At the end of the process execution
- B: When the process is waiting for I/O
- C: When the process quantum expires
- D: After a process terminates
View Answer
C