Operating System MCQ Number 01281

Operating System MCQ Set 1

1. A Process Control Block(PCB) does not contain which of the following :
a) Code
b) Stack
c) Bootstrap program
d) Data

Answer

Answer: c [Reason:] None.

2. The number of processes completed per unit time is known as ____
a) Output
b) Throughput
c) Efficiency
d) Capacity

Answer

Answer: b [Reason:] None.

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

Answer: d [Reason:] None.

4. Which of the following is not the state of a process?
a) New
b) Old
c) Waiting
d) Running

Answer

Answer: b [Reason:] None.

5. The Process Control Block is:
a) Process type variable
b) Data Structure
c) A secondary storage section
d) A Block in memory

Answer

Answer: b [Reason:] None.

6. The entry of all the PCBs of the current processes is in:
a) Process Register
b) Program Counter
c) Process Table
d) Process Unit

Answer

Answer: c [Reason:] None.

7. The degree of multi-programming is:
a) the number of processes executed per unit time
b) the number of processes in the ready queue
c) the number of processes in the I/O queue
d) the number of processes in memory

Answer

Answer: d [Reason:] None.

8. A single thread of control allows the process to perform:
a) only one task at a time
b) multiple tasks at a time
c) only two tasks at a time
c) all of the mentioned

Answer

Answer: a [Reason:] None.

9. The objective of multi-programming is to :
a) Have some process running at all times
b) Have multiple programs waiting in a queue ready to run
c) To minimize CPU utilization
d) None of the mentioned

Answer

Answer: a [Reason:] None.

Operating System MCQ Set 2

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

Answer

Answer: c [Reason:] None.

2. A parent process calling _____ system call will be suspended until children processes terminate.
a) wait
b) fork
c) exit
d) exec

Answer

Answer: a [Reason:] None.

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

Answer

Answer: a [Reason:] None.

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

Answer

Answer: d [Reason:] None.

5. In UNIX, each process is identified by its :
a) Process Control Block
b) Device Queue
c) Process Identifier
d) None of the the mentioned

Answer

Answer: c [Reason:] None.

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

Answer

Answer: c [Reason:] None.

7. The child process can :
a) be a duplicate of the parent process
b) never be a duplicate of the parent process
c) cannot have another program loaded into it
d) never have another program loaded into it

Answer

Answer: a [Reason:] None.

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

Answer

Answer: b [Reason:] None.

Operating System MCQ Set 3

1. Remote Procedure Calls are used :
a) for communication between two processes remotely different from each other on the same system
b) for communication between two processes on the same system
c) for communication between two processes on separate systems
d) None of the mentioned

Answer

Answer: c [Reason:] None.

2. To differentiate the many network services a system supports ______ are used.
a) Variables
b) Sockets
c) Ports
d) Service names

Answer

Answer: c [Reason:] None.

3. RPC provides a(an) _____ on the client side, a separate one for each remote procedure.
a) stub
b) identifier
c) name
d) process identifier

Answer

Answer: a [Reason:] None.

4. The stub :
a) transmits the message to the server where the server side stub receives the message and invokes procedure on the server side
b) packs the parameters into a form transmittable over the network
c) locates the port on the server
d) all of the mentioned

Answer

Answer: d [Reason:] None.

5. To resolve the problem of data representation on different systems RPCs define _______
a) machine dependent representation of data
b) machine representation of data
c) machine-independent representation of data
d) none of the mentioned

Answer

Answer: c [Reason:] None.

6. The full form of RMI :
a) Remote Memory Installation
b) Remote Memory Invocation
c) Remote Method Installation
d) Remote Method Invocation

Answer

Answer: d [Reason:] None.

7. The remote method invocation :
a) allows a process to invoke memory on a remote object
b) allows a thread to invoke a method on a remote object
c) allows a thread to invoke memory on a remote object
d) allows a process to invoke a method on a remote object

Answer

Answer: b [Reason:] None.

8. A process that is based on IPC mechanism which executes on different systems and can communicate with other processes using message based communication, is called ________
a) Local Procedure Call
b) Inter Process Communication
c) Remote Procedure Call
d) Remote Machine Invocation

Answer

Answer: c [Reason:] None.

Operating System MCQ Set 4

1. Which of the following do not belong to queues for processes ?
a) Job Queue
b) PCB queue
c) Device Queue
d) Ready Queue

Answer

Answer: b [Reason:] None.

2. When the process issues an I/O request :
a) It is placed in an I/O queue
b) It is placed in a waiting queue
c) It is placed in the ready queue
d) It is placed in the Job queue

Answer

Answer: a [Reason:] None.

3. When a process terminates :
a) It is removed from all queues
b) It is removed from all, but the job queue
c) Its process control block is de-allocated
d) Its process control block is never de-allocated

Answer

Answer: a [Reason:] None.

