Operating System Questions
Operating System Questions
View Answer
Answers – Basics
Answer:d
This section of our 1000+ Operating System MCQs Explanation:None.
focuses on basic overview of Operating System.
5. The main function of the command interpreter is
1.What is operating system? a) to get and execute the next user-specified
a) collection of programs that manages hardware command
resources b) to provide the interface between the API and
b) system service provider to the application application program
programs c) to handle the files in operating system
c) link to interface the hardware and application d) none of the mentioned
programs View Answer
d) all of the mentioned
View Answer Answer:a
Explanation:None.
Answer:d
Explanation:None. 6. By operating system, the resource management
can be done via
2. To access the services of operating system, the a) time division multiplexing
interface is provided by the b) space division multiplexing
a) system calls c) both (a) and (b)
b) API d) none of the mentioned
c) library View Answer
d) assembly instructions
View Answer Answer:c
Explanation:None.
Answer:a
Explanation:None. 7. If a process fails, most operating system write the
error information to a
3. Which one of the following is not true? a) log file
a) kernel is the program that constitutes the central b) another running process
core of the operating system c) new file
b) kernel is the first part of operating system to load d) none of the mentioned
into memory during booting View Answer
c) kernel is made of various modules which can not
be loaded in running operating system Answer:a
d) kernel remains in the memory during the entire Explanation:None.
computer session
View Answer 8. Which facility dynamically adds probes to a
running system, both in user processes and in the
Answer:c kernel?
Explanation:None. a) DTrace
b) DLocate
4. Which one of the following error will be handle by c) DMap
the operating system? d) DAdd
a) power failure View Answer
b) lack of paper in printer
c) connection failure in the network Answer:a
Explanation:None.
9. Which one of the following is not a real time 3. In Unix, Which system call creates the new
operating system? process?
a) VxWorks a) fork
b) Windows CE b) create
c) RTLinux c) new
d) Palm OS d) none of the mentioned
View Answer View Answer
Answer:d Answer:a
Explanation:None. Explanation:None.
Answer:b Answer:d
Explanation:None. Explanation:None.
Answer: b
Operating System Questions and Explanation: None.
Answers – Process Control Block
5) The Process Control Block is :
This set of 1000+ Operating System MCQs focuses a) Process type variable
on “Process Control Block” b) Data Structure
c) a secondary storage section
1) A Process Control Block(PCB) does not contain d) a Block in memory
which of the following : View Answer
a) Code
b) Stack Answer: b
c) Heap Explanation: None.
d) Data
e) Program Counter 6) The entry of all the PCBs of the current
f) Process State processes is in :
a) Process Register a) Job Queue
b) Program Counter b) PCB queue
c) Process Table c) Device Queue
d) Process Unit d) Ready Queue
View Answer View Answer
Answer: c Answer: b
Explanation: None. Explanation: None.
Answer: d Answer: a
Explanation: None. Explanation: None.
8) A single thread of control allows the process to 3) When a process terminates : (Choose Two)
perform : a) It is removed from all queues
a) only one task at a time b) It is removed from all, but the job queue
b) multiple tasks at a time c) Its process control block is de-allocated
c) All of these d) Its process control block is never de-allocated
View Answer View Answer
Answer:c
Operating System Questions and
Explanation:Binary Semaphores are known as Answers – Process Creation
mutex locks.
This set of 1000+ Operating System MCQs focuses
7. When high priority task is indirectly preempted by on “Process Creation” and will also be useful for
medium priority task effectively inverting the relative interview preparations.
priority of the two tasks, the scenario is called
1) Restricting the child process to a subset of the
a) priority inversion
parent’s resources prevents any process from :
b) priority removal
a) overloading the system by using a lot of
c) priority exchange
secondary storage
d) priority modification
b) under-loading the system by very less CPU
View Answer
utilization
Answer:a c) overloading the system by creating a lot of sub-
Explanation:None. processes
d) crashing the system by utilizing multiple
8. Process synchronization can be done on resources
a) hardware level View Answer
b) software level
c) both (a) and (b) Answer: c
d) none of the mentioned Explanation: None.
View Answer
2) A parent process calling _____ system call will be
Answer:c suspended until children processes terminate.
Explanation:None. a) wait
b) fork
9. A monitor is a module that encapsulates c) exit
a) shared data structures d) exec
b) procedures that operate on shared data structure View Answer
c) synchronization between concurrent procedure
invocation Answer: a
d) all of the mentioned Explanation: None.
View Answer
3) Cascading termination refers to termination of all
Answer:d child processes before the parent terminates
Explanation:None. ______.
a) Normally
10. To enable a process to wait within the monitor, b) Abnormally
a) a condition variable must be declared as c) Normally or abnormally
condition d) None of these
b) condition variables must be used as boolean View Answer
objects
c) semaphore must be used Answer: a
d) all of the mentioned Explanation: None.
View Answer
4) With ……………. only one process can execute d) Dead
at a time; meanwhile all other process are waiting View Answer
for the processor. With ………….. more than one
process can be running simultaneously each on a Answer: b
different processor. Explanation: None.
a) Multiprocessing, Multiprogramming
b) Multiprogramming, Uniprocessing Operating System Questions and
c) Multiprogramming, Multiprocessing
d) Uniprogramming, Multiprocessing Answers – Inter Process
View Answer Communication
Answer: d This set of 1000+ Operating System MCQs focuses
Explanation: None. on “Inter Process Communication”
Answer: c
Explanation: None.
Operating System Questions and b) The waiting time for process P1 is 0ms.
c) The waiting time for process P1 is 16ms.
Answers – CPU Scheduling d) The waiting time for process P1 is 9ms.
Algorithms-2 View Answer
Answer: b Answer: c
Explanation: None. Explanation: None.
2) The real difficulty with SJF in short term iii) Assuming the above process being scheduled
scheduling is : with the SJF scheduling algorithm :
a) it is too good an algorithm a) The waiting time for process P4 is 3ms.
b) knowing the length of the next CPU request b) The waiting time for process P4 is 0ms.
c) it is too complex to understand c) The waiting time for process P4 is 16ms.
d) None of these d) The waiting time for process P4 is 9ms.
View Answer View Answer
Answer: b Answer: b
Explanation: None. Explanation: None.
3) The FCFS algorithm is particularly troublesome iv) Assuming the above process being scheduled
for ____________. with the SJF scheduling algorithm :
a) time sharing systems a) The waiting time for process P3 is 3ms.
b) multiprogramming systems b) The waiting time for process P3 is 0ms.
c) multiprocessor systems c) The waiting time for process P3 is 16ms.
d) Operating systems d) The waiting time for process P3 is 9ms.
View Answer View Answer
Answer: b Answer: d
Explanation: In a time sharing system, each user Explanation: None.
needs to get a share of the CPU at regular intervals.
5) Preemptive Shortest Job First scheduling is
4) Consider the following set of processes, the sometimes called :
length of the CPU burst time given in milliseconds : a) Fast SJF scheduling
Process Burst time b) EDF scheduling – Earliest Deadline First
P1 6 c) HRRN scheduling – Highest Response Ratio
P2 8 Next
P3 7 d) SRTN scheduling – Shortest Remaining Time
P4 3 Next
View Answer
i) Assuming the above process being scheduled
with the SJF scheduling algorithm : Answer: d
a) The waiting time for process P1 is 3ms. Explanation: None.
6) An SJF algorithm is simply a priority algorithm ii) Preemptive scheduling may cause starvation
where the priority is : iii) Round robin is better than FCFS in terns of
a) the predicted next CPU burst response time
b) the inverse of the predicted next CPU burst
c) the current CPU burst a) i only
d) anything the user wants b) i and iii only
View Answer c) ii and iii only
d) i, ii and iii
Answer: a View Answer
Explanation: The larger the CPU burst, the lower the
priority. Answer: d
Explanation: None.
7) One of the disadvantages of the priority
scheduling algorithm is that : 11) Which of the following scheduling algorithms
a) it schedules in a very complex manner gives minimum average waiting time ?
b) its scheduling takes up a lot of time a) FCFS
c) it can lead to some low priority process waiting b) SJF
indefinitely for the CPU c) Round – robin
d) None of these d) Priority
View Answer View Answer
Answer: c Answer: b
Explanation: None. Explanation: None.
8) ‘Aging’ is :
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 Operating System Questions and
referenced Answers – The Critical Section
d) increasing the priority of jobs to ensure
termination in a finite time (CS) Problem and Solutions
View Answer This set of 1000+ Operating System MCQs focuses
Answer: d on “The Critical Section (CS) Problem and
Explanation: None. Solutions”
9) A solution to the problem of indefinite blockage of 1) Concurrent access to shared data may result in :
low – priority processes is : a) data consistency
a) Starvation b) data insecurity
b) Wait queue c) data inconsistency
c) Ready queue d) None of these
d) Aging View Answer
View Answer Answer: c
Answer: d Explanation: None.
Explanation: None. 2) A situation where several processes access and
10) Which of the following statements are true ? manipulate the same data concurrently and the
(GATE 2010) outcome of the execution depends on the particular
i) Shortest remaining time first scheduling may order in which access takes place is called :
cause starvation a) data consistency
b) race condition
c) aging b) when another process is in its critical section
d) starvation c) before a process has made a request to enter its
View Answer critical section
d) None of these
Answer: b View Answer
Explanation: None.
Answer: a
3) The segment of code in which the process may Explanation: None.
change common variables, update tables, write into
files is known as : 7) A minimum of _____ variable(s) is/are required to
a) program be shared between processes to solve the critical
b) critical section section problem.
c) non – critical section a) one
d) synchronizing b) two
View Answer c) three
d) four
Answer: b View Answer
Explanation: None.
Answer: b
4) The following three conditions must be satisfied Explanation: None.
to solve the critical section problem : (choose three)
a) Aging 8) In the bakery algorithm to solve the critical
b) Mutual Exclusion section problem :
c) Deadlock a) each process is put into a queue and picked up in
d) Progress an ordered manner
e) Bounded Waiting b) each process receives a number (may or may not
View Answer be unique) and the one with the lowest number is
served next
Answer: b,d and e c) each process gets a unique number and the one
Explanation: None. with the highest number is served next
d) each process gets a unique number and the one
5) Mutual exclusion implies that :
with the lowest number is served next
a) if a process is executing in its critical section, then
View Answer
no other process must be executing in their critical
sections Answer: b
b) if a process is executing in its critical section, then Explanation: None.
other processes must be executing in their critical
sections
c) if a process is executing in its critical section, then Operating System Questions and
all the resources of the system must be blocked until Answers – Semaphores – 1
it finishes execution
d) None of these This set of 1000+ Operating System MCQs focuses
View Answer on “Semaphores”
2) The TestAndSet instruction is executed : 7) The wait operation of the semaphore basically
a) after a particular process works on the basic _______ system call.
b) periodically a) stop()
c) atomically b) block()
d) None of these c) hold()
View Answer d) wait()
View Answer
Answer: c
Explanation: None. 8) The signal operation of the semaphore basically
works on the basic _______ system call.
3) Semaphore is a/an _______ to solve the critical a) continue()
section problem. b) wakeup()
a) hardware for a system c) getup()
b) special program for a system d) start()
c) integer variable View Answer
d) None of these
View Answer Answer: b
Explanation: None.
Answer: c
Explanation: None. 9) If the semaphore value is negative :
a) its magnitude is the number of processes waiting
4) The two atomic operations permissible on on that semaphore
semaphores are : (choose two) b) it is invalid
a) wait c) no operation can be further performed on it until
b) stop the signal operation is performed on it
c) hold d) None of these
d) signal View Answer
View Answer
Answer: a
Answer: a and d Explanation: None.
Explanation: None.
10) The code that changes the value of the
5) Spinlocks are : semaphore is :
a) CPU cycles wasting locks over critical sections of a) remainder section code
programs b) non – critical section code
b) locks that avoid time wastage in context switches c) critical section code
c) locks that work better on multiprocessor systems d) None of these
d) All of these View Answer
View Answer
Answer: c
Answer: d Explanation: None.
Explanation: None.
11) The following program consists of 3 concurrent
6) The main disadvantage of spinlocks is that : processes and 3 binary semaphores. The
a) they are not sufficient for many process semaphores are initialized as S0 = 1, S1 = 0, S2 =
b) they require busy waiting 0.
c) they are unreliable sometimes Process P0
d) they are too complex for programmers while(true)
View Answer {
wait(S0); 13) Two processes, P1 and P2, need to access a
print ’0′; critical section of code. Consider the following
release(S1); synchronization construct used by the processes :
release(S2); Process P1 :
} while(true)
{
Process P1 w1 = true;
wait(S1); while(w2 == true);
release(S0); Critical section
w1 = false;
Process P2
}
wait(S2);
Remainder Section
release(S0);
Process P2 :
How many times will P0 print ’0′ ?
while(true)
a) At least twice
{
b) Exactly twice
w2 = true;
c) Exactly thrice
while(w1 == true);
d) Exactly once
Critical section
View Answer
w2 = false;
Answer: a }
Explanation: None. Remainder Section
12) Each process Pi, i = 0,1,2,3,……,9 is coded as Here, w1 and w2 are shared variables, which are
follows : initialized to false. Which one of the following
repeat statements is TRUE about the above construct?
P(mutex) a) It does not ensure mutual exclusion
{Critical Section} b) It does not ensure bounded waiting
V(mutex) c) It requires that processes enter the critical section
forever in strict alternation
The code for P10 is identical except that it uses d) It does not prevent deadlocks, but ensures
V(mutex) instead of P(mutex). What is the largest mutual exclusion
number of processes that can be inside the critical View Answer
section at any moment (the mutex being initialized
Answer: d
to 1)?
Explanation: None.
a) 1
b) 2
c) 3 Operating System Questions and
d) None of these
View Answer
Answers – Semaphores – 2
This set of 1000+ Operating System MCQs focuses
Answer: c
on “Semaphores” and will also be useful for
Explanation: Any one of the 9 processes can get
interview preparations for freshers.
into critical section after executing P(mutex) which
decrements the mutex value to 0. At this time P10 1) What will happen if a non-recursive mutex is
can enter critical section by incrementing the value locked more than once ?
to 1. Now any of the 9 processes can enter the a) Starvation
critical section by again decrementing the mutex b) Deadlock
value to 0. None of the remaining processes can get c) Aging
into their critical sections.
d) Signaling Signal. P operation will decrease the value by 1
View Answer everytime and V operation will increase the value by
1 everytime.
Answer: b
Explanation: If a thread which had already locked a 6) A binary semaphore is a semaphore with integer
mutex, tries to lock the mutex again, it will enter into values : (choose two)
the waiting list of that mutex, which results in a) 1
deadlock. It is because no other thread can unlock b) -1
the mutex. c) 0
d) 0.5
2) A semaphore : View Answer
a) is a binary mutex
b) must be accessed from only one process Answer: a and c
c) can be accessed from multiple processes Explanation: None.
d) None of these
View Answer 7) The following pair of processes share a common
variable X :
Answer: c Process A
Explanation: None. int Y;
A1: Y = X*2;
3) The two kinds of semaphores are : (choose two) A2: X = Y;
a) mutex
b) binary Process B
c) counting int Z;
d) decimal B1: Z = X+1;
View Answer B2: X = Z;
7) All processes share a semaphore variable mutex, Which of the following statements describes
initialized to 1. Each process must execute properties achieved ?
wait(mutex) before entering the critical section and a) Mutual exclusion but not progress
signal(mutex) afterward. b) Progress but not mutual exclusion
c) Neither mutual exclusion nor progress
i) Suppose a process executes in the following d) Both mutual exclusion and progress
manner : View Answer
signal(mutex);
….. Answer: d
critical section Explanation: None.
…..
wait(mutex);
This set of 1000+ Operating System MCQs focuses 5) For Mutual exclusion to prevail in the system :
on “Deadlock Prevention” a) at least one resource must be held in a non
sharable mode
1) The number of resources requested by a process b) the processor must be a uniprocessor rather than
: a multiprocessor
a) must always be less than the total number of c) there must be at least one resource in a sharable
resources available in the system mode
b) must always be equal to the total number of d) All of these
resources available in the system View Answer
c) must not exceed the total number of resources
available in the system Answer: a
d) must exceed the total number of resources Explanation: If another process requests that
available in the system resource (non – shareable resource), the requesting
View Answer process must be delayed until the resource has
been released.
Answer: c
Explanation: None. 6) For a Hold and wait condition to prevail :
a) A process must be not be holding a resource, but
2) The request and release of resources are waiting for one to be freed, and then request to
___________. acquire it
a) command line statements b) A process must be holding at least one resource
b) interrupts and waiting to acquire additional resources that are
c) system calls being held by other processes
d) special programs c) A process must hold at least one resource and
View Answer not be waiting to acquire additional resources
d) None of these
Answer: c
View Answer
Explanation: None.
Answer: b
3) Multithreaded programs are :
Explanation: None.
a) lesser prone to deadlocks
b) more prone to deadlocks 7) Deadlock prevention is a set of methods :
c) not at all prone to deadlocks a) to ensure that at least one of the necessary
d) None of these conditions cannot hold
View Answer b) to ensure that all of the necessary conditions do
not hold
Answer: b
c) to decide if the requested resources for a process
Explanation: Multiple threads can compete for
have to be given or not
shared resources.
d) to recover from a deadlock
4) For a deadlock to arise, which of the following View Answer
conditions must hold simultaneously ? ( choose all
that apply )
Answer: a Answer: b
Explanation: None. Explanation: None.
8) For non sharable resources like a printer, mutual 12) To ensure no preemption, if a process is holding
exclusion : some resources and requests another resource that
a) must exist cannot be immediately allocated to it :
b) must not exist a) then the process waits for the resources be
c) may exist allocated to it
d) None of these b) the process keeps sending requests until the
View Answer resource is allocated to it
c) the process resumes execution without the
Answer: a resource being allocated to it
Explanation: A printer cannot be simultaneously d) then all resources currently being held are
shared by several processes. preempted
View Answer
9) For sharable resources, mutual exclusion :
a) is required Answer: d
b) is not required Explanation: None.
c) None of these
View Answer 13) One way to ensure that the circular wait
condition never holds is to :
Answer: b a) impose a total ordering of all resource types and
Explanation: They do not require mutually exclusive to determine whether one precedes another in the
access, and hence cannot be involved in a ordering
deadlock. b) to never let a process acquire resources that are
held by other processes
10) To ensure that the hold and wait condition never
c) to let a process wait for only one resource at a
occurs in the system, it must be ensured that :
time
a) whenever a resource is requested by a process, it
d) All of these
is not holding any other resources
View Answer
b) each process must request and be allocated all
its resources before it begins its execution Answer: a
c) a process can request resources only when it has Explanation: None.
none
d) All of these
View Answer Operating System Questions and
Answer: d
Answers – Deadlock Avoidance
Explanation: c – A process may request some This set of 1000+ Operating System MCQs focuses
resources and use them. Before it can can request on “Deadlock Avoidance”
any additional resources, however it must release all
the resources that it is currently allocated. 1) Each request requires that the system consider
the __________, _____________, ____________
11) The disadvantage of a process being allocated to decide whether the current request can be
all its resources before beginning its execution is : satisfied or must wait to avoid a future possible
a) Low CPU utilization deadlock. (choose three)
b) Low resource utilization a) resources currently available
c) Very high resource utilization b) processes that have previously been in the
d) None of these system
View Answer c) resources currently allocated to each process
d) future requests and releases of each process
View Answer
Answer: a, c and d 6) All unsafe states are :
Explanation: None. a) deadlocks
b) not deadlocks
2) Given a priori information about the ________ c) fatal
number of resources of each type that maybe d) None of these
requested for each process, it is possible to View Answer
construct an algorithm that ensures that the system
will never enter a deadlock state. Answer: b
a) minimum Explanation: None.
b) average
c) maximum 7) A system has 12 magnetic tape drives and 3
d) approximate processes : P0, P1, and P2. Process P0 requires 10
View Answer tape drives, P1 requires 4 and P2 requires 9 tape
drives.
Answer: c
Explanation: None. Process
P0
3) A deadlock avoidance algorithm dynamically P1
examines the __________, to ensure that a circular P2
wait condition can never exist.
a) resource allocation state Maximum needs (process-wise : P0 through P2 top
b) system storage state to bottom)
c) operating system 10
d) resources 4
View Answer 9
Answer: c Answer: b
Explanation: None. Explanation: None.
9) The resource allocation graph is not applicable to P3
a resource allocation system : P4
a) with multiple instances of each resource type
b) with a single instance of each resource type Allocation (process-wise : P0 through P4 top to
c) Both a and b bottom)
View Answer ABC
010
Answer: a 200
Explanation: None. 302
211
10) The Banker’s algorithm is _____________ than 002
the resource allocation graph algorithm.
a) less efficient Max (process-wise : P0 through P4 top to bottom)
b) more efficient ABC
c) None of these 753
View Answer 322
902
Answer: a 222
Explanation: None. 433
11) The data structures available in the Banker’s Available
algorithm are : (choose all that apply) ABC
a) Available 332
b) Need The sequence leads the system to :
c) Allocation a) an unsafe state
d) Maximum b) a safe state
e) Minimum c) a protected state
f) All of these d) a deadlock
View Answer View Answer
Answer: a,b,c,d Answer: b
Explanation: None. Explanation: None.
12) The content of the matrix Need is :
a) Allocation – Available
b) Max – Available
c) Max – Allocation
d) Allocation – Max Operating System Questions and
View Answer Answers – Deadlock Detection
Answer: c This set of 1000+ Operating System MCQs focuses
Explanation: None. on “Deadlock Detection”
13) A system with 5 processes P0 through P4 and 1) The wait-for graph is a deadlock detection
three resource types A, B, C has A with 10 algorithm that is applicable when :
instances, B with 5 instances, and C with 7 a) all resources have a single instance
instances. At time t0, the following snapshot has b) all resources have multiple instances
been taken : c) both a and b
View Answer
Process
P0 Answer: a
P1 Explanation: None.
P2
2) An edge from process Pi to Pj in a wait for graph d) None of these
indicates that : View Answer
a) Pi is waiting for Pj to release a resource that Pi
needs Answer: b
b) Pj is waiting for Pi to release a resource that Pj Explanation: None.
needs 7) Every time a request for allocation cannot be
c) Pi is waiting for Pj to leave the system granted immediately, the detection algorithm is
d) Pj is waiting for Pi to leave the system invoked. This will help identify : (choose all that
View Answer apply)
Answer: a a) the set of processes that have been deadlocked
Explanation: None. b) the set of processes in the deadlock queue
c) the specific process that caused the deadlock
3) If the wait for graph contains a cycle : d) All of these
a) then a deadlock does not exist View Answer
b) then a deadlock exists
c) then the system is in a safe state Answer: a and c
d) either b or c Explanation: None.
View Answer 8) A computer system has 6 tape drives, with ‘n’
Answer: b processes competing for them. Each process may
Explanation: None. need 3 tape drives. The maximum value of ‘n’ for
which the system is guaranteed to be deadlock free
4) If deadlocks occur frequently, the detection is :
algorithm must be invoked ________. a) 2
a) rarely b) 3
b) frequently c) 4
c) None of these d) 1
View Answer View Answer
Answer: b Answer: a
Explanation: None. Explanation: None.
5) The disadvantage of invoking the detection 9) A system has 3 processes sharing 4 resources. If
algorithm for every request is : each process needs a maximum of 2 units then,
a) overhead of the detection algorithm due to deadlock :
consumption of memory a) can never occur
b) excessive time consumed in the request to be b) may occur
allocated memory c) has to occur
c) considerable overhead in computation time d) None of these
d) All of these View Answer
View Answer
Answer: a
Answer: c Explanation: None.
Explanation: None.
10) ‘m’ processes share ‘n’ resources of the same
6) A deadlock eventually cripples system throughput type. The maximum need of each process doesn’t
and will cause the CPU utilization to ______. exceed ‘n’ and the sum of all their maximum needs
a) increase is always less than m+n. In this setup, deadlock :
b) drop a) can never occur
c) stay still b) may occur
c) has to occur
d) None of these b) process is interactive or batch
View Answer c) how long the process has computed
d) how much more long before its completion
Answer: a e) how many more resources the process needs
Explanation: None. before its completion
f) how many and what type of resources the process
Operating System Questions and has used
g) how many resources are available in the system
Answers – Deadlock Recovery h) All of these
View Answer
This set of 1000+ Operating System MCQs focuses
on “Deadlock Recovery” and will also be useful for Answer: a, b, c, d, e, f
interview preparations for experienced people. Explanation: None.
1) A deadlock can be broken by : (choose all that 5) Cost factors of process termination include :
apply) (choose all that apply)
a) abort one or more processes to break the circular a) number of resources the deadlock process is
wait holding
b) abort all the process in the system b) CPU utilization at the time of deadlock
c) preempt all resources from all processes c) amount of time a deadlocked process has thus far
d) to preempt some resources from one or more of consumed during its execution
the deadlocked processes d) All of the above
View Answer View Answer
Answer: a and d Answer: a and c
Explanation: None. Explanation: None.
2) The two ways of aborting processes and 6) If we preempt a resource from a process, the
eliminating deadlocks are : (choose all that apply) process cannot continue with its normal execution
a) Abort all deadlocked processes and it must be :
b) Abort all processes a) aborted
c) Abort one process at a time until the deadlock b) rolled back
cycle is eliminated c) terminated
d) All of these d) queued
View Answer View Answer
Answer: a and c Answer: b
Explanation: None. Explanation: None.
3) Those processes should be aborted on 7) To _______ to a safe state, the system needs to
occurrence of a deadlock, the termination of which : keep more information about the states of
a) is more time consuming processes.
b) incurs minimum cost a) abort the process
c) safety is not hampered b) roll back the process
d) All of these c) queue the process
View Answer d) None of these
View Answer
Answer: b
Explanation: None. Answer: b
Explanation: None.
4) The process to be aborted is chosen on the basis
of the following factors : (choose all that apply)
a) priority of the process
8) If the resources are always preempted from the 3. Which one of the following is the address
same process, __________ can occur. generated by CPU?
a) deadlock a) physical address
b) system crash b) absolute address
c) aging c) logical address
d) starvation d) none of the mentioned
View Answer View Answer
Answer: d Answer:c
Explanation: None. Explanation:None.
Answer: c Answer: a
Explanation: None. Explanation: None.
15) Time taken in memory access through PTBR is : b) starting physical address of the segment in
a) extended by a factor of 3 memory
b) extended by a factor of 2 c) segment length
c) slowed by a factor of 3 d) None of these
d) slowed by a factor of 2 View Answer
View Answer
Answer: b
Answer: d Explanation: None.
Explanation: None.
5) The segment limit contains the :
a) starting logical address of the process
Operating System Questions and b) starting physical address of the segment in
Answers – Memory Management memory
c) segment length
– Segmentation d) None of these
This set of 1000+ Operating System MCQs focuses View Answer
on “Memory Management – Segmentation” Answer: c
1) In segmentation, each address is specified by : Explanation: None.
a) a segment number 6) The offset ‘d’ of the logical address must be :
b) an offset a) greater than segment limit
c) a value b) between 0 and segment limit
d) a key c) between 0 and the segment number
View Answer d) greater than the segment number
Answer: a and b View Answer
Explanation: None. Answer: b
2) In paging the user provides only ________, which Explanation: None.
is partitioned by the hardware into ________ and 7) If the offset is legal :
______. a) it is used as a physical memory address itself
a) one address, page number, offset b) it is subtracted from the segment base to produce
b) one offset, page number, address the physical memory address
c) page number, offset, address c) it is added to the segment base to produce the
d) None of these physical memory address
View Answer d) None of these
Answer: a View Answer
Explanation: None. Answer: a
3) Each entry in a segment table has a : Explanation: None.
a) segment base 8) When the entries in the segment tables of two
b) segment peak different processes point to the same physical
c) segment limit location :
d) segment value a) the segments are invalid
View Answer b) the processes get blocked
Answer: a and c c) segments are shared
Explanation: None. d) All of these
View Answer
4) The segment base contains the :
a) starting logical address of the process Answer: c
Explanation: None.
9) The protection bit is 0/1 based on : (choose all Answer: b
that apply) Explanation: None.
a) write only
b) read only
c) read – write Operating System Questions and
d) None of these Answers – Memory Management
View Answer – Segmentation
Answer: b and c This set of 1000+ Operating System MCQs focuses
Explanation: None. on “Memory Management – Segmentation”
10) If there are 32 segments, each of size 1Kb, then 1) In segmentation, each address is specified by :
the logical address should have : a) a segment number
a) 13 bits b) an offset
b) 14 bits c) a value
c) 15 bits d) a key
d) 16 bits View Answer
View Answer
Answer: a and b
Answer: a Explanation: None.
Explanation: To specify a particular segment, 5 bits
are required. To select a particular byte after 2) In paging the user provides only ________, which
selecting a page, 10 more bits are required. Hence is partitioned by the hardware into ________ and
15 bits are required. ______.
a) one address, page number, offset
11) Consider a computer with 8 Mbytes of main b) one offset, page number, address
memory and a 128 K cache. The cache block size is c) page number, offset, address
4 K. It uses a direct mapping scheme for cache d) None of these
management. How many different main memory View Answer
blocks can map onto a given physical cache block ?
a) 2048 Answer: a
b) 256 Explanation: None.
c) 64
d) 8 3) Each entry in a segment table has a :
View Answer a) segment base
b) segment peak
Answer: c c) segment limit
Explanation: None. d) segment value
View Answer
12) A multilevel page table is preferred in
comparison to a single level page table for Answer: a and c
translating virtual address to physical address Explanation: None.
because :
a) it reduces the memory access time to read or 4) The segment base contains the :
write a memory location a) starting logical address of the process
b) it helps to reduce the size of page table needed b) starting physical address of the segment in
to implement the virtual address space of a process memory
c) it is required by the translation look aside buffer c) segment length
d) it helps to reduce the number of page faults in d) None of these
page replacement algorithms View Answer
View Answer
Answer: b d) None of these
Explanation: None. View Answer
Answer : b Answer : a
Explanation: None. Explanation: None.
3) Caching : (choose all that apply) 8) A ________ is a full duplex connection between a
a) holds a copy of the data device driver and a user level process.
b) is fast memory a) bus
c) holds the only copy of the data b) I/O operation
d) holds output for a device c) stream
View Answer d) flow
View Answer
Answer : a and b
Explanation: None. Answer : c
Explanation: None.
4) Spooling : (choose all that apply)
a) holds a copy of the data 9) I/O is a _________ in system performance.
b) is fast memory a) major factor
c) holds the only copy of the data b) minor factor
d) holds output for a device c) does not matter
View Answer d) None of these
View Answer
Answer : a d) dependent on the scheduling
Explanation: None. View Answer
Operating System Questions & 5. In which scheduling certain amount of CPU time
is allocated to each process?
Answers – RTOS a) earliest deadline first scheduling
This section of our 1000+ Operating System MCQs b) proportional share scheduling
focuses on Real Time Operating System. c) equal share scheduling
d) none of the mentioned
1. In real time operating system View Answer
a) all processes have the same priority
b) a task must be serviced by its deadline period Answer:b
c) process scheduling can be done only once Explanation:None.
d) kernel is not required 6. The problem of priority inversion can be solved by
View Answer a) priority inheritance protocol
Answer:b b) priority inversion protocol
Explanation:None. c) both (a) and (b)
d) none of the mentioned
2. Hard real time operating system has ___ jitter View Answer
than a soft real time operating system.
a) less Answer:a
b) more Explanation:None.
c) equal 7. Time duration required for scheduling dispatcher
d) none of the mentioned to stop one process and start another is known as
View Answer a) process latency
Answer:a b) dispatch latency
Explanation:Jitter is the undesired deviation from the c) execution latency
true periodicity. d) interrupt latency
View Answer
3. For real time operating systems, interrupt latency
should be Answer:b
a) minimal Explanation:None.
b) maximum 8. Time required to synchronous switch from the
c) zero context of one thread to the context of another
thread is called
a) threads fly-back time c) 0.94
b) jitter d) 0.80
c) context switch time View Answer
d) none of the mentioned
View Answer Answer : c
Explanation: None.
Answer:c
Explanation:None. 3) In the above question, the priorities of P1 and
P2 :
9. Which one of the following is a real time operating a) remain the same throughout
system? b) keep varying from time to time
a) RTLinux c) None of these
b) VxWorks View Answer
c) windows CE
d) all of the mentioned Answer : b
View Answer Explanation: None.
7. Which routing technique is used in distributed 1) What is not true about distributed system ?
system? a) It is a collection of processor
a) fixed routing b) All processors are synchronized
b) virtual routing c) They do not share memory
c) dynamic routing d) None of these
d) all of the mentioned View Answer
View Answer
Answer : b
Answer:d Explanation: None.
Explanation:None.
2) What are characteristics of processor in
8. In distributed systems, link and site failure is distributed system ?
detected by a) They vary in size and function
a) polling b) They are same in size and function
b) handshaking c) They are manufactured with single purpose
c) token passing d) They are real-time devices
d) none of the mentioned View Answer
View Answer
Answer : a
Answer:b Explanation: None.
Explanation:None.
3) What are characteristics of distributed file
9. The capability of a system to adapt the increased system ? (Choose two)
service load is called a) Its users,servers and storage devices are
a) scalability dispersed
b) tolerance b) Service activity is carried out across the network
c) capacity c) They have single centralized data repository
d) none of the mentioned d) There are multiple dependent storage devices
View Answer View Answer
10. Internet provides _______ for remote login. 4) What is not a major reason for building distributed
a) telnet systems ?
b) http a) Resource sharing
c) ftp b) Computation speedup
d) RPC c) Reliability
View Answer
d) Simplicity b) transfer the computation rather than the data
View Answer c) execute an entire process or parts of it at different
sites
Answer : d d) None of these
Explanation: None. View Answer
5) What are two types of distributed operating Answer : a
system ? (Choose two) Explanation: None.
a) Network Operating system
b) Zone based Operating system 10) What are characteristics of computation
c) Level based Operating system migration ?
d) Distributed Operating system a) transfer data by entire file or immediate portion
View Answer required
b) transfer the computation rather than the data
Answer : a & d c) execute an entire process or parts of it at different
Explanation: None. sites
d) None of these
6) What are characteristic of Network Operating
View Answer
Systems ? (Choose two)
a) Users are aware of multiplicity of machines Answer : b
b) They are transparent Explanation: None.
c) They are simple to use
d) They are not transparent 11) What are characteristics of process migration ?
View Answer a) transfer data by entire file or immediate portion
required
Answer : a & d b) transfer the computation rather than the data
Explanation: None. c) execute an entire process or parts of it at different
sites
7) How are access to resources of various machines
d) None of these
is done ? (Choose two)
View Answer
a) Remote logging using ssh or telnet
b) Remote Desktop Answer : c
c) FTP is not used Explanation: None.
d) Zone are configured for automatic access
View Answer
Operating System Questions &
Answer : a & b
Explanation: None.
Answers – Distributed Operating
System – Network Structure &
8) What are characteristics of Distributed Operating
system ? (Choose two)
Topology
a) Users are not aware of multiplicity of machines This set of 1000+ Operating System MCQs focuses
b) Access is done like local resources on “Distributed Operating System – Network
c) Users are aware of multiplicity of machines Structure & Topology”
d) They have multiple zones to access files
View Answer 1) What are parts of network structure ? (Choose
three)
Answer : a & b a) Workstation
Explanation: None. b) Gateway
c) Laptop
9) What are characteristics of data migration ?
d) Mouse
a) transfer data by entire file or immediate portion
View Answer
required
Answer : a,b & c Answer : a,c & d
Explanation: None. Explanation: None.
2) What are valid network topology ? (Choose three) 7) What are connection strategies used in
a) Multiaccess bus distributed systems ? (Choose three)
b) ring a) Circuit switching
c) star b) Message switching
d) mesh c) Token switching
View Answer d) Packet switching
View Answer
Answer : a,b & c
Explanation: None. Answer : a,b & d
Explanation: None.
3) What are sites in network topology compared ?
(Choose three) 8) How is are collisions avoided in network ?
a) Basic cost (Choose three)
b) Communication cost a) Carrier sense with multiple access (CSMA);
c) Flexibility collision detection (CD)
d) Reliability b) Carrier sense multiple access with collision
View Answer avoidance
c) Token Passing
Answer : a,b & d d) Message slots
Explanation: None. View Answer
4) Which design features of a communication Answer : a,b & d
network are important ? (Choose three) Explanation: None.
a) Naming and name resolution
b) Routing strategies 9) What is common problem found in distributed
c) Connection strategies system ?
d) Minimum number of devices a) Process Synchronization
View Answer b) Communication synchronization
c) Deadlock problem
Answer : a,b & c d) Power failure
Explanation: None. View Answer
5) What are characteristics of Naming and Name Answer : c
resolution ? (Choose two) Explanation: None.
a) Name systems in the network
b) address messages with the process-id
c) virtual circuit
d) message switching
View Answer
Answer : a & b
Explanation: None.