Processes: All of The Mentioned
Processes: All of The Mentioned
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
11. 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
19. 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
20. 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
21. A Process Control Block(PCB) does not contain which of the following?
a) Code
b) Stack
c) Bootstrap program
d) Data
22. The number of processes completed per unit time is known as __________
a) Output
b) Throughput
c) Efficiency
d) Capacity
26. The entry of all the PCBs of the current processes is in __________
a) Process Register
b) Program Counter
c) Process Table
d) Process Unit
34. 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
38. The only state transition that is initiated by the user process itself is __________
a) block
b) wakeup
c) dispatch
d) none of the mentioned
39. 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
41. Suppose that a process is in “Blocked” state waiting for some I/O service. When
the service is completed, it goes to the __________
a) Running state
b) Ready state
c) Suspended state
d) Terminated state
42. 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
43. 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
45. Which process can be affected by other processes executing in the system?
a) cooperating process
b) child process
c) parent process
d) init process
46. 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
47. If a process is executing in its critical section, then no other processes can be
executing in their critical section. What is this condition called?
a) mutual exclusion
b) critical exclusion
c) synchronous exclusion
d) asynchronous exclusion
51. 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
55. 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
56. A parent process calling _____ system call will be suspended until children
processes terminate.
a) wait
b) fork
c) exit
d) exec
57. Cascading termination refers to termination of all child processes if the parent
process terminates ______
a) Normally
b) Abnormally
c) Normally or abnormally
d) None of the mentioned
58. 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
62. 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
65. 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
66. Messages sent by a process __________
a) have to be of a fixed size
b) have to be a variable size
c) can be fixed or variable sized
d) none of the mentioned
67. 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
73. Bounded capacity and Unbounded capacity queues are referred to as __________
a) Programmed buffering
b) Automatic buffering
c) User defined buffering
d) No buffering
CPU Scheduling
74. Which module gives control of the CPU to the process selected by the short-
term scheduler?
a) dispatcher
b) interrupt
c) scheduler
d) none of the mentioned
75. The processes that are residing in main memory and are ready and waiting to
execute are kept on a list called _____________
a) job queue
b) ready queue
c) execution queue
d) process queue
76. The interval from the time of submission of a process to the time of completion
is termed as ____________
a) waiting time
b) turnaround time
c) response time
d) throughput
77. Which scheduling algorithm allocates the CPU first to the process that requests
the CPU first?
a) first-come, first-served scheduling
b) shortest job scheduling
c) priority scheduling
d) none of the mentioned
79. In priority scheduling algorithm, when a process arrives at the ready queue, its
priority is compared with the priority of ____________
a) all process
b) currently running process
c) parent process
d) init process
88. A process is selected from the ______ queue by the ________ scheduler, to be
executed.
a) blocked, short term
b) wait, long term
c) ready, short term
d) ready, long term
89. In the following cases non – preemptive scheduling occurs?
a) When a process switches from the running state to the ready state
b) When a process goes from the running state to the waiting state
c) When a process switches from the waiting state to the ready state
d) All of the mentioned
90. The switching of the CPU from one process or thread to another is called
____________
a) process switch
b) task switch
c) context switch
d) all of the mentioned
107. Orders are processed in the sequence they arrive if _______ rule
sequences the jobs.
a) earliest due date
b) slack time remaining
c) first come, first served
d) critical ratio
108. Which of the following algorithms tends to minimize the process flow
time?
a) First come First served
b) Shortest Job First
c) Earliest Deadline First
d) Longest Job First
111. The real difficulty with SJF in short term scheduling is ____________
a) it is too good an algorithm
b) knowing the length of the next CPU request
c) it is too complex to understand
d) none of the mentioned
113. Consider the following set of processes, the length of the CPU burst time
given in milliseconds.
Process Burst time
P1 6
P2 8
P3 7
P4 3
Assuming the above process being scheduled with the SJF scheduling algorithm.
a) The waiting time for process P1 is 3ms
b) The waiting time for process P1 is 0ms
c) The waiting time for process P1 is 16ms
d) The waiting time for process P1 is 9ms
a) i only
b) i and iii only
c) ii and iii only
d) i, ii and iii
Synchronization