wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

OS CLASS-TEST 3

Total questions: 60

Worksheet time: 2hrs 0mins

Name
Class
Date
1.

The state of the process when it is finished or done executing.

a)

blocked

b)

waiting

c)

running

d)

terminated

2.

This terminates a process when an error is encountered in an I/O device.

a)

Invalid instruction

b)

Time overrun

c)

I/O failure

d)

Arithmetic error

3.

A process that is assigned to call a 'create process system call' is an example of __________.

a)

user process

b)

background process

c)

system process

d)

foreground process

4.

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

5.

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

a)

fork()

b)

wait()

c)

exit()

d)

atexit()

6.

A Process Control Block (PCB) does not contain which of the following?

a)

heap

b)

stack

c)

text

d)

bootstrap

7.

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

8.

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

a)

New

b)

Old

c)

Waiting

d)

Running

9.

The entry of all the PCBs of the current processes is in __________

a)

Process Register

b)

Program Counter

c)

Process Table

d)

Process Unit

10.

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

11.

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

12.

Which scheduling algorithm allocates the CPU first to the process that requests the CPU first?


a)

first-come, first-served scheduling

b)

shortest job scheduling

c)

priority scheduling

d)

round robin scheduling

13.

In priority scheduling algorithm ____________

a)

CPU is allocated to the process with highest priority

b)

CPU is allocated to the process with lowest priority

c)

Equal priority processes cannot be scheduled

d)

None of the mentioned

14.

The processes which are blocked due to unavailability of an I/O device constitute this queue.

a)

ready queue

b)

job queue

c)

process scheduling queue

d)

device queue

15.

------- is a condition of process waiting for longer duration resulting either resource allocated or non allocated is called as

a)

starvation

b)

deadlock

c)

race condition

d)

none of them

16.

Which module gives control of the CPU to the process selected by the short-term scheduler?

a)

dispatcher

b)

interrupt

c)

scheduler

d)

NONE

17.

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)

EXECUTE queue

d)

DEVICE queue

18.

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

19.

Which algorithm is defined in Time quantum?

a)

shortest job scheduling algorithm

b)

round robin scheduling algorithm

c)

priority scheduling algorithm

d)

multilevel queue scheduling algorithm

20.

Process are classified into different groups in ____________

a)

shortest job scheduling algorithm

b)

round robin scheduling algorithm

c)

priority scheduling algorithm

d)

multilevel queue scheduling algorithm

21.

In multilevel feedback scheduling algorithm ____________

a)

a process can move to a different classified ready queue

b)

classification of ready queue is permanent

c)

processes are not classified into groups

d)

NONE

22.

the process is swapped out of memory and later swapped into memory is done by

a)

short term

b)

medium term

c)

long term

d)

none

23.

switching a process stores state into PCB and restore a state of different process is called as

a)

Dispatching

b)

context switching

c)

demand paging

d)

page fault

24.

The problem with round robin, SJF and STR is what?

a)

They don't take into account priority

b)

They all take too long

c)

Short jobs will not be completed

25.

Which of these is NOT an aim of the CPU scheduler

a)

To maximise CPU time

b)

Process as many jobs as possible

c)

To complete jobs in at least 30 seconds

26.

Which of these is a benefit of FCFS

a)

Simple to implement

b)

It considers priority

c)

Long jobs will get completed eventually

27.

Which algorithm is being described.."Long jobs might never get completed as short processes will always ‘jump the queue"

a)

Round robin

b)

FCFS

c)

STR

28.

If a CPU has the following:

Process A = 3 cycles

Process B = 2 cycles

Process C = 5 cycles


Which would implement 'A' the quickest?

a)

Round robin (2 cycles per timeslice)

b)

FCFS

c)

SJF(PREEMPTIVE)

d)

SJF

29.

A system contains three programs and each requires three tape units for its operation. The minimum number of tape units which the system must have such that deadlocks never arise is

a)

6

b)

7

c)

8

d)

9

30.

Which of the following is not a necessary condition for deadlock?

a)

Mutual Exclusion

b)

Reentrancy

c)

Hold and wait

d)

No pre-emption

31.

In which of the following four necessary conditions for deadlock processes claim exclusive control of the resources they require?

a)

no preemption

b)

mutual exclusion

c)

circular wait

d)

hold and wait

32.

A total of 9 units of a resource type available, and given the safe state shown below, which of the following sequence will be a safe state?

Process Used Max

A 2 7

B 1 6

C 2 5

D 1 4

a)

(P4, P1, P3, P2)

b)

(P4, P2, P1, P3)

c)

(P4, P2, P3, P1)

d)

(P3, P1, P2, P4)

33.

Consider a system with 3 processes that share 4 instances of the same resource type. Each process can request a maximum of K instances. Resource instances can be requested and released only one at a time. The largest value of K that will always avoid deadlock is _______ .

a)

1

b)

2

c)

3

d)

4

34.

Which of the following is NOT a valid deadlock prevention scheme?

a)

Release all resources before requesting a new resource

b)

