OS Quiz - DKT Sir
OS Quiz - DKT Sir
OS Quiz - DKT Sir
This set of Operating System Multiple Choice Questions & Answers (MCQs) focuses on “Basics”.
2. To access the services of operating system, the interface is provided by the ___________
a) System calls
b) API
c) Library
d) Assembly instructions
4. 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
7. 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
8. 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
This set of Operating System Multiple Choice Questions & Answers (MCQs) focuses on “Processes”.
1. 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
10. 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
This set of Operating System Multiple Choice Questions & Answers (MCQs) focuses on “Process Control Block”.
This set of Operating System Multiple Choice Questions & Answers (MCQs) focuses on “Process Scheduling Queues”.
5. 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
8. 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
-------------------------------
9. The only state transition that is initiated by the user process itself is __________
a) block
b) wakeup
c) dispatch
d) none of the mentioned
-------------------------------
10. In a time-sharing operating system, when the time slot given to a process is completed, the process goes from the
running state to the __________
a) Blocked state
b) Ready state
c) Suspended state
d) Terminated state
-------------------------------
13. 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
-------------------------------
14. 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
-------------------------------
This set of Operating System Multiple Choice Questions & Answers (MCQs) focuses on “Process Synchronization”.
2. 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
-------------------------------
3. 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
-------------------------------
7. 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
-------------------------------
This set of Operating System Interview Questions and Answers focuses on “Process Creation” and will also be useful
for interview preparations.
1. 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
-------------------------------
2. A parent process calling _____ system call will be suspended until children processes terminate.
a) wait
b) fork
c) exit
d) exec
-------------------------------
3. Cascading termination refers to termination of all child processes before the parent terminates ______
a) Normally
b) Abnormally
c) Normally or abnormally
d) None of the mentioned
-------------------------------
4. With _____________ only one process can execute at a time; meanwhile all other process are waiting for the
processor. With ______________ more than one process can be running simultaneously each on a
different processor.
a) Multiprocessing, Multiprogramming
b) Multiprogramming, Uniprocessing
c) Multiprogramming, Multiprocessing
d) Uniprogramming, Multiprocessing
-------------------------------
6. In UNIX, the return value for the fork system call is _____ for the child process and _____ for the parent process.
a) A Negative integer, Zero
b) Zero, A Negative integer
c) Zero, A nonzero integer
d) A nonzero integer, Zero
-------------------------------
8. The child process completes execution, but the parent keeps executing, then the child process is known as
__________
a) Orphan
b) Zombie
c) Body
d) Dead
This set of Operating System Multiple Choice Questions & Answers (MCQs) focuses on “Inter Process
Communication”.
3. Which of the following two operations are provided by the IPC facility?
a) write & delete message
b) delete & receive message
c) send & delete message
d) receive & send message
-------------------------------
5. The link between two processes P and Q to send and receive messages is called __________
a) communication link
b) message-passing link
c) synchronization link
d) all of the mentioned
-------------------------------
11. Bounded capacity and Unbounded capacity queues are referred to as __________
a) Programmed buffering
b) Automatic buffering
c) User defined buffering
d) No buffering