Bca502: Core - 19: Operating Systems Multiple Choice Questions
Bca502: Core - 19: Operating Systems Multiple Choice Questions
1) 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
2) A Process Control Block(PCB) does not contain which of the following :
a) Process State
b) Stack
c) Heap
d) boot strap
Answer: d
3) The number of processes completed per unit time is known as __________.
a) Output
b) Throughput
c) Efficiency
d) Capacity
Answer: b
4) The state of a process is defined by :
a) the final activity of the process
b) the activity just executed by the process
c) the activity to next be executed by the process
d) the current activity of the process
Answer: d
5) Which of the following is not the state of a process ?
a) New
b) Old
c) Waiting
d) Running
e) Ready
Answer: b
6) The Process Control Block is :
a) Process type variable
b) Data Structure
c) a secondary storage section
d) a Block in memory
Answer: b
15) Cascading termination refers to termination of all child processes before the parent
terminates ______.
a) Normally
b) Abnormally
c) Normally or abnormally
d) None of these
Answer: a
25) 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
Answer:b
26) 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
Answer: a
27) In priority scheduling algorithm
a) CPU is allocated to the process with highest priority
b) CPU is allocated to the process with lowest priority
c) equal priority processes can not be scheduled
d) none of the mentioned
Answer:a
28) Time quantum is defined in
a) shortest job scheduling algorithm
b) round robin scheduling algorithm
c) priority scheduling algorithm
d) multilevel queue scheduling algorithm
Answer:b
29) In multilevel feedback scheduling algorithm
a) a process can move to a different classified ready queue
b) classification of ready queue is permanent
c) processes are not classified into groups
d) none of the mentioned
Answer:a
30) CPU scheduling is the basis of ____________.
a) multiprocessor systems
b) multiprogramming operating systems
c) larger memory sized systems
d) None of these
Answer: b
31) The two steps of a process execution are : (choose two)
a) I/O Burst
b) CPU Burst
c) Memory Burst
d) OS Burst
Answer: a and b
32) An I/O bound program will typically have :
a) a few very short CPU bursts
b) many very short I/O bursts
c) many very short CPU bursts
d) a few very short I/O bursts
Answer: c
33) Scheduling is done so as to :
a) increase CPU utilization
b) decrease CPU utilization
c) keep the CPU more idle
d) None of these
Answer: a
34) In Unix, Which system call creates the new process?
a) fork
b) create
c) new
d) none of the mentioned
Answer:a
35)A process can be terminated due to
a) normal exit
b) fatal error
c) killed by another process
d) all of the mentioned
Answer:d
36)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
37) Turnaround time is :
a) the total waiting time for a process to finish execution
b) the total time spent in the ready queue
c) the total time spent in the running queue
d) the total time from the completion till the submission of a process
Answer: d
38) Waiting time is :
a) the total time in the blocked and waiting queues
b) the total time spent in the ready queue
c) the total time spent in the running queue
d) the total time from the completion till the submission of a process
Answer: b
39) Response time is :
a) the total time taken from the submission time till the completion time
b) the total time taken from the submission time till the first response is produced
c) the total time taken from submission time till the response is output
d) None of these
Answer: b
40) Round robin scheduling falls under the category of :
a) Non preemptive scheduling
b) Preemptive scheduling
c) None of these
Answer: b
41) Which process can affect of be affected by other processes executing in the system?
a) cooperating process
b) child process
c) parent process
d) init process
Answer:a
42) 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
43) 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
44) Which one of the following is a synchronization tool?
a) thread
b) pipe
c) semaphore
d) socket
Answer:c
45) Mutual exclusion can be provided by the
a) mutex locks
b) binary semaphores
c) both (a) and (b)
d) none of the mentioned
Answer:c
46) A monitor is characterized by :
a) a set of programmer defined operators
b) an identifier
c) the number of variables in it
d) All of these
Answer: a
47) Concurrent access to shared data may result in :
a) data consistency
b) data insecurity
c) data inconsistency
d) None of these
Answer: c
48) 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 :
a) data consistency
b) race condition
c) aging
d) starvation
Answer: b
49) In the bakery algorithm to solve the critical section problem :
a) each process is put into a queue and picked up in an ordered manner
b) each process receives a number (may or may not be unique) and the one with the lowest
number is served next
c) each process gets a unique number and the one with the highest number is served next
d) each process gets a unique number and the one with the lowest number is served next
Answer: b
50) The TestAndSet instruction is executed :
a) after a particular process
b) periodically
c) atomically
d) None of these
Answer: c
51) The two atomic operations permissible on semaphores are : (choose two)
a) wait
b) stop
c) hold
d) signal
Answer: a and d
52) The signal operation of the semaphore basically works on the basic _______ system call.
a) continue()
b) wakeup()
c) getup()
d) start()
Answer: b
53) If the semaphore value is negative :
a) its magnitude is the number of processes waiting on that semaphore
b) it is invalid
c) no operation can be further performed on it until the signal operation is performed on it
d) None of these
Answer: a
54) The code that changes the value of the semaphore is :
a) remainder section code
b) non – critical section code
c) critical section code
d) None of these
Answer: c
55) In the bounded buffer problem, there are the empty and full semaphores that :
a) count the number of empty and full buffers
b) count the number of empty and full memory spaces
c) count the number of empty and full queues
d) None of these
Answer: a
56) In the bounded buffer problem :
a) there is only one buffer
b) there are n buffers ( n being greater than one but finite)
c) there are infinite buffers
d) the buffer size is bounded
Answer: b
57) To ensure difficulties do not arise in the readers – writers problem, _______ are given
exclusive access to the shared object.
a) readers
b) writers
c) None of these
Answer: b
58) The dining – philosophers problem will occur in case of :
a) 5 philosophers and 5 chopsticks
b) 4 philosophers and 5 chopsticks
c) 3 philosophers and 5 chopsticks
d) 6 philosophers and 5 chopsticks
Answer: a
59) The operations that can be invoked on a condition variable are : (choose two)
a) wait
b) hold
c) signal
d) continue
Answer: a and c
60) . To avoid deadlock
a) there must be a fixed number of resources to allocate
b) resource allocation must be done only once
c) all deadlocked processes must be aborted
d) inversion technique can be used
Answer:a
61) The request and release of resources are ___________.
a) command line statements
b) interrupts
c) system calls
d) special programs
Answer: c
62) A deadlock avoidance algorithm dynamically examines the __________, to ensure that a
circular wait condition can never exist.
a) resource allocation state
b) system storage state
c) operating system
d) resources
Answer: a
63) . A memory buffer used to accommodate a speed differential is called
a) stack pointer
b) cache
c) accumulator
d) disk buffer
Answer:b
64) . Which one of the following is the address generated by CPU?
a) physical address
b) absolute address
c) logical address
d) none of the mentioned
Answer:c
65) Run time mapping from virtual to physical address is done by
a) memory management unit
b) CPU
c) PCI
d) none of the mentioned
Answer:a
66) Memory management technique in which system stores and retrieves data from secondary
storage for use in main memory is called
a) fragmentation
b) paging
c) mapping
d) none of the mentioned
Answer:b
67) For a deadlock to arise, which of the following conditions must hold simultaneously ? (
choose all that apply )
a) Mutual exclusion
b) Starvation
c) Hold and wait
d) No preemption
e) Circular wait
Answer: a, c, d and e
68) Which of the following condition is required for deadlock to be possible?
a) mutual exclusion
b) a process may hold allocated resources while awaiting assignment of other resources
c) no resource can be forcibly removed from a process holding it
d) all of the mentioned
Answer:d