wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

operating system rev.

Total questions: 80

Worksheet time: 40mins

Name
Class
Date
1.

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

Correct Answers

Your Answers

PREVNEXT

2.

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

3.

In which scheduling policies, context switching never takes place

a)

FCFS

b)

round robin

c)

Shortest job first

d)

Pre-empitive

4.

Which of the following state transition is possible?

a)

Blocked to Running

b)

Ready to Running

c)

Blocked to Ready

d)

Running to Blocked

Correct Answers

Your Answers

PREVNEXT

5.

Scheduling is done so as to :

a)

increase CPU utilization

b)

decrease CPU utilization

c)

keep the CPU more idle

d)

None of these

6.

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 can not be scheduled

d)

none of the mentioned

7.

Match the following:

List – I

a. Multilevel feedback queue

b. FCFS

c. Shortest process next

d. Round robin scheduling

List – II

i. Time-slicing

ii. Criteria to move processes between queues

iii. Batch processing

iv. Exponential smoothing

a)

a-i, b-iii, c-ii, d-iv

b)

a-iv, b-iii, c-ii, d-i

c)

a-iii, b-i, c-iv, d-i

d)

a-ii, b-iii, c-iv, d-i

8.

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

9.

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

a)

System calls

b)

API

c)

Library

d)

Assembly instructions

10.

Under multiprogramming, turnaround time for short jobs is usually ________ and that for long jobs is slightly ___________.

a)

Lengthened; Shortened

b)

Shortened; Lengthened

c)

Shortened; Shortened

d)

Shortened; Unchanged

11.

Swap space is allocated _________

a)

as a chunk of disk

b)

separate from a file system

c)

into a file system

d)

all of the mentioned

12.

Another solution to the problem of external fragmentation problem is to ____________

a)

permit the logical address space of a process to be noncontiguous

b)

permit smaller processes to be allocated memory at last

c)

permit larger processes to be allocated memory at last

d)

all of the mentioned

13.

If relocation is static and is done at assembly or load time, compaction _________

a)

cannot be done

b)

must be done

c)

must not be done

d)

can be done

14.

__________ is generally faster than _________ and _________

a)

first fit, best fit, worst fit

b)

best fit, first fit, worst fit

c)

worst fit, best fit, first fit

d)

none of the mentioned

15.

The major part of swap time is _______ time.

a)

waiting

b)

transfer

c)

execution

d)

none of the mentioned

16.

Swapping _______ be done when a process has pending I/O, or has to execute I/O operations only into operating system buffers.

a)

must

b)

can

c)

must never

d)

maybe

17.

The size of a process is limited to the size of ________

a)

physical memory

b)

external storage

c)

secondary storage

d)

none of the mentioned

18.

The base register is also known as the ____________

a)

basic register

b)

regular register

c)

relocation register

d)

delocation register

19.

If the process can be moved during its execution from one memory segment to another, then binding must be ____________

a)

delayed until run time

b)

preponed to compile time

c)

preponed to load time

d)

none of the mentioned

20.

Program always deals with ____________

a)

logical address

b)

absolute address

c)

physical address

d)

relative address

21.

The address of a page table in memory is pointed by __________

a)

stack pointer

b)

page table base register

c)

page register

d)

program counter

22.

The run time mapping from virtual to physical addresses is done by a hardware device called the ___________

a)

Virtual to physical mapper

b)

Memory management unit

c)

Memory mapping unit

d)

None of the mentioned

23.

Bounded waiting implies that there exists a bound on the number of times a process is allowed to enter its critical section ___________

a)

after a process has made a request to enter its critical section and before the request is granted

b)

when another process is in its critical section

c)

before a process has made a request to enter its critical section

d)

none of the mentioned

24.

In fixed size partition, the degree of multiprogramming is bounded by ___________

a)

the number of partitions

b)

the CPU utilization

c)

the memory size

d)

all of the mentioned

25.

A minimum of _____ variable(s) is/are required to be shared between processes to solve the critical section problem.

a)

one

b)

two

c)

three

d)

four

26.

