New Study Sheet

Ace your homework & exams now with Quizwiz!

Question: 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

All of the mentioned

Question: Bounded capacity and Unbounded capacity queues are referred to as: A) Programmed buffering B) Automatic buffering C) User defined buffering D) No buffering

Automatic buffering

Question: A Process Control Block(PCB) does not contain which of the following: A) Code B) Stack C) Bootstrap program D) Data

Bootstrap program

Question: The two steps of a process execution are: A) I/O & OS Burst B) CPU & I/O Burst C) Memory & I/O Burst D) OS & Memory Burst

CPU & I/O Burst

Question: The Process Control Block is: A) Process type variable B) Data Structure C) A secondary storage section D) A Block in memory

Data Structure

Question: 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

Executing a special operation called system call

Question: The objective of multiprogramming 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

Have some process running at all times

Question: 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

High speed devices(disks and communications network)

Question: 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

Highest Layer(N) is the User interface

Question: 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

It is placed in an I/O queue

Question: 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

It is removed from all queues

Question: 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

It selects which process has to be brought into the ready queue

Question: 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

It selects which process has to be executed next and allocates CPU

Question: 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

It selects which process to remove from memory by swapping

Question: 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

Normally

Question: Which of the following is not the state of a process? A) New B) Old C) Waiting D) Running

Old

Question: Which of the following do not belong to queues for processes? A) Job Queue B) PCB queue C) Device Queue D) Ready Queue

PCB queue

Question: A process stack does not contain: A) Function parameters B) Local variables C) Return addresses D) PID of child process

PID of child process

Question: To differentiate the many network services a system supports --?-- are used. A) Variables B) Sockets C) Ports D) Service names

Ports

Question: In UNIX each process is identified by its: A) Process Control Block B) Device Queue C) Process Identifier D) None of the the mentioned

Process Identifier

Question: The entry of all the PCBs of the current processes is in: A) Process Register B) Program Counter C) Process Table D) Process Unit

Process Table

Question: 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

Program counter

Question: 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

Ready state

Question: Suppose that a process is in \u201cBlocked\u201d 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

Ready state

Question: 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

Remote Procedure Call

Question: Which of the following does not interrupt a running process? A) A device B) Timer C) Scheduler process D) Power failure

Scheduler process

Question: 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

Sending signals to CPU through system bus

Question: To access the services of operating system, the interface is provided by the A) System calls B) API C) Library D) Assembly instructions

System calls

Question: 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

The frequency of their execution

Question: The number of processes completed per unit time is known as: A) Output B) Throughput C) Efficiency D) Capacity

Throughput

Question: Which of the following need not necessarily be saved on a context switch between processes? A) General purpose registers B) Translation lookaside buffer C) Program counter D) All of the mentioned

Translation lookaside buffer

Question: In the following cases non \u2013 preemptive scheduling occurs: A) When a process switches from the running state to the ready state B) When a process goes from the running state to the waiting state C) When a process switches from the waiting state to the ready state D) All of the mentioned

When a process goes from the running state to the waiting state

Question: 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

Zero A nonzero integer

Question: 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

Zombie

Question: 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

a condition variable must be declared as condition

Question: A process can be terminated due to A) normal exit B) fatal error C) killed by another process D) all of the mentioned

all of the mentioned

Question: In operating system, each process has its own A) address space and global variables B) open files C) pending alarms, signals and signal handlers D) all of the mentioned

all of the mentioned

Question: The stub provided by an RPC: 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

all of the mentioned

Question: The switching of the CPU from one process or thread to another is called: A) process switch B) task switch C) context switch D) all of the mentioned

all of the mentioned

Question: Which one of the following error will be handle by the operating system? A) power failure B) lack of paper in printer C) connection failure in the network D) all of the mentioned

all of the mentioned

Question: 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

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

Question: 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

be a duplicate of the parent process

Question: The only state transition that is initiated by the user process itself is: A) block B) wakeup C) dispatch D) none of the mentioned

block

Question: The initial program that is run when the computer is powered up is called: A) boot program B) bootloader C) initializer D) bootstrap program

bootstrap program

Question: Process synchronization can be done on: A) hardware level B) software level C) both hardware and software level D) none of the mentioned

both hardware and software level

Question: 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

both mutex locks and binary semaphores

Question: By operating system, the resource management can be done via A) time division multiplexing B) space division multiplexing C) both time and space division multiplexing D) none of the mentioned

both time and space division multiplexing

Question: 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

can be fixed or variable sized

Question: 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

communicate with one another without resorting to shared data

Question: 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

communication between two process

Question: 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

context switch time

Question: Which process can be affected by other processes executing in the system? A) cooperating process B) child process C) parent process D) init process

cooperating process

Question: In priority scheduling algorithm when a process arrives at the ready queue its priority is compared with the priority of: A) all process B) currently running process C) parent process D) init process

currently running process

Question: Scheduling is done so as to: A) increase the turnaround time B) decrease the turnaround time C) keep the turnaround time same D) there is no relation between scheduling and turnaround time

decrease the turnaround time

