Skip to main content

Operating System MCQs with Answers

Practice important Operating System MCQs with answers and explanations.

Chapter: 30
Q801:
Which memory management method involves delaying binding until execution time?
A. Compile time binding
B. Load time binding
C. Execution time binding
D. Memory-mapped file access
Correct Answer: C
Chapter: 30
Q802:
What is the primary characteristic of the memory hierarchy?
A. Memory is stored in a single location
B. Memory types differ in speed, cost, and volatility
C. Memory is always non-volatile
D. All memory is accessed the same way
Correct Answer: B
Chapter: 30
Q803:
A program's logical address refers to the _______.
A. Physical address in main memory
B. Address in the program's address space
C. Final memory location in physical storage
D. Temporary address in cache
Correct Answer: B
Chapter: 30
Q804:
In a typical instruction cycle, the first step is to _______.
A. Execute the instruction
B. Decode the instruction
C. Fetch the instruction
D. Store the result
Correct Answer: C
Chapter: 30
Q805:
The CPU fetches instructions based on the value of the _______.
A. Program counter
B. Memory address register
C. Segment register
D. Stack pointer
Correct Answer: A
Chapter: 30
Q806:
Which of the following is NOT a memory type in the memory hierarchy?
A. Central processing unit (CPU) registers
B. Cache memory
C. Secondary storage
D. Internet storage
Correct Answer: D
Chapter: 30
Q807:
The translation from logical to physical addresses is performed by the _______.
A. Processor control unit
B. Memory management unit (MMU)
C. Operating system
D. Program counter
Correct Answer: B
Chapter: 30
Q808:
At what time are logical addresses generated in a program?
A. Compile time
B. Load time
C. Execution time
D. All of the above
Correct Answer: D
Chapter: 30
Q809:
What does dynamic loading allow in memory management?
A. Routines are loaded into memory when they are called
B. All routines are loaded before execution
C. Memory is statically allocated at compile time
D. Memory is optimized by the compiler
Correct Answer: A
Chapter: 30
Q810:
Which of the following is an advantage of dynamic linking?
A. Programs require more memory
B. Programs load faster initially
C. Programs always use the latest version of libraries
D. Programs never need to be recompiled
Correct Answer: C
Chapter: 30
Q811:
Dynamic linking is mainly used to handle _______.
A. System libraries
B. Executable code
C. Non-relocatable code
D. Physical memory addresses
Correct Answer: A
Chapter: 30
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
Correct Answer: B
Chapter: 30
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
Correct Answer: A
Chapter: 30
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
Correct Answer: C
Chapter: 30
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
Correct Answer: A
Chapter: 30
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
Correct Answer: D
Chapter: 30
Q817:
A logical address is translated into a physical address during _______.
A. Compilation
B. Loading
C. Execution
D. All of the above
Correct Answer: C
Chapter: 30
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
Correct Answer: B
Chapter: 30
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
Correct Answer: A
Chapter: 30
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
Correct Answer: B

Test Your Knowledge

Take a timed quiz on Operating System

🚀 Start Quiz Now