Mutual exclusion implies that ____________

a)

if a process is executing in its critical section, then no other process must be executing in their critical sections

b)

if a process is executing in its critical section, then other processes must be executing in their critical sections

c)

if a process is executing in its critical section, then all the resources of the system must be blocked until it finishes execution

d)

none of the mentioned

27.

The segment of code in which the process may change common variables, update tables, write into files is known as ____________

a)

program

b)

critical section

c)

non – critical section

d)

synchronizing

28.

A situation where several processes access and manipulate the same data concurrently and the outcome of the execution depends on the particular order in which access takes place is called ____________

a)

data consistency

b)

race condition

c)

aging

d)

starvation

29.

Concurrent access to shared data may result in ____________

a)

data consistency

b)

data insecurity

c)

data inconsistency

d)

none of the mentioned

30.

The signal operation of the semaphore basically works on the basic _______ system call.

a)

continue()

b)

wakeup()

c)

getup()

d)

start()

31.

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

a)

hardware for a system

b)

special program for a system

c)

integer variable

d)

none of the mentioned

32.

The wait operation of the semaphore basically works on the basic _______ system call.

a)

stop()

b)

block()

c)

hold()

d)

wait()

33.

What are Spinlocks?

a)

CPU cycles wasting locks over critical sections of programs

b)

Locks that avoid time wastage in context switches

c)

Locks that work better on multiprocessor systems

d)

All of the mentioned

34.

What are the two atomic operations permissible on semaphores?

a)

wait

b)

stop

c)

hold

d)

none of the mentioned

35.

For a Hold and wait condition to prevail _________

a)

A process must be not be holding a resource, but waiting for one to be freed, and then request to acquire it

b)

A process must be holding at least one resource and waiting to acquire additional resources that are being held by other processes

c)

A process must hold at least one resource and not be waiting to acquire additional resources

d)

None of the mentioned

36.

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

37.

For non sharable resources like a printer, mutual exclusion ___________

a)

must exist

b)

must not exist

c)

may exist

d)

none of the mentioned

38.

For sharable resources, mutual exclusion __________

a)

is required

b)

is not required

c)

may be or may not be required

d)

none of the mentioned

39.

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

40.

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

41.

the request and release of resources are _______

a)

command line statements

b)

interrupts

c)

system calls

d)

special programs

42.

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

a)

deadlock

b)

starvation

c)

inversion

d)

aging

43.

For an effective operating system, when to check for deadlock?

a)

every time a resource request is made

b)

at fixed time intervals

c)

every time a resource request is made at fixed time intervals

d)

none of the mentioned

44.

The circular wait condition can be prevented by ___________

a)

defining a linear ordering of resource types

b)

using thread

c)

using pipes

d)

all of the mentioned

45.

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

46.

What is operating system?

a)

collection of programs 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

47.

In Unix, Which system call creates the new process?

a)

fork

b)

create

c)

new

d)

none of the mentioned

48.

Process is

a)

program in High level language kept on disk

b)

contents of main memory

c)

a program in execution

d)

a job in secondary memory

49.

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

a)

new

b)

old

c)

Waiting

d)

Terminated

50.

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

51.

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

52.

A thread is also called :

a)

Light Weight Process(LWP)

b)

Heavy Weight Process(HWP)

c)

process

d)

None of these

53.

The model in which one kernel thread is mapped to many user-level threads is called :

a)

Many to One model

b)

One to Many model

c)

Many to Many model

d)

One to One model

54.

The One to One model allows :

a)

increased concurrency

b)

decreased concurrency

c)

increased or decreased concurrency

d)

concurrency equivalent to other models

55.

Time quantum is defined in:

a)

shortest job scheduling algorithm

b)

round robin scheduling algorithm

c)

priority scheduling algorithm

d)

multilevel queue scheduling algorithm

56.

 

Consider the following table of arrival time and burst time for three processes P0, P1 and P2.

Process Arrival time Burst Time

P0 0 ms 9 ms

P1 1 ms 4 ms

P2 2 ms 9 ms

a)

5.0 ms

b)

