CS340 Exam I

Ace your homework & exams now with Quizwiz!

The child process can (Choose two)

a) Be a duplicate of the parent process b) Never be a duplicate of the parent process c) Have another program loaded into it d) Never have another program loaded into it

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

In the layered approach of Operating Systems (Choose two)

a) Bottom Layer(0) is the user interface b) Highest Layer(N) is the user interface c) Bottom Later(0) is the hardware d) Highest Layer(N) is the hardware

A process Control Block (PCB) does not contain which of the following:

a) Code b) Stack c) Heap d) Data e) Program Counter f) Process State g) I/O status information h) Bootstrap program

What is operating system?

a) Collection of program that manages hardware resources b) System service provider to the application programs c) Link to interface the hardware and application programs d) All of the mentioned

What is interprocess communication?

a) Communication withing the process b) Communication between two process c) Communication between two threads of same process d) None of the mentioned

Which facility dynamically adds probes to a running system, both in user processes and in the kernel?

a) DTrace b) DLocate c) DMap d) DAdd

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

In Unix, which system call creates the new process?

a) Fork b) Create c) New d) None of the mentioned

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

A process stack does not contain

a) Function parameters b) Local variables c) Return addresses d) PID of child process

Which of the following need not necessarily be saved on a context switch between processes? (GATE CS 2000)

a) General purpose registers b) Translation look-aside buffer c) Program counter d) All of these

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 these

The objective of multi-programming is to (Choose two)

a) Have some process running at all times b) Have multiple programs waiting in a queue ready to run c) To maximize CPU utilization d) To maximize CPU utilization

DMA is used for (Choose two)

a) High speed devices (disks and communications network) b) Low speed devices c) Saving CPU cycles d) Utilizing CPU cycles

What is an ISR?

a) Information Service Request b) Interrupt Service Request c) Interrupt Service Routine d) Information Service Routine

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 uniquely identity given to an interrupt d) None of these

When a process terminated: (Choose Two)

a) It is removed from all queue 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

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 allocated CPU c) It selects which process to remove from memory by swapping d) None of these

What is a medium-term scheduler?

a) It selects which process to be brought into the ready queue b) It selects which process has to be executed next and allocated CPU c) It selects which process to removed from memory by swapping d) None of these

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

The OS X has

a) Monolithic kernel b) Hybrid kernel c) Microkernel d) Monolithic kernel with modules

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 uses polling to watch the control bit constantly, looping to see if device is ready 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 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 these

The degree of mulit-programming is

a) The number of processes executed per unit time b) The number of process in the ready queue c) The number of processes in the I/O queue d) The number of processes in memory

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

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

By operating system, the resource management can be done via

a) Time division multiplexing b) Space division multiplexing c) Both (a) and (b) d) None of the mentioned

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

In operating system, each process has its own

a) address space and global variables b) open files c) pending alarms, signals and signals handlers d) all of the mentioned

The only state transition that is initiated by the user process itself is

a) block b) wakeup c) dispatch d) None of these

Which of the following state transitions is not possible?

a) blocked to running b) Ready to running c) Blocked to ready d) Running to blocked

The initial program that is run when the computer is powered up is called

a) boot program B) bootloader c) initializer d) Bootstrap program

Which of the following do not belong to queues for processes?

a) job queue b) PCB queue c) Device queue d) Ready queue

Which of the following does not interrupt a running process? (GATE CS 2001)

a) A device b) Timer c) Scheduler process d) Power failure

In UNIX, the return value for the fork system 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 nonezero integer, zero

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

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

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

With ___________________ only one process may execute at a time; meanwhile all other process are waiting for the process. 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

Which of the following is not the state of a process?

a) New b) Old c) Waiting d) Running e) Ready f) Terminated

A process can be terminated due to

a) Normal exit b) Fatal error c) killed by another process d) All of the mentioned

Cascading termination refers to termination of all child processes before the parent terminates

a) Normally b) Abnormally c) Normally or abnormally d) None of these

A single thread of control allows the process to perform

a) Only one task at a time b) Multiple tasks at a time c) All of these

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

The number of processes completed per unit time is known as

a) Output b) Throughput c) Efficiency d) Capacity

Which one of the following error will be handled by the operating system?

a) Power failure b) Lack of paper in printer c) Connection failure in the network d) All of the mentioned

In UNIX, each process is identified by its

a) Process Control Block b) Device Queue c) Process Identifier d) None of these

The entry of all the PCBs of the current processes are in

a) Process register b) Program counter c) Process table d) Process unit

The process control block is

a) Progress type variable b) Data structure c) A secondary storage section d) Process unit

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

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 d) All of these

How does the Hardware 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 called interrupt trigger program

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 called interrupt trigger program

Several processes access and manipulate the same data concurrently and the outcome of the execution depends on the particular order in which the access takes place, is called a(n) _______________

a) Shared memory segments b) Entry section c) Race condition d) Process synchronization

To access the services of operating system, the interface is provided by the

a) System calls b) API c) Library d) Assembly instructions

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 uses polling to watch the control bit constantly, looping to see if device is ready 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

In a memory mapped input/output

a) The CPU uses polling to watch the control but 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 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 main function of the command interpreter is

a) To get and execute the next user-specified command b) To provide the interface between the API and application program c) To handle the files in operating system d) None of the mentioned

The systems which allows only one process execution at a time, are called

a) Uniprogamming systems b) Uniprocessing systems c) unitasking systems d) none of the mentioned

Which one of the following is not a real time operating system?

a) VxWorks b) Windows CE c) RTLinux d) Palm OS

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

Which system call returns the process identifier of a terminated child?

a) wait b) exit c) fork d) get

A parent process calling _________________ system call will be suspended until children processes terminate

a) wait b) fork c) exit d) exec


Related study sets

World History: England: Sparks of Preparation (Unit 7)

View Set

18.10.16. Fizika elektromágneses indukció, generátor, transzformátor

View Set

Eviro. Unit 7 Lesson 3: Surface Water and Groundwater

View Set

Farm & Agribusiness Management CDE

View Set

Maternity Chpt. 5 Sexually Transmitted Infections 5-8

View Set

Criminal Procedure Test 8 note cards

View Set

Principles of Strength and Conditioning 24 questions

View Set

ATI RN Nursing Care of Children Online Practice 2019 B

View Set

CFA Exam Prep Portfolio Management Part 2 January 26th & 28th & 29th

View Set