220
83.1k

650+ Operating System (OS) Solved MCQs

These multiple-choice questions (MCQs) are designed to enhance your knowledge and understanding in the following areas: Computer Science Engineering (CSE) , Information Technology Engineering (IT) , Bachelor of Science in Computer Science FY (BSc CS) , Bachelor of Computer Applications (BCA) , Bachelor of Science in Computer Science (BSc CS) .

201.

The FCFS algorithm is particularly troublesome for                          

A. time sharing systems
B. multiprogramming systems
C. multiprocessor systems
D. operating systems
Answer» B. multiprogramming systems
202.

What is ‘Aging’?

A. keeping track of cache contents
B. keeping track of what pages are currently residing in memory
C. keeping track of how many times a given page is referenced
D. increasing the priority of jobs to ensure termination in a finite time
Answer» D. increasing the priority of jobs to ensure termination in a finite time
203.

An SJF algorithm is simply a priority algorithm where the priority is                          

A. the predicted next cpu burst
B. the inverse of the predicted next cpu burst
C. the current cpu burst
D. anything the user wants
Answer» A. the predicted next cpu burst
204.

Which of the following scheduling algorithms gives minimum average waiting time?

A. fcfs
B. sjf
C. round – robin
D. priority
Answer» B. sjf
205.

What is an operating system?

A. collection of programs that manages hardware resources
B. system service provider to the application programs
C. interface between the hardware and application programs
D. all of the mentioned
Answer» D. all of the mentioned
206.

To access the services of operating system, the interface is provided by the                        

A. system calls
B. api
C. library
D. assembly instructions
Answer» A. system calls
207.

Which one of the following is not true?

A. kernel is the program that constitutes the central core of the operating system
B. kernel is the first part of operating system to load into memory during booting
C. kernel is made of various modules which can not be loaded in running operating system
D. kernel remains in the memory during the entire computer session
Answer» C. kernel is made of various modules which can not be loaded in running operating system
208.

Which one of the following error will be handle by the operating system?

A. power failure
B. lack of paper in printer
C. connection failure in the network
D. all of the mentioned
Answer» D. all of the mentioned
209.

What is the main function of the command interpreter?

A. to get and execute the next user-specified command
B. to provide the interface between the api and application program
C. to handle the files in operating system
D. none of the mentioned
Answer» A. to get and execute the next user-specified command
210.

In Operating Systems, which of the following is/are CPU scheduling algorithms?

A. round robin
B. shortest job first
C. priority
D. all of the mentioned
Answer» D. all of the mentioned
211.

If a process fails, most operating system write the error information to a              

A. log file
B. another running process
C. new file
D. none of the mentioned
Answer» A. log file
212.

Which facility dynamically adds probes to a running system, both in user processes and in the kernel?

A. dtrace
B. dlocate
C. dmap
D. dadd
Answer» A. dtrace
213.

Which one of the following is not a real time operating system?

A. vxworks
B. qnx
C. rtlinux
D. palm os
Answer» D. palm os
214.

The OS X has                          

A. monolithic kernel
B. hybrid kernel
C. microkernel
D. monolithic kernel with modules
Answer» B. hybrid kernel
215.

The systems which allow only one process execution at a time, are called                      

A. uniprogramming systems
B. uniprocessing systems
C. unitasking systems
D. none of the mentioned
Answer» B. uniprocessing systems
216.

In operating system, each process has its own                      

A. address space and global variables
B. open files
C. pending alarms, signals and signal handlers
D. all of the mentioned
Answer» D. all of the mentioned
217.

In Unix, Which system call creates the new process?

A. fork
B. create
C. new
D. none of the mentioned
Answer» A. fork
218.

What is interprocess communication?

A. communication within the process
B. communication between two process
C. communication between two threads of same process
D. none of the mentioned
Answer» B. communication between two process
219.

Which system call can be used by a parent process to determine the termination of child process?

A. wait
B. exit
C. fork
D. get
Answer» A. wait
220.

The address of the next instruction to be executed by the current process is provided by the                      

A. cpu registers
B. program counter
C. process stack
D. pipe
Answer» B. program counter
221.

The number of processes completed per unit time is known as                      

A. output
B. throughput
C. efficiency
D. capacity
Answer» B. throughput
222.

Which of the following is not the state of a process?

A. new
B. old
C. waiting
D. running
Answer» B. old
223.

What is a Process Control Block?

A. process type variable
B. data structure
C. a secondary storage section
D. a block in memory
Answer» B. data structure
224.

The entry of all the PCBs of the current processes is in                      

A. process register
B. program counter
C. process table
D. process unit
Answer» C. process table
225.

What is the degree of multiprogramming?

A. the number of processes executed per unit time
B. the number of processes in the ready queue
C. the number of processes in the i/o queue
D. the number of processes in memory
Answer» D. the number of processes in memory
226.

A single thread of control allows the process to perform                      

A. only one task at a time
B. multiple tasks at a time
C. only two tasks at a time
D. all of the mentioned
Answer» A. only one task at a time
227.

What is the objective of multiprogramming?