4.33 ms

c)

6.33 ms

d)

7 ms

57.

Consider the following set of processes, the length of the CPU burst time given in milliseconds. Assuming the below process being scheduled with the SJF scheduling algorithm.

Process: Burst time

P1: 6

P2: 8

P3: 7

P4: 3

a)

The waiting time for process P1 is 3ms

b)

The waiting time for process P1 is 0ms

c)

The waiting time for process P1 is 16ms

d)

The waiting time for process P1 is 9ms

58.

Using Priority Scheduling algorithm, find the average waiting time for the following set of processes given with their priorities in the order: Process : Burst Time : Priority respectively .

P1 : 10 : 3 ,

P2 : 1 : 1 ,

P3 : 2 : 4 ,

P4 : 1 : 5 ,

P5 : 5 : 2.

a)

8 milliseconds

b)

8.2 milliseconds

c)

7.75 milliseconds

d)

3 milliseconds

59.

Which of the following is a criterion to evaluate a scheduling algorithm?

a)

CPU Utilization: Keep CPU utilization as high as possible

b)

Throughput: number of processes completed per unit time

c)

Waiting Time: Amount of time spent ready to run but not running

d)

All of the above

60.

The operating system is responsible for the following activity in connection with disk management.

a)

Free-space management

b)

Storage allocation

c)

Disk scheduling

d)

All of the above

61.

 

In a time sharing operating system, when the time slot given to a process is completed, the process goes from running state to the______________.

a)

Blocked state.

b)

Ready state.

c)

Terminated state.

d)

Suspended state.

62.

Shortest Job First executes first the job

a)

that first entered the queue

b)

that has been in the queue for the longest

c)

with the least processor needs

d)

that last entered the queue

63.

Which of the following does not interrupt an running process

a)

A device

b)

Timer

c)

Scheduler Process

d)

Power failure

64.

Consider the following set of processes, with the arrival times and the CPU-burst times given in milliseconds

Process : Arrival Time : Burst Time

P1 : 0 : 5

P2 : 1 : 3

P3 : 2 : 3

P4 : 4 : 1

What is the average turnaround time for these processes with the preemptive shortest remaining processing time first (SRPT) algorithm ?

a)

5.50

b)

5.75

c)

6.00

d)

6.25

65.

Which of the following process scheduling algorithm may lead to starvation

a)

FIFO

b)

Round Robin

c)

Shortest Job Next

d)

None of the above

66.

CPU scheduling is the basis of ___________

a)

multiprocessor systems

b)

multiprogramming operating systems

c)

larger memory sized systems

d)

none of the mentioned

67.

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

68.

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

69.

When a process is in a “Blocked” state waiting for some I/O service. When the service is completed, it goes to the _______

a)

Terminated state

b)

Suspended state

c)

Running state

d)

Ready state

70.

The FCFS algorithm is particularly troublesome for ___________

a)

time sharing systems

b)

multiprogramming systems

c)

multiprocessor systems

d)

operating systems

71.

For real time operating systems, interrupt latency should be ____________

a)

minimal

b)

maximum

c)

zero

d)

dependent on the scheduling

72.

The context of a process in the PCB of a process does not contain ______

a)

the value of the CPU registers

b)

memory-management information

c)

the process state

d)

context switch time

73.

In operating system, each process has its own __________

a)

open files

b)

pending alarms, signals, and signal handlers

c)

address space and global variables

d)

all of the mentioned

74.

The priority of a process will ______________ if the scheduler assigns it a static priority.

a)

change

b)

remain unchanged

c)

depends on the operating system

d)

none of the mentioned

75.

in operating system, which of the following is/are CPU scheduling algorithms?

a)

priority

b)

Round Robin

c)

shortest job first

d)

all of mentioned

76.

The operating system keeps a small table containing information about all open files called ________

a)

system table

b)

open-file table

c)

file table

d)

directory table

77.

What will happen 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

78.

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

79.

What is the main function of the command interpreter?

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

80.

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

a)

Job Queue

b)

PCB Queue

c)

Device Queue

d)

Ready Queue