wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

OS Quiz 2 LH18

Total questions: 45

Worksheet time: 30mins

Name
Class
Date
1.

What is the graph used for deadlock identification

a)

resource allocation graph

b)

process allocation graph

c)

thread allocation graph

d)

instance allocation graph

2.

Which of the following condition is required for deadlock to be possible?

a)

mutual exclusion

b)

a process may hold allocated resources while awaiting assignment of other resources

c)

no resource can be forcibly removed from a process holding it

d)

all of the mentioned

3.

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

a)

Mutual Exclusion

b)

Reentrancy

c)

Hold and wait

d)

No pre-emption

4.

If any of the process is waiting for a long time then it is called as

a)

Deadlock

b)

semaphore

c)

starvation

d)

None

5.

If there is an edge from resource to process then we called that edge as

a)

assignment edge

b)

request edge

c)

forward edge

d)

back edge

6.

If there is an edge from process to resource then we called that edge as

a)

assignment edge

b)

request edge

c)

back edge

d)

front edge

7.

A set of process or thread waits for a resource which is held by another waiting process is called

a)

Deadlock

b)

starvation

c)

synchronization

d)

concurrency

8.
Allocating time on the processor to individual processes is known as...
a)
CPU Scheduling
b)
CPU Timing
c)
CPU Clocking
d)
CPU Sorting
9.
Keeping track of the location of processes in memory and allocating space to new processes is known as...
a)
Memory Management
b)
Process Management
c)
Memory Scheduling
d)
Process Scheduling
10.
Which of the following operating systems can you freely modify if you choose?
a)
OS X
b)
iOS
c)
BlackBerry
d)
Linux
11.

Which Scheduling algorithm allocates the

CPU first to the process that requests CPU first?

a)

First Come First serve scheduling

b)

shortest job scheduling

c)

priority scheduling

d)

none of the mentioned

12.

CPU scheduling is the basis of ___________

a)

multiprocessor systems

b)

multiprogramming operating systems

c)

larger memory sized systems

d)

none of the mentioned

13.

consider the 3 processes, P1, P2 and P3 shown in the table

The completion order of the 3 processes under the policies FCFS and RRS (round robin scheduling with CPU quantum of 2 time units) are

a)

FCFS: P1, P2, P3 RR2: P1, P2, P3

b)

FCFS: P1, P3, P2 RR2: P1, P3, P2

c)

FCFS: P1, P2, P3 RR2: P1, P3, P2

d)

FCFS: P1, P3, P2 RR2: P1, P2, P3

14.

Which of the following statements are true? (GATE CS 2010)
I. Shortest remaining time first scheduling may cause starvation
II. Preemptive scheduling may cause starvation
III. Round robin is better than FCFS in terms of response time

a)

I only

b)

I and III only

c)

II and III only

d)

I, II and III

15.

Consider the following statements about process state transitions for a system using preemptive scheduling.
I. A running process can move to ready state.
II. A ready process can move to ready state.
III. A blocked process can move to running state.
IV. A blocked process can move to ready state.

a)

I, II AND III ONLY

b)

II AND III ONLY

c)

I, II AND IV ONLY

d)

I, II, III AND IV ONLY

16.
  1. A solution to the Dining Philosophers Problem which avoids deadlock is GATE1998

a)

ensure that all philosophers pick up the left fork before the right fork

b)

ensure that all philosophers pick up the right fork before the left fork

c)

ensure that one particular philosopher picks up the left fork before the right fork, and that all other philosophers pick up the right fork before the left fork

d)

None of the above

17.
Allocating time on the processor to individual processes is known as...
a)
CPU Scheduling
b)
CPU Timing
c)
CPU Clocking
d)
CPU Sorting
18.
A process is a...
a)
program in execution
b)
program on the hard drive
c)
high level program
d)
low level program 
19.

What do device drivers do?

a)

Allows the OS to communicate with hardware

b)

Drives around the motherboard

c)

Increases the amount of storage

20.
Keeping track of the location of processes in memory and allocating space to new processes is known as...
a)
Memory Management
b)
Process Management
c)
Memory Scheduling
d)
Process Scheduling
21.

Which of the following is not an example of an OS for Smart phone?

a)

UNIX

b)

IOS

c)

Windows Phone 7

d)

Android

22.
What language do operating systems use?
a)
The operators language
b)
Binary Code
c)
Code
d)
XOXO
23.

Which of the following schedules threads?

a)

Virtual Memory

b)

Operating system

c)

CPU

d)

Input

24.

_____ is not a OS services

a)

Accounting

b)

error detection

c)

system call

d)

I/O operations

25.

which of the following types of OS is non-interactive?

a)

Multitasking OS

b)

Multi-user OS

c)

Batch OS

d)

Multiprogramming OS

26.

When we execute a C program, CPU runs in ____ mode.

a)

user

b)

kernel

c)

supervisory

d)

system

27.

A Process waiting to be assigned to a processor is considered to be in _____ state

a)

waiting

b)

ready

c)

terminated

d)

running

28.

A process can be ___________

a)

single threaded

b)

multithreaded

c)

both single threaded and multithreaded

d)

none of the mentioned

29.

A PCB also known as

a)

Task controlling block

b)

memory controlling block

c)

I/O controlling block

d)

device controlling block

30.

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

a)

greater than the time required to create a new process

b)

less than the time required to create a new process

c)

equal to the time required to create a new process

d)

none of the mentioned

31.

Many to one model of threads

a)

map many user level threads to one kernel level threads

b)

map one user level threads to one kernel level threads

c)

map many kernel level threads to one use level threads

d)

All of these

32.

starvation means

a)

Deadlock

b)

indefinite blocking of process

c)

Termination of processes

d)

creation of processes

33.

Type your Full Name

4 lines
34.

Enter your Registration Number

4 lines
35.

Type your Lecture Hall (LH11/LH18)

4 lines
36.

a)

A

b)

B

c)

C

d)

D

37.

a)

I, II, III

b)

II, III, IV

c)

I, III, IV

d)

I, II, IV

38.

a)

A

b)

B

c)

C

d)

D

39.

•Semaphore is a/an _______ to solve the critical section problem.

a)

a) hardware for a system

b)

b) special program for a system

c)

c) integer variable

d)

d) none of the mentioned

40.

•A critical region is

a)

•A. One which is enclosed by a pair of P and V operations on semaphores.

b)

•B. A program segment that has not been proved bug-free.

c)

C. A program segment that often causes unexpected system crashes.

d)

•D. A program segment where shared resources are accessed

41.

•Current value of Semaphore S is 10, then after we perform 6P operations and 7V operations in the sequence? What will be the final value?

a)

11

b)

12

c)

9

d)

23

42.

•The bounded buffer problem is also known as

a)

a. Readers – Writers problem

b)

•b. Dining – Philosophers problem

c)

•c. Producer – Consumer problem

d)

d. None of the mentioned

43.

•To ensure difficulties do not arise in the readers – writers problem, _______ are given exclusive access to the shared object.

a)

•a. readers

b)

•b. writers

c)

•c. readers and writers

d)

d. none of the mentioned

44.

•Name of classical synchronization problem that involves the allocation of limited resources amongst a group of processes in a deadlock free and starvation free manner

a)

•A. Readers – Writers problem

b)

•b. Dining – Philosophers problem

c)

•c. Producer – Consumer problem

d)

d. None of the mentioned

45.

What are the two kinds of semaphores?

a)

mutex & counting

b)

binary & counting

c)

counting & decimal

d)

decimal & binary