A. have a process running at all time
B. have multiple programs waiting in a queue ready to run
C. to increase cpu utilization
D. none of the mentioned
Answer» C. to increase cpu utilization
228.

Which of the following do not belong to queues for processes?

A. job queue
B. pcb queue
C. device queue
D. ready queue
Answer» B. pcb queue
229.

When the process issues an I/O request

A. it is placed in an i/o queue
B. it is placed in a waiting queue
C. it is placed in the ready queue
D. it is placed in the job queue
Answer» A. it is placed in an i/o queue
230.

What will happen when a process terminates?

A. it is removed from all queues
B. it is removed from all, but the job queue
C. its process control block is de-allocated
D. its process control block is never de- allocated
Answer» A. it is removed from all queues
231.

What is a long-term scheduler?

A. it selects processes which have to be brought into the ready queue
B. it selects processes which have to be executed next and allocates cpu
C. it selects processes which heave to remove from memory by swapping
D. none of the mentioned
Answer» A. it selects processes which have to be brought into the ready queue
232.

If all processes I/O bound, the ready queue will almost always be              and the Short term Scheduler will have a              to do.

A. full, little
B. full, lot
C. empty, little
D. empty, lot
Answer» C. empty, little
233.

What is a medium-term scheduler?

A. it selects which process has to be brought into the ready queue
B. it selects which process has to be executed next and allocates cpu
C. it selects which process to remove from memory by swapping
D. none of the mentioned
Answer» C. it selects which process to remove from memory by swapping
234.

What is a short-term scheduler?                      

A. it selects which process has to be brought into the ready queue
B. it selects which process has to be executed next and allocates cpu
C. it selects which process to remove from memory by swapping
D. none of the mentioned
Answer» B. it selects which process has to be executed next and allocates cpu
235.

The primary distinction between the short term scheduler and the long term scheduler is

A. the length of their queues
B. the type of processes they schedule
C. the frequency of their execution
D. none of the mentioned
Answer» C. the frequency of their execution
236.

In a multiprogramming environment

A. the processor executes more than one process at a time
B. the programs are developed by more than one person
C. more than one process resides in the memory
D. a single user can execute many programs at the same time
Answer» C. more than one process resides in the memory
237.

The context of a process in the PCB of a process does not contain                      

A. the value of the cpu registers
B. the process state
C. memory-management information
D. context switch time
Answer» D. context switch time
238.

Which of the following need not necessarily be saved on a context switch between processes?

A. general purpose registers
B. translation lookaside buffer
C. program counter
D. all of the mentioned
Answer» B. translation lookaside buffer
239.

Which of the following does not interrupt a running process?

A. a device
B. timer
C. scheduler process
D. power failure
Answer» C. scheduler process
240.

Which process can be affected by other processes executing in the system?

A. cooperating process
B. child process
C. parent process
D. init process
Answer» A. cooperating process
241.

When several processes access the same data concurrently and the outcome of the execution depends on the particular order in which the access takes place, is called?

A. dynamic condition
B. race condition
C. essential condition
D. critical condition
Answer» B. race condition
242.

If a process is executing in its critical section, then no other processes can be executing in their critical section. This condition is called?

A. mutual exclusion
B. critical exclusion
C. synchronous exclusion
D. asynchronous exclusion
Answer» A. mutual exclusion
243.

Which one of the following is a synchronization tool?

A. thread
B. pipe
C. semaphore
D. socket
Answer» C. semaphore
244.

A semaphore is a shared integer variable

A. that can not drop below zero
B. that can not be more than zero
C. that can not drop below one
D. that can not be more than one
Answer» A. that can not drop below zero
245.

Mutual exclusion can be provided by the

A. mutex locks
B. binary semaphores
C. both mutex locks and binary semaphores
D. none of the mentioned
Answer» C. both mutex locks and binary semaphores
246.

When high priority task is indirectly preempted by medium priority task effectively inverting the relative priority of the two tasks, the scenario is called

A. priority inversion
B. priority removal
C. priority exchange
D. priority modification
Answer» A. priority inversion
247.

Process synchronization can be done on

A. hardware level
B. software level
C. both hardware and software level
D. none of the mentioned
Answer» C. both hardware and software level
248.

A monitor is a module that encapsulates

A. shared data structures
B. procedures that operate on shared data structure
C. synchronization between concurrent procedure invocation
D. all of the mentioned
Answer» D. all of the mentioned
249.

To enable a process to wait within the monitor                      

A. a condition variable must be declared as condition
B. condition variables must be used as boolean objects
C. semaphore must be used
D. all of the mentioned
Answer» A. a condition variable must be declared as condition
250.

Restricting the child process to a subset of the parent’s resources prevents any process from                      

A. overloading the system by using a lot of secondary storage
B. under-loading the system by very less cpu utilization
C. overloading the system by creating a lot of sub-processes
D. crashing the system by utilizing multiple resources
Answer» C. overloading the system by creating a lot of sub-processes

Done Studing? Take A Test.

Great job completing your study session! Now it's time to put your knowledge to the test. Challenge yourself, see how much you've learned, and identify areas for improvement. Don’t worry, this is all part of the journey to mastery. Ready for the next step? Take a quiz to solidify what you've just studied.