hoffa HOFFMAN
Quiz by , created more than 1 year ago

designed by hoffa

240
0
0
hoffa HOFFMAN
Created by hoffa HOFFMAN almost 5 years ago
Close

www.OS.com III

Question 1 of 52

1

99. Process is

Select one or more of the following:

  • ● A program in execution

  • ● A job in secondary memory

  • ● Contents of main memory

  • ● Program in High level language kept on disk

  • ● a unit of activity characterized by execution of a sequence of instructions, a
    current state, and an associated set

Explanation

Question 2 of 52

1

100. A task in a blocked state

Select one of the following:

  • ● is waiting for same temporarily unavailable resources

  • ● must still be placed in the run queues

  • ● is executable

  • ● is running

Explanation

Question 3 of 52

1

101. The systems which allows only one process execution at a time, are
called

Select one of the following:

  • ● unicasting systems

  • ● uniprogramming systems

  • ● uniprocessing systems

  • ● unitasking systems

Explanation

Question 4 of 52

1

102. The state of a process is defined by:

Select one of the following:

  • ● the current activity of the process

  • ● the activity to next be executed by the process

  • ● the final activity of the process

  • ● the activity is just executed by the process

Explanation

Question 5 of 52

1

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

Select one of the following:

  • ● ready

  • ● Old

  • ● terminated

  • ● running

  • ● new

Explanation

Question 6 of 52

1

104. Suppose that a process is in “Blocked” state waiting for some I/O
service. When the service is completed, it goes to the:

Select one of the following:

  • ● Suspended state

  • ● Terminated state

  • ● Running state

  • ● Ready state

Explanation

Question 7 of 52

1

105. Which of the following state transitions is not possible?

Select one of the following:

  • ● ready to running

  • ● blocked to ready

  • ● running to blocked

  • ● blocked to running

Explanation

Question 8 of 52

1

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

Select one of the following:

  • ● synchronous exclusion

  • ● mutual exclusion

  • ● asynchronous exclusion

  • ● critical exclusion

Explanation

Question 9 of 52

1

107. Interprocess communication:

Select one of the following:

  • ● allows processes to communicate and synchronize their actions without using
    the same address space

  • ● allows processes to communicate and synchronize their actions when using
    the same address space

  • ● allows the processes to only synchronize their actions without communication

  • ● none of the above

Explanation

Question 10 of 52

1

08. A sequence of instructions, in a computer language, to get the desired
result, is known as?

Select one of the following:

  • ● program

  • ● process

  • ● instruction

  • ● algorithm

Explanation

Question 11 of 52

1

109. In operating system, each process has its own:

Select one of the following:

  • ● program code

  • ● set of data

  • ● address space and global variables

  • ● all of the mentioned

Explanation

Question 12 of 52

1

110. For each process OS creates and manages:

Select one of the following:

  • ● Thread control block

  • ● Program

  • ● Program code

  • ● Process control block

Explanation

Question 13 of 52

1

111. Listing the sequence of instructions that are executed is called?

Select one of the following:

  • ● control block

  • ● instruction

  • ● program counter

  • ● trace

Explanation

Question 14 of 52

1

112. A process can be terminated due to:

Select one of the following:

  • ● killed by another process

  • ● all of the mentioned

  • ● normal exit

  • ● fatal error

Explanation

Question 15 of 52

1

113. What is the ready state of a process?

Select one of the following:

  • ● when process is unable to run until some task has been completed

  • ● when process is using CPU

  • ● none of the above

  • ● when process is scheduled to run after some execution

Explanation

Question 16 of 52

1

114. What is interprocess communication?

Select one of the following:

  • ● communication within the process

  • ● none of the above

  • ● communication between two threads of same process

  • ● communication between two process

Explanation

Question 17 of 52

1

115. A set of processes is deadlock if:

Select one of the following:

  • ● each process is terminated

  • ● all processes are trying to kill each other

  • ● none of the above

  • ● each process is blocked and will remain so forever

Explanation

Question 18 of 52

1

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

Select one of the following:

  • ● process stack

  • ● CPU registers

  • ● program counter

  • ● pipe