Number the resources uniquely and never request a lower numbered resource than the last one requested

c)

Never request a resource after releasing any resource

d)

Request and all required resources be allocated before execution.

35.

At a particular time of computation, the value of a counting semaphore is 10. Then 12 P operations and “x” V operations were performed on this semaphore. If the final value of semaphore is 7, x will be:

a)

8

b)

9

c)

10

d)

11

36.

On a system using non-preemptive scheduling, processes with expected run times of 5, 18, 9 and 12 are in the ready queue. In what order should they be run to minimize wait time?

a)

5, 12, 9, 18

b)

5, 9, 12, 18

c)

12, 18, 9, 5

d)

9, 12, 18, 5

37.

What is the name of the technique in which the operating system of a computer executes several programs concurrently by switching back and forth between them?

a)

Partitioning

b)

Multi-tasking

c)

Windowing

d)

Paging

38.

A system is in the safe state if ____________

a)

the system can allocate resources to each process in some order and still avoid a deadlock

b)

there exist a safe sequence

c)

all of the mentioned

d)

none of the mentioned

39.

Which one of the following is the deadlock avoidance algorithm?

a)

banker’s algorithm

b)

round-robin algorithm

c)

elevator algorithm

d)

karn’s algorithm

40.

A problem encountered in multitasking when a process is perpetually denied necessary resources is called ____________

a)

deadlock

b)

starvation

c)

inversion

d)

aging

41.

Which one of the following is a visual ( mathematical ) way to determine the deadlock occurrence?

a)

resource allocation graph

b)

starvation graph

c)

inversion graph

d)

none of the mentioned

42.

For Mutual exclusion to prevail in the system :

a)

at least one resource must be held in a non sharable mode

b)

the processor must be a uniprocessor rather than a multiprocessor

c)

there must be at least one resource in a sharable mode

d)

All of these

43.

Deadlock prevention is a set of methods :

a)

to ensure that at least one of the necessary conditions cannot hold

b)

to ensure that all of the necessary conditions do not hold

c)

to decide if the requested resources for a process have to be given or not

d)

to recover from a deadlock

44.

To ensure that the hold and wait condition never occurs in the system, it must be ensured that :

a)

whenever a resource is requested by a process, it is not holding any other resources

b)

each process must request and be allocated all its resources before it begins its execution

c)

a process can request resources only when it has none

d)

All of these

45.

A process said to be in ___________ state if it was waiting for an event that will never occur.

a)

Safe

b)

Unsafe

c)

Starvation

d)

Deadlock

46.

A set of resources' allocations such that the system can allocate resources to each process in some order, and still avoid a deadlock is called ________.

a)

Unsafe state

b)

Safe state

c)

Starvation

d)

Greedy Allocation

47.

Situations where two or more processes are reading or writing some shared data and the final results depends on the order of usage of the shared data, are called ________.

a)

Race conditions

b)

Critical section

c)

Mutual exclusion

d)

Dead locks

48.

The state of a process after it encounters an I/O instruction is __________.

a)

Ready

b)

Blocked/Waiting

c)

Idle

d)

Running

49.

The Banker's algorithm is used

a)

to avoid deadlock in operating systems

b)

to detect deadlock in operating systems

c)

to prevent a deadlocked state

d)

none of the above

50.

Which of the following is the drawback of the One to One Model?

a)

decreased concurrency provided by this model

b)

creating a user thread requires creating the corresponding kernel thread

c)

creating so many threads at once can crash the system

d)

increased concurrency provided by this model

51.

The time required to create a new thread in an existing process is _____

a)

equal to the time required to create a new process

b)

greater than the time required to create a new process

c)

less than the time required to create a new process

d)

none of the mentioned

52.

Which of the following conditions must be satisfied to solve the critical section problem?

a)

Mutual Exclusion

b)

Progress

c)

critical section

d)

Bounded Waiting

53.

Which of the following is advantages about thread?

a)

kernel is single threaded

b)

Threads minimize the context switching time

c)

Use of threads provides concurrency within a process

d)

doesn't affect the concurrency

54.

The register context and stacks of a thread are deallocated when the thread?

a)

blocks

b)

terminates

c)

spawns

d)

unblocks

55.

Which one of the following is not a valid state of a thread?

a)

parsing

b)

running

c)

ready

d)

blocked

56.

A deadlock free solution to the dining philosophers problem ____________

a)

necessarily eliminates the possibility of starvation

b)

does not necessarily eliminate the possibility of starvation

c)

eliminates any possibility of any kind of problem further

d)

none of the mentioned

57.

The bounded buffer problem is also known as (a)  

58.
The process control block is
a)
process type variable
b)
data structure
c)
A secondry storge section
d)
A block in memory
59.
The traditional approach of a single thread of execution per process, in which the concept of a thread is not recognized, is known as ____________
a)
task
b)
resource
c)
single-threaded approach
d)
lightweight process
60.
A _________ is a single execution path with an execution stack, processor state, and scheduling information.
a)
domain
b)
strand
c)
thread
d)
message