1. Which of the following is not a function of an operating system?
A. Memory management
B. File management
C. Hardware manufacturing
D. Process scheduling
Answer: C) Hardware manufacturing
Rationale: An operating system manages resources like memory, files,
and processes but does not manufacture hardware.
2. What is the main purpose of the operating system kernel?
A. To provide an interface between hardware and user
B. To control the input and output devices
C. To manage memory
D. To provide services for software applications
Answer: A) To provide an interface between hardware and user
,Rationale: The kernel directly interacts with the hardware and provides
a layer between user applications and the hardware.
3. Which of the following is a process scheduling algorithm?
A. Round Robin
B. First-Come-First-Served (FCFS)
C. Shortest Job Next (SJN)
D. All of the above
Answer: D) All of the above
Rationale: Round Robin, FCFS, and SJN are all types of process
scheduling algorithms.
4. Which of the following memory allocation strategies suffers from
fragmentation?
A. Paging
B. Segmentation
C. Both Paging and Segmentation
,D. None of the above
Answer: B) Segmentation
Rationale: Segmentation can suffer from both internal and external
fragmentation, while paging avoids fragmentation issues.
5. In a multithreaded process, which of the following is shared between
threads?
A. Registers
B. Stack
C. Heap
D. Program Counter
Answer: C) Heap
Rationale: Threads within a process share the heap, which is used for
dynamic memory allocation.
6. Which of the following is an example of a preemptive scheduling
algorithm?
, A. FCFS
B. SJN
C. Round Robin
D. Priority Scheduling (Non-preemptive)
Answer: C) Round Robin
Rationale: Round Robin is preemptive because it forces context
switches periodically, allowing fair time-sharing among processes.
7. What is the main goal of memory management in an operating
system?
A. To increase the speed of processes
B. To keep track of free and used memory
C. To protect the memory of different processes from one another
D. All of the above
Answer: D) All of the above
Rationale: Memory management aims to efficiently allocate memory,
keep track of its usage, and ensure process isolation.
A. Memory management
B. File management
C. Hardware manufacturing
D. Process scheduling
Answer: C) Hardware manufacturing
Rationale: An operating system manages resources like memory, files,
and processes but does not manufacture hardware.
2. What is the main purpose of the operating system kernel?
A. To provide an interface between hardware and user
B. To control the input and output devices
C. To manage memory
D. To provide services for software applications
Answer: A) To provide an interface between hardware and user
,Rationale: The kernel directly interacts with the hardware and provides
a layer between user applications and the hardware.
3. Which of the following is a process scheduling algorithm?
A. Round Robin
B. First-Come-First-Served (FCFS)
C. Shortest Job Next (SJN)
D. All of the above
Answer: D) All of the above
Rationale: Round Robin, FCFS, and SJN are all types of process
scheduling algorithms.
4. Which of the following memory allocation strategies suffers from
fragmentation?
A. Paging
B. Segmentation
C. Both Paging and Segmentation
,D. None of the above
Answer: B) Segmentation
Rationale: Segmentation can suffer from both internal and external
fragmentation, while paging avoids fragmentation issues.
5. In a multithreaded process, which of the following is shared between
threads?
A. Registers
B. Stack
C. Heap
D. Program Counter
Answer: C) Heap
Rationale: Threads within a process share the heap, which is used for
dynamic memory allocation.
6. Which of the following is an example of a preemptive scheduling
algorithm?
, A. FCFS
B. SJN
C. Round Robin
D. Priority Scheduling (Non-preemptive)
Answer: C) Round Robin
Rationale: Round Robin is preemptive because it forces context
switches periodically, allowing fair time-sharing among processes.
7. What is the main goal of memory management in an operating
system?
A. To increase the speed of processes
B. To keep track of free and used memory
C. To protect the memory of different processes from one another
D. All of the above
Answer: D) All of the above
Rationale: Memory management aims to efficiently allocate memory,
keep track of its usage, and ensure process isolation.