Explanation

Question 19 of 52

1

117. A Process Control Block (четыре вопроса в одном)PCB) doesn’t contain which of the following:

Select one of the following:

  • ● code

  • ● bootstrap program

  • ● process state

  • ● data

  • ● stack

Explanation

Question 20 of 52

1

118. The Process Control Block is:

Select one of the following:

  • ● secondary storage section

  • ● block in memory

  • ● data structure

  • ● process type variable

Explanation

Question 21 of 52

1

119. The degree of multi-programming is:

Select one of the following:

  • ● the number of processes in memory

  • ● the number of processes in the ready queue

  • ● the number of processes in the I/O queue

  • ● the number of processes executed per unit time

Explanation

Question 22 of 52

1

120. A single thread of control allows the process to perform:

Select one of the following:

  • ● multiple tasks at a time

  • ● only one task at a time

  • ● both

Explanation

Question 23 of 52

1

121. The objective of multi-programming is to:

Select one of the following:

  • ● to minimize CPU utilization

  • ● to maximize CPU utilization

  • ● have multiple programs waiting in a queue ready to run

Explanation

Question 24 of 52

1

122. What is a long-term scheduler?

Select one of the following:

  • ● it selects which process has to remove from memory by swapping

  • ● it selects which process has to be brought into the ready queue

  • ● none of the above

  • ● it selects which process has to be executed next and allocates CPU

Explanation

Question 25 of 52

1

123. What is a medium-term scheduler?

Select one of the following:

  • ● it selects which process has to remove from memory by swapping

  • ● it selects which process has to be brought into the ready queue

  • ● none of the above

  • ● it selects which process has to be executed next and allocates CPU

Explanation

Question 26 of 52

1

124. What is a short-term scheduler?

Select one of the following:

  • ● it selects which process has to remove from memory by swapping

  • ● it selects which process has to be brought into the ready queue

  • ● none of the above

  • ● it selects which process has to be executed next and allocates CPU

Explanation

Question 27 of 52

1

125. The primary distinction between the short-term scheduler and the longterm scheduler is:

Select one of the following:

  • ● the frequency of their execution

  • ● the type of processes the schedule

  • ● none of the above

  • ● the length of their queues

Explanation

Question 28 of 52

1

126. In a multi-programming environment:

Select one of the following:

  • ● a single user can execute many programs at the same time

  • ● more than one process resides in the memory

  • ● the programs are developed by more than one person

  • ● the processor executes more than one process at a time

Explanation

Question 29 of 52

1

127. The context of a process in the PCB of a process DOESN’T contain:

Select one of the following:

  • ● the value of the CPU registers

  • ● memory-management information

  • ● the process state

  • ● context switch time

Explanation

Question 30 of 52

1

128. Which of the following state transitions is not possible?

Select one of the following:

  • ● ready to running

  • ● blocked to ready

  • ● running to blocked

  • ● blocked to running

Explanation

Question 31 of 52

1

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

Select one of the following:

  • ● parent process

  • ● child process

  • ● cooperating process

  • ● init process

Explanation

Question 32 of 52

1

130. Which one of the following is a synchronization tool?

Select one of the following:

  • ● Semaphore

  • ● pipe

  • ● thread

  • ● socket

Explanation

Question 33 of 52

1

131. Mutual exclusion can be provided by the:

Select one of the following:

  • ● binary semaphores

  • ● both

  • ● mutex locks

  • ● none of the abovemaint

Explanation

Question 34 of 52

1

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

Select one of the following:

  • ● priority modification

  • ● priority removal

  • ● priority inversion

  • ● priority exchange

Explanation

Question 35 of 52

1

133. 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.

Select one of the following:

  • ● Multiprogramming, Multiprocessing

  • Multiprogramming, Uniprocessing

  • ● Uniprogramming, Multiprocessing

  • ● Multiprocessing, multiprogramming

Explanation

Question 36 of 52

1

134. Interprocess communication allows:

Select one of the following:

  • ● is required for all processes

  • ● is usually done via disk drives

  • ● is never necessary

  • ● allows process to synchronize activity

Explanation

Question 37 of 52

