Operating System MCQs with Answers
Practice important Operating System MCQs with answers and explanations.
Multiple Choice Questions
Q811: Dynamic linking is mainly used to handle _______.
- A: System libraries
- B: Executable code
- C: Non-relocatable code
- D: Physical memory addresses
View Answer
A
Q812: In the context of memory management, the term "relocation" refers to _______.
- A: Assigning the absolute addresses at compile time
- B: Moving processes in memory during execution
- C: Binding memory addresses to code at load time
- D: Swapping memory between disks and memory
View Answer
B
Q813: Which of the following statements about dynamic linking is true?
- A: It reduces the need for multiple copies of a library in memory
- B: Program execution is faster than static linking
- C: It eliminates the need for a loader
- D: Memory space is always more costly than static linking
View Answer
A
Q814: What is the result of compile-time binding?
- A: Programs can be moved around in memory at run time
- B: Address binding is delayed until execution time
- C: Address binding is performed at compile time
- D: Memory management becomes more complex
View Answer
C
Q815: In which of the following situations is dynamic loading used?
- A: When a routine is needed, but only if it is called
- B: When a program must always load all routines at the start
- C: When address binding occurs at compile time
- D: When static linking is performed
View Answer
A
Q816: Which memory management technique allows for different memory areas (code, data, stack) to be translated separately?
- A: Static linking
- B: Dynamic linking
- C: Paging
- D: Segmentation
View Answer
D
Q817: A logical address is translated into a physical address during _______.
- A: Compilation
- B: Loading
- C: Execution
- D: All of the above
View Answer
C
Q818: Fill in the blank: The _______ registers in Intel CPUs are used to hold the segment values for memory addresses.
- A: Program counter
- B: Segment registers
- C: Instruction pointer
- D: Memory address register
View Answer
B
Q819: Memory management techniques such as dynamic loading and dynamic linking are used to _______.
- A: Reduce the memory used by a program
- B: Increase the size of a program
- C: Limit the memory space to a fixed amount
- D: Store data for fast retrieval
View Answer
A
Q820: The process of relocating memory addresses during execution is handled by _______.
- A: The compiler
- B: The memory management unit (MMU)
- C: The operating system
- D: The instruction pointer
View Answer
B