Question: Scheduling is done so as to: increase the waiting time keep the waiting time the same decrease the waiting time none of the mentioned

decrease the waiting time

Question: Each physical device attached to an MS-DOS system is described in a special file called a(n) A) interrupt vector B) FAT C) block routine D) device driver

device driver

Question: Which module gives control of the CPU to the process selected by the short-term scheduler? A) dispatcher B) interrupt C) scheduler D) none of the mentioned

dispatcher

Question: A set of processes is deadlock if: A) each process is blocked and will remain so forever B) each process is terminated C) all processes are trying to kill each other D) none of the mentioned

each process is blocked and will remain so forever

Question: 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

for communication between two processes on separate systems

Question: In Unix, Which system call creates the new process? A) fork B) create C) new D) none of the mentioned

fork

Question: Scheduling is done so as to: A) increase CPU utilization B) decrease CPU utilization C) keep the CPU more idle D) None of the mentioned

increase CPU utilization

Question: Scheduling is done so as to: A) increase the throughput B) decrease the throughput C) increase the duration of a specific amount of work D) None of the mentioned

increase the throughput

Question: 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

is an address that is indexed to an interrupt handler

Question: 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

is referred to as a message system with no buffering

Question: Which one of the following is not true? A) kernel is the program that constitutes the central core of the operating system B) kernel is the first part of operating system to load into memory during booting C) kernel is made of various modules which can not be loaded in running operating system D) kernel remains in the memory during the entire computer session

kernel is made of various modules which can not be loaded in running operating system

Question: If a process fails, most operating system write the error information to a A) log file B) another running process C) new file D) none of the mentioned

log file

Question: 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 B) none of the mentioned

machine-independent representation of data

Question: 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

many very short CPU bursts

Question: 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

more than one process resides in the memory

Question: CPU scheduling is the basis of: A) multiprocessor systems B) multiprogramming operating systems C) larger memory sized systems D) none of the mentioned

multiprogramming operating systems

Question: 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

mutual exclusion

Question: 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 D) all of the mentioned

only one task at a time

Question: Restricting the child process to a subset of the parent\u2019s 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

overloading the system by creating a lot of sub-processes

Question: 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

priority inversion

Question: 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

race condition

Question: 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

ready queue

Question: A process is selected from the --?-- queue by the --?-- scheduler to be executed. A) blocked short term B) wait long term C) ready short term D) ready long term

ready short term

Question: An IPC facility provides at least two operations: A) write & delete message B) delete & receive message C) send & delete message D) receive & send message

receive & send message

Question: Operating system routines that directly support application programs as they run are generally A) resident B) transient C) resilient D) dynamic

resident

Question: Time quantum is defined in: A) shortest job scheduling algorithm B) round robin scheduling algorithm C) priority scheduling algorithm D) multilevel queue scheduling algorithm

round robin scheduling algorithm

Question: Which one of the following is a synchronization tool? A) thread B) pipe C) semaphore D) socket

semaphore

Question: 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

software generated interrupt caused by an error

Question: RPC provides a(an) --?-- on the client side a separate one for each remote procedure. A) stub B) identifier C) name D) process identifier

stub

Question: 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

that can not drop below zero

Question: 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

the CPU receives an interrupt when the device is ready for the next byte

Question: 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

the CPU uses polling to watch the control bit constantly looping to see if device is ready

Question: 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

the CPU writes one data byte to the data register and sets a bit in control register to show that a byte is available

Question: 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

the current activity of the process

Question: The degree of multiprogramming 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

the number of processes in memory

Question: 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\u2019t wait in the queue D) none of the mentioned

the sender blocks until the receiver receives the message

Question: 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

the sending process sends the message and resumes operation

Question: Dispatch latency is: A) the speed of dispatching a process from running to the ready state B) the time of dispatching a process from running to ready state and keeping the CPU idle C) the time to stop one process and start running another one D) none of the mentioned

the time to stop one process and start running another one

Question: 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

the total time from the completion till the submission of a process

Question: 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

the total time spent in the ready queue

Question: 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 the mentioned

the total time taken from the submission time till the first response is produced

Question: The interval from the time of submission of a process to the time of completion is termed as: A) waiting time B) turnaround time C) response time D) throughput

turnaround time

Question: Which one of the following can not be scheduled by the kernel? A) kernel level thread B) user level thread C) process D) none of the mentioned

user level thread

Question: A parent process calling --?-- system call will be suspended until children processes terminate. A) wait B) fork C) exit D) exec

wait

Question: Which system call returns the process identifier of a terminated child? A) wait B) exit C) fork D) get

wait

Question: What is the ready state of a process? A) when process is scheduled to run after some execution B) when process is unable to run until some task has been completed C) when process is using the CPU D) none of the mentioned

when process is scheduled to run after some execution


Related study sets

Cell Overview Review worksheet questions

View Set

Leadership Exam 1 Sherpath with all answer choices

View Set

CH4: Adjustments, Financial Statements and Financial Results

View Set

Marketing Ch.1: An Overview of Marketing

View Set