1

135. Message passing system allows processes to:

Select one of the following:

  • ● communicate with one another by resorting shared data

  • ● name the recipient or sender of the message

  • communicate with one another without resorting to shared data

  • ● share data

Explanation

Question 38 of 52

1

136. The link between two processes P and Q to send and receive messages
is called:

Select one of the following:

  • ● synchronization link

  • ● communication link

  • ● all of the above

  • ● message-passing link

Explanation

Question 39 of 52

1

137. In indirect communication between processes P and Q:

Select one of the following:

  • ● there is another process R to handle and pass on the messages between P
    and Q

  • ● there is another machine between the two processes to help communication

  • ● none of the above

  • ● there is a mailbox to help communication between P and Q

Explanation

Question 40 of 52

1

138. In the non-blocking send:

Select one of the following:

  • ● none of the above

  • ● the sending process keeps sending until it receives a message

  • ● the sending process keeps sending until the message is received

  • ● the sending process sends the message and resumes operation

Explanation

Question 41 of 52

1

139. In the blocking send, blocking receive:

Select one of the following:

  • ● the sending process sends the message while receiver is blocked

  • ● the sending process sends the message and resumes operation

  • ● none of the above

  • ● both sender and receiver are blocked until message is delivered

Explanation

Question 42 of 52

1

140. In the non-blocking send, blocking receive:

Select one of the following:

  • ● none of the above

  • ● the sending process keeps sending until it receives a message

  • ● sender continues on, receiver is blocked until the requested message arrives

  • ● the sending process sends the message and resumes operation

Explanation

Question 43 of 52

1

141. In the non-blocking send, non-blocking receive:

Select one of the following:

  • ● the sending process sends the message and resumes operation

  • ● the sending process keeps sending until the message is received

  • ● neither of processes are required to wait

  • ● the sending process keeps sending until it receives a message

Explanation

Question 44 of 52

1

142. Remote Procedure Calls (четыре вопроса в одном)RPC) are used:

Select one of the following:

  • ● for communication between two processes remotely different from each other
    on the same system

  • ● for communication between two processes on the same systems

  • ● for communication between two processes on separate systems

  • ● none of the above

Explanation

Question 45 of 52

1

143. What is a trap/exception?

Select one of the following:

  • ● software generated interrupt caused by an error

  • ● hardware generated interrupt caused by an error

  • ● failure of the system

  • ● user generated interrupt caused by an error

Explanation

Question 46 of 52

1

144. To avoid the race condition, the number of processes that may be
simultaneously inside their critical section is:

Select one of the following:

  • ● 2

  • ● 1

  • ● 0

  • ● 10

Explanation

Question 47 of 52

1

145. The initial value of the semaphore that allows only one of the many
processes to enter their critical sections, is?

Select one of the following:

  • ● 10

  • ● 2

  • ● 0

  • ● 1

Explanation

Question 48 of 52

1

146. Semaphores:

Select one of the following:

  • ● synchronize critical resources to prevent contention

  • ● are used to do I/O

  • ● synchronize critical resources to prevent deadlock

  • ● are used for memory management

Explanation

Question 49 of 52

1

147. Four necessary conditions for deadlock to exist are: mutual exclusion,
no-preemption, circular wait and

Select one of the following:

  • ● starvation

  • ● hold and wait

  • ● deadlock avoidance

  • ● race condition

Explanation

Question 50 of 52

1

148. Part of a program where the shared memory is accessed and which
should be executed invisibly, is called:

Select one of the following:

  • ● directory

  • ● critical section

  • ● mutual exclusion

  • ● semaphores

Explanation

Question 51 of 52

1

149. Banker's algorithm for resource allocation deals with:

Select one of the following:

  • ● deadlock avoidance

  • ● deadlock recovery

  • ● mutual exclusion

  • ● deadlock prevention

Explanation

Question 52 of 52

1

150. A situation where several processes access and manipulate the same
data concurrently and the outcome of the execution depends on the particular
order in which access takes place is called:

Select one of the following:

  • ● Process synchronization

  • ● Shared memory segments

  • ● Race section

  • ● Entry section

Explanation