4. What is a long-term scheduler ?
a) It selects which process has to be brought into the ready queue
b) It selects which process has to be executed next and allocates CPU
c) It selects which process to remove from memory by swapping
d) None of the mentioned

Answer

Answer: a [Reason:] None.

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

Answer

Answer: c [Reason:] None.

6. What is a medium-term scheduler ?
a) It selects which process has to be brought into the ready queue
b) It selects which process has to be executed next and allocates CPU
c) It selects which process to remove from memory by swapping
d) None of the mentioned

Answer

Answer: c [Reason:] None.

7. What is a short-term scheduler ?
a) It selects which process has to be brought into the ready queue
b) It selects which process has to be executed next and allocates CPU
c) It selects which process to remove from memory by swapping
d) None of the mentioned

Answer

Answer: b [Reason:] None.

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

Answer

Answer: c [Reason:] None.

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

Answer

Answer: a [Reason:] None.

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

Answer

Answer: b [Reason:] None.

11. In a multi-programming environment :
a) the processor executes more than one process at a time
b) the programs are developed by more than one person
c) more than one process resides in the memory
d) a single user can execute many programs at the same time

Answer

Answer: c [Reason:] None.

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

Answer

Answer: b [Reason:] None.

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

Answer

Answer: d [Reason:] None.

14. Which of the following need not necessarily be saved on a context switch between processes ?
a) General purpose registers
b) Translation look-aside buffer
c) Program counter
d) All of the mentioned

Answer

Answer: b [Reason:] None.

15. Which of the following does not interrupt a running process ?
a) A device
b) Timer
c) Scheduler process
d) Power failure

Answer

Answer: c [Reason:] None.

Operating System MCQ Set 5

1. The initial program that is run when the computer is powered up is called :
a) boot program
b) bootloader
c) initializer
d) bootstrap program

Answer

Answer: d [Reason:] None.

2. How does the software trigger an interrupt ?
a) Sending signals to CPU through bus
b) Executing a special operation called system call
c) Executing a special program called system program
d) Executing a special program calle interrupt trigger program

Answer

Answer: b [Reason:] None.

3. What is a trap/exception ?
a) hardware generated interrupt caused by an error
b) software generated interrupt caused by an error
c) user generated interrupt caused by an error
d) none of the mentioned

Answer

Answer: b [Reason:] None.

4. What is an ISR ?
a) Information Service Request
b) Interrupt Service Request
c) Interrupt Service Routine
d) Information Service Routine

Answer

Answer: c [Reason:] None.

5. An interrupt vector
a) is an address that is indexed to an interrupt handler
b) is a unique device number that is indexed by an address
c) is a unique identity given to an interrupt
d) none of the mentioned

Answer

Answer: a [Reason:] None.

6. DMA is used for :
a) High speed devices(disks and communications network)
b) Low speed devices
c) Utilizing CPU cycles
d) All of the mentioned

Answer

Answer: a [Reason:] None.

7. In a memory mapped input/output :
a) the CPU uses polling to watch the control bit constantly, looping to see if device is ready
b) the CPU writes one data byte to the data register and sets a bit in control register to show that a byte is available
c) the CPU receives an interrupt when the device is ready for the next byte
d) the CPU runs a user written code and does accordingly

Answer

Answer: b [Reason:] None.

8. In a programmed input/output(PIO) :
a) the CPU uses polling to watch the control bit constantly, looping to see if device is ready
b) the CPU writes one data byte to the data register and sets a bit in control register to show that a byte is available
c) the CPU receives an interrupt when the device is ready for the next byte
d) the CPU runs a user written code and does accordingly

Answer

Answer: a [Reason:] None.

9. In an interrupt driven input/output :
a) the CPU uses polling to watch the control bit constantly, looping to see if device is ready
b) the CPU writes one data byte to the data register and sets a bit in control register to show that a byte is available
c) the CPU receives an interrupt when the device is ready for the next byte
d) the CPU runs a user written code and does accordingly

Answer

Answer: c [Reason:] None.

10. In the layered approach of Operating Systems :
a) Bottom Layer(0) is the User interface
b) Highest Layer(N) is the User interface
c) Bottom Layer(N) is the hardware
d) Highest Layer(N) is the hardware

Answer

Answer: b [Reason:] None.

11. How does the Hardware trigger an interrupt ?
a) Sending signals to CPU through system bus
b) Executing a special program called interrupt program
c) Executing a special program called system program
d) Executing a special operation called system call

Answer

Answer: a [Reason:] None.

12. Which operation is performed by an interrupt handler ?
a) Saving the current state of the system
b) Loading the interrupt handling code and executing it
c) Once done handling, bringing back the system to the original state it was before the interrupt occurred
d) All of the mentioned

Answer

Answer: d [Reason:] None.

ed010d383e1f191bdb025d5985cc03fc?s=120&d=mm&r=g

DistPub Team

Distance Publisher (DistPub.com) provide project writing help from year 2007 and provide writing and editing help to hundreds student every year.