0% found this document useful (0 votes)
20 views20 pages

Mcq Os Assign

Uploaded by

www.infas7771
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views20 pages

Mcq Os Assign

Uploaded by

www.infas7771
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 20

MCQ.

Quiz assignment
Operating Systems
HNDIT 3052
02nd Yr 01st Semester
(01) Which of the following is the primary function of an operating system?
A) Compiling code
B) Managing hardware resources
C) Editing documents
D) Browsing the internet

(02) Which of these operating systems is open-source?


A) Windows
B) macOS
C) Linux
D) iOS
(03)What does 'multiprogramming' refer to in the context of operating
systems?
A) Executing one process at a time
B) Running multiple processes at the same time
C) Using multiple operating systems on a single machine
D) Using more than one CPU in the system

(04)Which of the following is a core component of an operating system?


A) Web Browser
B) Shell
C) Kernel
D) Text Editor
(05)In which mode does the CPU execute the kernel's instructions?
A) User mode
B) Monitor mode
C) Real mode
D) Privileged mode

(06)Which of the following file systems is used by Windows operating


systems?
A) ext4
B) NTFS
C) HFS+
D) FAT16
(07)The UNIX operating system was initially developed in the late 1960s at
which company?
A) IBM
B) Microsoft
C) AT&T Bell Labs
D) Apple
(08)Which type of operating system is designed to perform a specific task
and is often found in embedded systems?
A) Real-time OS
B) Distributed OS
C) Time-sharing OS
D) Batch OS
(09)Which of the following operating systems is a type of time-sharing
operating system?
A) Windows XP
B) UNIX
C) MS-DOS
D) Android

(10)Which type of operating system allows multiple computers to work


together as if they were one?
A) Real-time OS
B) Distributed OS
C) Single-user OS
D) Batch OS
(11)In the context of an operating system, what is a 'process'?
A) A single thread of execution
B) A program that is currently being executed
C) A memory management technique
D) A security mechanism

(12)What is the primary purpose of the 'scheduler' in an operating system?


A) To allocate memory to processes
B) To manage hardware resources
C) To decide which process will run at any given time
D) To provide security for system resources
(13)What is a 'system call' in an operating system?
A) A call to the system administrator for help
B) A way for programs to request services from the kernel
C) A high-priority task for the CPU
D) An interrupt signal from hardware

(14)Which operating system concept allows multiple processes to share


the CPU and run simultaneously by switching rapidly between them?
A) Time-sharing
B) Multithreading
C) Virtual memory
D) Deadlock prevention
(15)What is the purpose of an 'interrupt' in an operating system?
A) To stop the operating system temporarily
B) To inform the CPU that an event needs immediate attention
C) To slow down a process
D) To allocate memory to a process

(16)Which of the following is not a component of a process?


A) Program counter
B) CPU registers
C) I/O devices
D) Memory
(17)In the process model, which of the following is considered the 'state'
of a process?
A) New
B) Ready
C) Running
D) All of the above

(18)What is a 'context switch' in process management?


A) The switching between two processes
B) The transfer of control between user and kernel mode
C) Saving the state of one process and loading the state of another
D) Switching between multiple threads of the same process
(19)What is the 'Process Control Block' (PCB) in an operating system?
A) A hardware component that stores process information
B) A data structure that holds information about a process
C) A software routine for scheduling processes
D) A section of the kernel responsible for memory management

(20)Which of the following is not stored in the Process Control Block


(PCB)?
A) Process state
B) Process ID
C) I/O status information
D) CPU clock speed
(21)In the implementation of processes, what is the purpose of the
'scheduler'?
A) To handle process communication
B) To assign processes to the CPU for execution
C) To manage memory allocation for processes
D) To terminate processes

(22)What is a thread in the context of an operating system?


A) A single sequence of execution within a process
B) A program stored on the hard disk
C) A separate process running in parallel
D) A part of the memory allocated to a process
(23)Which of the following is a key advantage of using threads over
processes?
A) Threads are easier to manage than processes
B) Threads consume fewer resources and have faster context switches
than processes
C) Threads have independent memory spaces
D) Threads are slower to execute than processes

(24)In a multithreaded environment, what is shared between all threads of


a process?
A) Registers
B) Program counter
C) Stack
D) Memory
(25)Which of the following best describes the relationship between
processes and threads?
A) A thread contains multiple processes
B) A process can contain multiple threads
C) Threads and processes are independent of each other
D) Threads execute in kernel mode, while processes run in user mode

(26) What is the primary goal of the Banker's Algorithm?


a) To detect deadlocks as they occur
b) To avoid deadlocks by careful resource allocation
c) To prevent all processes from requesting resources
d) To break the mutual exclusion condition
(27)Which of the following is not a scheduling criterion?
A) CPU utilization
B) Throughput
C) Turnaround time
D) Data compression

(28)What is 'throughput' in the context of CPU scheduling?


A) The number of processes that complete their execution per unit of
time
B) The amount of time it takes for a process to get executed
C) The total time taken by a process from submission to completion
D) The time the CPU is in use
(29)In the First-Come, First-Served (FCFS) scheduling algorithm, how are
processes executed?
A) Based on priority
B) In the order they arrive in the ready queue
C) Based on the shortest job first
D) In a circular order with a fixed time quantum

(30)What is the primary advantage of the Round Robin (RR) scheduling


algorithm?
A) It minimizes the waiting time for processes
B) It prevents any single process from monopolizing the CPU
C) It reduces the total turnaround time
D) It executes the longest jobs first
(31) Which of the following is NOT a condition necessary for a deadlock to
occur?
a) Mutual Exclusion
b) Circular Wait
c) Preemption
d) Bounded Waiting

(32) In the context of deadlocks, what does "hold and wait" mean?
a) Processes must hold at least one resource and are waiting to acquire
additional resources held by other processes.
b) Processes can preempt resources from other processes if needed.
c) Processes must wait without holding any resources.
d) Processes release all resources if they cannot acquire more.
(33)What happens in a non-preemptive scheduling algorithm if a new process
arrives while another process is already running?
A) The running process is interrupted, and the new process is given the CPU
B) The new process is put into the waiting queue until the running process
finishes
C) Both processes are executed simultaneously
D) The scheduler executes the new process first

(34)What is the main objective of the Multilevel Queue Scheduling algorithm?


A) To handle processes with similar priorities
B) To divide processes into queues based on different characteristics
C) To maximize CPU utilization by grouping I/O-bound and CPU-bound processes
together
D) To avoid starvation by moving processes from one queue to another
(35) A system is in a safe state if:
a) Deadlocks can occur at any time.
b) There exists a sequence of processes that allows each process to finish
without deadlock.
c) All processes are blocked and waiting for resources.
d) Resources are allocated on a first-come, first-served basis.

36)Which of the following is a strategy for deadlock avoidance?


a) Implementing a strict time limit on each process
b) Preempting resources from a process as needed
c) Ensuring all resources are available before any process starts
d) Checking resource requests against a safe state algorithm before
granting
Answer
1. B 11.B 21.B 31.D
2.C 12.C 22.A 32.A
3.B 13.B 23.B 33.B
4.C 14.A 24.D 34.B
5.D 15.B 25.B 35.B
6.B 16.C 26.B 36.D
7.C 17.D 27.D
8.A 18.C 28.A
9.B 19.B 29.B
10.B 20.D 30.B

You might also like