Operating System MCQs with Answers
Practice important Operating System MCQs with answers and explanations.
Chapter: 30
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
Correct Answer:
D
Chapter: 30
Q822:
The logical address is generated by the _______.
A. CPU
B. Memory management unit
C. Operating system
D. Program counter
Correct Answer:
A
Chapter: 30
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
Correct Answer:
B
Chapter: 31
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
Correct Answer:
B
Chapter: 31
Q825:
In the two-pass compiler example, the main memory size is __________.
A. 100k
B. 150k
C. 200k
D. 250k
Correct Answer:
B
Chapter: 31
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
Correct Answer:
B
Chapter: 31
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
Correct Answer:
A
Chapter: 31
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
Correct Answer:
B
Chapter: 31
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
Correct Answer:
A
Chapter: 31
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
Correct Answer:
C
Chapter: 31
Q831:
What is a backing store used for in swapping?
A. Store the operating system
B. Store all memory images of users
C. Provide additional RAM
D. Store only I/O data
Correct Answer:
B
Chapter: 31
Q832:
In memory swapping, the major part of swap time is __________.
A. Transfer time
B. CPU execution time
C. Memory allocation time
D. I/O wait time
Correct Answer:
A
Chapter: 31
Q833:
What is a constraint of swapping in a multiprogramming environment?
A. Quantum for Round Robin scheduling
B. Pending I/O for swapped-out processes
C. Amount of memory allocated for processes
D. Size of the backing store
Correct Answer:
B
Chapter: 31
Q834:
What does MFT stand for in memory management?
A. Memory Fixed Tasks
B. Multiprogramming with Fixed Tasks
C. Managed File Transfer
D. Multiple File Transactions
Correct Answer:
B
Chapter: 31
Q835:
In MFT, what determines the degree of multiprogramming?
A. Number of memory partitions
B. Number of processes
C. CPU speed
D. Operating system design
Correct Answer:
A
Chapter: 31
Q836:
In contiguous memory allocation, which registers are used to point to the memory of a process?
A. Base and limit registers
B. Control and data registers
C. Instruction and pointer registers
D. Memory address registers
Correct Answer:
A
Chapter: 31
Q837:
In contiguous memory allocation, where is the operating system typically placed?
A. High memory
B. Low memory
C. In a separate partition
D. At the end of the memory space
Correct Answer:
B
Chapter: 31
Q838:
What is a major disadvantage of MFT?
A. High internal fragmentation
B. No memory protection
C. No address translation
D. No memory sharing
Correct Answer:
A
Chapter: 31
Q839:
In MFT, what is used to establish addressability for a process?
A. Address translation
B. Segment registers
C. Base register
D. CPU registers
Correct Answer:
C
Chapter: 31
Q840:
Which of the following is true about the base register in MFT?
A. It holds the location where a process is loaded
B. It is part of the kernel space
C. It is used for memory paging
D. It stores the process’s size
Correct Answer:
A