Que- 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- It selects which process to remove from memory by swapping
Que- 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- It selects which process has to be executed next and allocates CPU
Que- 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- The frequency of their execution
Que- 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- block
Que- 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- Ready state
Que- In a multiprogramming 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- more than one process resides in the memory
Que- 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- Ready state
Que- Which process can be affected by other processes executing in the system?
a. cooperating process
b. child process
c. parent process
d. init process
Answer- cooperating process
Que- 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- race condition
Que- 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- mutual exclusion
Que- Which one of the following is a synchronization tool?
a. thread
b. pipe
c. semaphore
d. socket
Answer- semaphore
Que- A semaphore is a shared integer variable
a. that can not drop below zero
b. that can not be more than zero
c. that can not drop below one
d. that can not be more than one
Answer- that can not drop below zero
Que- Mutual exclusion can be provided by the
a. mutex locks
b. binary semaphores
c. both mutex locks and binary semaphores
d. none of the mentioned
Answer- both mutex locks and binary semaphores
Que- 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
Answer- priority inversion
Que- Process synchronization can be done on
a. hardware level
b. software level
c. both hardware and software level
d. none of the mentioned
Answer- both hardware and software level
Que- A monitor is a module that encapsulates
a. shared data structures
b. procedures that operate on shared data structure
c. synchronization between concurrent procedure invocation
d. all of the mentioned
Answer- all of the mentioned
Que- To enable a process to wait within the monitor,
a. a condition variable must be declared as condition
b. condition variables must be used as boolean objects
c. semaphore must be used
d. all of the mentioned
Answer- a condition variable must be declared as condition
Que- 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- overloading the system by creating a lot of sub-processes
Que- A parent process calling _____ system call will be suspended until children processes terminate.
a. wait
b. fork
c. exit
d. exec
Answer- wait
Que- 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- Normally
Que- 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- Uniprogramming, Multiprocessing
Que- 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- Process Identifier
Que- 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- Zero, A nonzero integer
Que- 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- be a duplicate of the parent process
Que- 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- Zombie
Que- Inter process communication :
a. allows processes to communicate and synchronize their actions when using the same address space
b. allows processes to communicate and synchronize their actions without using the same address space
c. allows the processes to only synchronize their actions without communication
d. none of the mentioned
Answer- allows processes to communicate and synchronize their actions without using the same address space
Que- Message passing system allows processes to :
a. communicate with one another without resorting to shared data
b. communicate with one another by resorting to shared data
c. share data
d. name the recipient or sender of the message
Answer- communicate with one another without resorting to shared data
Que- An IPC facility provides at least two operations :
a. write & delete message
b. delete & receive message
c. send & delete message
d. receive & send message
Answer- receive & send message
Que- 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
Answer- can be fixed or variable sized
Que- 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
Answer- communication link
Que- Which of the following are TRUE for direct communication :
a. A communication link can be associated with N number of process(N = max. number of processes supported by system)
b. A communication link can be associated with exactly two processes
c. Exactly N/2 links exist between each pair of processes(N = max. number of processes supported by system)
d. Exactly two link exists between each pair of processes
Answer- A communication link can be associated with exactly two processes
Que- In indirect communication between processes P and Q :
a. there is another process R to handle and pass on the messages between P and Q
b. there is another machine between the two processes to help communication
c. there is a mailbox to help communication between P and Q
d. none of the mentioned
Answer- there is a mailbox to help communication between P and Q
Que- In the non blocking send :
a. the sending process keeps sending until the message is received
b. the sending process sends the message and resumes operation
c. the sending process keeps sending until it receives a message
d. none of the mentioned
Answer- the sending process sends the message and resumes operation
Que- In the Zero capacity queue :
a. the queue can store at least one message
b. the sender blocks until the receiver receives the message
c. the sender keeps sending and the messages don't wait in the queue
d. none of the mentioned
Answer- the sender blocks until the receiver receives the message
Que- The Zero Capacity queue :
a. is referred to as a message system with buffering
b. is referred to as a message system with no buffering
c. is referred to as a link
d. none of the mentioned
Answer- is referred to as a message system with no buffering
Que- Bounded capacity and Unbounded capacity queues are referred to as :
a. Programmed buffering
b. Automatic buffering
c. User defined buffering
d. No buffering
Answer- Automatic buffering
Que- 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- for communication between two processes on separate systems
Que- To differentiate the many network services a system supports ______ are used.
a. Variables
b. Sockets
c. Ports
d. Service names
Answer- Ports
Que- 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- stub
Que- 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- all of the mentioned
Que- 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- machine-independent representation of data
Que- The full form of RMI :
a. Remote Memory Installation
b. Remote Memory Invocation
c. Remote Method Installation
d. Remote Method Invocation
Answer- Remote Method Invocation
Que- 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- allows a thread to invoke a method on a remote object
Que- 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- Remote Procedure Call
Que- 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- bootstrap program
Que- 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- Executing a special operation called system call
Que- 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- software generated interrupt caused by an error
Que- What is an ISR ?
a. Information Service Request
b. Interrupt Service Request
c. Interrupt Service Routine
d. Information Service Routine
Answer- Interrupt Service Routine
Que- 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- is an address that is indexed to an interrupt handler
Que- 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- High speed devices(disks and communications network)
Que- 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- the CPU writes one data byte to the data register and sets a bit in control register to show that a byte is available
Que- 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- the CPU uses polling to watch the control bit constantly, looping to see if device is ready
Que- 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- the CPU receives an interrupt when the device is ready for the next byte
Que- 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- Highest Layer(N) is the User interface