wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Operating Systems

Total questions: 94

Worksheet time: 47mins

Name
Class
Date
1.

When a device needs the attention of the processor, the device sends a(n) _____ signal to the processor.

a)

calling

b)

halt

c)

interrupt

d)

trap

2.

____ allows the device controller to transfer data to or from the device buffer  and main memory, without any intervention from the CPU.

a)

Direct memory access

b)

Random memory access

c)

Non-uniform memory access

d)

Sequential memory access

3.

____ can assist in ensuring that no user application controls the computer system indefinitely.

a)

Device controller

b)

Register

c)

Timer

d)

BIOS

4.

____ stores the location of the next instruction for CPU.

a)

Instruction register

b)

Address register

c)

Program counter

d)

Interrupt vector

5.

Which storage device is usually organized into level 1, level 2, and level 3 ?

a)

device buffers

b)

cache

c)

main memory

d)

registers

6.

The difference between multitasking and multi-programming:

a)

In multitasking system, the CPU doesn't work on the next process unless the current one is terminated.

b)

In multi-programming system, the CPU doesn't work on the next process unless the current one is terminated.

c)

In multitasking system, the CPU works on a process for a specific interval and then moves to another process.

d)

In multi-programming system, the CPU works on a process for a specific interval and then moves to another process.

7.

The core part of the operating system that is running at all time on a computer is called ___.

a)

trap

b)

bootstrap

c)

kernel

d)

register

8.

Which of the following statements is considered false?

a)

Privilege instructions cannot be attempted in user mode.

b)

Interrupts are handled in kernel mode.

c)

Dual mode (user mode and kernel mode) can prevent a user application from wiping out the operating system.

d)

Control is given to a user application when the system is in user mode.

9.

The main challenges in cache management are:

a)

reliability and volatility

b)

speed and power consumption

c)

compatibility and flexibility

d)

cache size and replacement policy

10.

Operating systems for ____ need to minimize power consumption.

a)

desktop computer

b)

mobile computer

c)

embedded computers

d)

mainframe

11.

Which of the following is NOT one of the mechanism for inter-process communication?

a)

message passing

b)

all of these

c)

registry

d)

shared memory

12.

The major difficulty in designing a layered operating system approach is ____.

a)

making sure each layer is easily converted to modules

b)

appropriately defining the various layers

c)

debugging a particular layer

d)

making sure that each layer hides certain data structures, hardware, and operations from higher-level layers

13.

The ____ combines the object files to form an executable file.

a)

compiler

b)

linker

c)

loader

d)

debugger

14.

In some systems where there are multiple command line interpreters, the interpreters are referred to as ____.

a)

script

b)

GUI

c)

batch

d)

shells

15.

_____ provide(s) an interface to the services provided by an operating system.

a)

Shared memory

b)

Simulators

c)

System calls

d)

Communication

16.

Instead of doing system calls directly, application developers use a(n) ____ which will invoke the appropriate system call.

a)

Application programming interface

b)

Application binary interface

c)

Graphical interface

d)

Command-line interface

17.

Program counter _____

a)

counts the number of instructions that the CPU has completed.

b)

holds the location of next instruction for CPU.

c)

counts the number of instructions for a program.

d)

holds the current instruction the CPU is executing.

18.

Which of the following statements is considered TRUE?

a)

Interrupts are handled in user mode.

b)

User applications are executed in kernel mode only.

c)

Privilege instructions are executed in user mode.

d)

Some privilege instructions may cause harm

19.

Microkernels mainly use _____ for communication.

a)

synchronization

b)

message passing

c)

virtualization

d)

shared memory

20.

Which operating system structure have no structure at all?

a)

Micro-kernel

b)

Monolithic

c)

Layered

d)

Loadable modules

21.

Which of the following storage device is non-volatile?

a)

main memory

b)

solid state drive

c)

registers

d)

cache

22.

A message-passing model is ____.

a)

a network protocol, and does not apply to operating systems

b)

the receiver process receives the message faster than in the shared memory model

c)

only used for small simple operating systems

d)

easier to implement than a shared memory model for inter-process communication

23.

Which of the following will have one machine in hot-standby mode?

a)

Asymmetric multiprocessing

b)

Asymmetric clustering

c)

Symmetric clustering

d)

Symmetric multiprocessing

24.

In a ___ computer, there are two or more  processors on a single silicon chip.

a)

distributed

b)

multitasking

c)

multiprocessor

d)

multicore

25.

Which of the following is different from others?

a)

system mode

b)

user mode

c)

privileged mode

d)

supervisor mode

26.

The primary focus of a(n) ___ operating systems is resource utilization.

a)

mobile computer

b)

embedded computers

c)

desktop computer

d)

mainframe

27.

The device controller sends a(n) ____ to inform the CPU about the status of the device.

a)

calling

b)

interrupt

c)

trap

d)

halt

28.

The main challenges in cache management are:

a)

reliability and volatility

b)

compatibility and flexibility

c)

speed and power consumption

d)

cache size and replacement policy

29.

In some systems where there are multiple command line interpreters, the interpreters are referred to as ____.

a)

GUI

b)

shells

c)

script

d)

batch

30.

The core part of the operating system that is running at all time on a computer is called ___.

a)

kernel

b)

bootstrap

c)

trap

d)

register

31.

_____ provide(s) an interface to the services provided by an operating system.

a)

Communication

b)

Simulators

c)

Shared memory

d)

System calls

32.

The size of ___ of a process will change during the execution.

a)

program counter

b)

process ID number

c)

data section

d)

stack section

33.

Which of the following transition of process states is not possible?

a)

from ready to waiting

b)

from ready to running

c)

from running to ready

d)

from waiting to ready

34.

With indirect communication, the messages are sent to and received from ______.

a)

sockets

b)

hard drive

c)

mailboxes or ports

d)

portal

35.

Process will exist as a(n) ____ process briefly when the parent has not yet called wait() when it terminates.

a)

zombie

b)

plant

c)

widow

d)

orphan

36.

The collection of processes waiting for the service from a particular device is called ____.

a)

job queue

b)

device queue

c)

ready queue

d)

standby queue

37.

Which of the following statements is false?

a)

Data get delivered faster in shared memory than in message passing

b)

Shared memory is more complicated to implement than message passing

c)

Message passing is most useful for exchanging the small amount of data

d)

Message passing doesn't require the intervention of the kernel

38.

In Unix system, the ___ process, which considered as the root of all processes, is assigned as the parent to orphan processes.

a)

parent

b)

init or systemd

c)

daemon

d)

root

39.

Which of the following is not part of Process control block?

a)

global variables

b)

program counter

c)

process state

d)

process priority

40.

The ____ chooses which process that should be executed next by the CPU core.

a)

CPU interrupt

b)

CPU scheduler

c)

CPU controller

d)

CPU timer

41.

When using the Shared Memory with ____, the consumer may have to wait for new items, but the producer can always produce new items.

a)

indirect communication

b)

unbounded buffer

c)

bounded buffer

d)

direct communication

42.

In Unix system, the ___ process, which considered as the root of all processes, is assigned as the parent to orphan processes.

a)

init or systemd

b)

parent

c)

daemon

d)

root

43.

One of the major issues with shared memory is that the processes are responsible for ___, which means ensuring the processes are not updating the same memory location simultaneously.

a)

coordination

b)

synchronization

c)

resonation

d)

security

44.

Cancellation points are associated with ____ cancellation.

a)

deferred

b)

asymmetric

c)

asynchronous

d)

synchronous

45.

When using the Shared Memory with ____, the consumer may have to wait for new items and the producer  must wait if all buffers are full .

a)

unbounded buffer

b)

indirect communication

c)

bounded buffer

d)

direct communication

46.

A ____ provides an API for creating and managing threads.

a)

multithreading model

b)

thread library

c)

set of system calls

d)

multicore system

47.

The ____ chooses which process that should be executed next by the CPU core.

a)

CPU interrupt

b)

CPU scheduler

c)

CPU timer

d)

CPU controller

48.

_____ is not considered a challenge when designing applications for multicore systems.

a)

Deciding which activities can be run in parallel

b)

Determining if data can be separated so that it is accessed on separate cores

c)

Ensuring there is a sufficient number of cores

d)

Identifying data dependencies between tasks.

49.

_________ involves distributing tasks across multiple computing cores.

a)

Concurrency

b)

Synchronization

c)

Task parallelism

d)

Data parallelism

50.

Which of the following is false?

a)

Access to shared memory requires a system call.

b)

Each message communicated between two processes requires at least two system call.

c)

In shared memory, synchronization is handled by the processes.

d)

With message passing, there can be many communication links between two processes.

51.

Which of the following is FALSE about threads?

a)

Communication among threads of the same process is done via message passing.

b)

Switching controls among threads can be faster than switching among processes.

c)

Creating threads incurs a lower overhead because no new memory space needs to be allocated.

d)

For applications that perform concurrent tasks, use of threads can make such applications more responsive.

52.

The size of ___ of a process will change during the execution.

a)

heap section

b)

text section

c)

data section

d)

program counter

53.

Most operating systems now use the ____.

a)

many-to-one model

b)

one-to many-model

c)

many-to-many model

d)

one-to-one model

54.

Which of the following will NOT be shared by all threads of the same process?

a)

code

b)

files

c)

data

d)

registers

55.

Process will become a(n) ____ process when its parent terminates without invoking wait().

a)

widow

b)

zombie

c)

plant

d)

orphan

56.

___ is the number of processes that are completed per time unit.

a)

Turnaround time

b)

Response time

c)

Throughput

d)

CPU utilization

57.

Which of the following is true about non-preemptive scheduling?

a)

A process changes from the running state to the ready state due to an interrupt.

b)

A timer is required.

c)

It will result in smaller average turnaround time.

d)

A process keeps working on the CPU until it doesn't need the CPU because of I/O or termination.

58.

Which of the following scheduling algorithms is preemptive?

a)

shortest-remaining-time-first

b)

first-come-first-serve

c)

shortest-job-first

d)

non-preemptive priority

59.

The ______ occurs in first-come-first-served scheduling when a process with a long CPU burst occupies the CPU.

a)

starvation

b)

aging

c)

convoy effect

d)

degeneration

60.

Which scheduling algorithm will give the most optimal average waiting time?

a)

Shortest-job-first

b)

Shortest-remaining-time-first

c)

Priority Scheduling

d)

First-come-first serve

61.

It's very difficult to implement shortest-job-first or shortest-remaining-time-first because

a)

this is a false statement.

b)

there's no way to know how many process will arrive.

c)

there's no way to know the next burst time needed for a process.

d)

there's no way to know the next arrival time of a process.

62.

When an available CPU voluntarily takes tasks from a busy CPU, it called ___.

a)

pull migration

b)

push migration

c)

emigration

d)

immigration

63.

Operating systems try to keep a thread running on the same processor and take advantage of a warm cache.  This is called _____.

a)

processor set

b)

processor affinity

c)

load balancing

d)

direct memory access

64.

A system with CPUs that have different clock speed or processing power is called ___.

a)

homogeneous multiprocessing

b)

asymmetric multiprocessing

c)

asynchronous multiprocessing

d)

heterogeneous multiprocessing

65.

The major issue of implementing priority scheduling in actual system is __.

a)

unbalanced distribution of priority

b)

degrading to first-come-first-serve when inappropriate priority numbers are used.

c)

the indefinite waiting for CPU (starvation) of the low priority processes.

d)

large average waiting time due to long high priority processes

66.

Which of the following scheduling algorithms does NOT have a non-preemptive version?

a)

round-robin

b)

first-come-first-serve

c)

shortest-job-first

d)

priority scheduling

67.

Which of the following already includes aging in the algorithm?

a)

multilevel feedback queue

b)

priority scheduling

c)

round-robin

d)

multilevel queue

68.

The major challenge in implementing round-robin algorithm in the actual system is ___. 

a)

the size of ready queue

b)

determining the order of the processes

c)

knowing the burst times when the processes arrive

d)

determine the size of the time quantum

69.

When the time quantum is very large, round-robin algorithm may turn into ___. 

a)

Shortest-remaining-time-first

b)

Priority scheduling

c)

Shortest-job-first

d)

First-come-first-serve

70.

Which of the following already includes aging in the algorithm?

a)

round-robin

b)

multilevel feedback queue

c)

multilevel queue

d)

priority scheduling

71.

An instruction that executes atomically ____.

a)

must consist of only one machine instruction

b)

cannot be used to solve the critical section problem

c)

executes as a single, uninterruptible unit

d)

none of these

72.

To implement the Shortest-Job-First or the Shortest-Remaining-Time-First, we would need to know _____, which is almost impossible.

a)

the burst time needed for a process before it is executed.

b)

the priority of a process before it is executed

c)

the number of processes in the queue

d)

the arrival time of a process before it is executed.

73.

The major challenge in implementing round-robin algorithm in the actual system is ___.

a)

determine the size of the time quantum

b)

the size of ready queue

c)

knowing the burst times when the processes arrive

d)

determining the order of the processes

74.

Which of the following scheduling algorithms is preemptive?

a)

shortest-remaining-time-first

b)

first-come-first-serve

c)

shortest-job-first

d)

non-preemptive priority

75.

A solution to critical section problem needs to satisfy the following, except ___.

a)

mutual exclusion

b)

progress

c)

bounded waiting

d)

spin lock

76.

Which of the following is true about preemptive scheduling?

a)

It will result in larger average turnaround time.

b)

A process keeps working on the CPU until it doesn't need the CPU because of I/O or termination.

c)

A process may change from the running state to the ready state due to an interrupt.

d)

It won't result in race condition

77.

The ______ occurs in first-come-first-served scheduling when a process with a long CPU burst occupies the CPU.

a)

starvation

b)

degeneration

c)

aging

d)

convoy effect

78.

A(n) _______ refers to where a process is accessing/updating shared data.

a)

critical section

b)

entry section

c)

mutex

d)

test-and-set

79.

Which scheduling algorithm will give the most optimal average waiting time?

a)

Shortest-job-first

b)

First-come-first serve

c)

Priority Scheduling

d)

Shortest-remaining-time-first

80.

Which of the following scheduling algorithms does NOT have a preemptive version?

a)

shortest-remaining-time-first

b)

round-robin

c)

first-come-first-serve

d)

priority scheduling

81.

Operating systems try to keep a thread running on the same processor and take advantage of a warm cache. This is called _____.

a)

direct memory access

b)

processor set

c)

processor affinity

d)

load balancing

82.

When an available CPU voluntarily takes tasks from a busy CPU, it called ___.

a)

pull migration

b)

emigration

c)

immigration

d)

push migration

83.

When multiple processes access and updates the shared data item concurrently, the final value of the shared data item depends on the order of access by the processes. This is referred to as ____.

a)

starvation

b)

deadlock

c)

race condition

d)

contention

84.

Computer architectures provide _____, which instructions that can force any changes in memory to be propagated to all other processors, thereby ensuring that memory modifications are visible to threads running on other processors.

a)

memory barrier

b)

memory segmentation

c)

memory stall

d)

memory miss

85.

In a system with ____ kernel, race conditions won't occur since the kernel-mode process will run until it exits kernel mode.

a)

non-preemptive

b)

asymmetric

c)

asynchronous

d)

preemptive

86.

When is spinlock (busy waiting) more preferable?

a)

when there is only one CPU

b)

when the lock is to be held for short duration (short critical section)

c)

when the critical section requires a long time

d)

it's never a preferred approach

87.

A mutex lock ____.

a)

is not guaranteed to be atomic

b)

is exactly like a counting semaphore

c)

can be used to eliminate busy waiting

d)

is essentially a boolean variable

88.

When no process is in its critical section and there are some processes waiting to enter critical section, selecting which process to enter critical section next should take place as soon as possible. This is called ____.

a)

memory model

b)

progress

c)

race condition

d)

mutual exclusion

89.

Which of the following is NOT one of the hardware instructions that provide support for solving the critical-section problem?

a)

memory barriers

b)

hardware instructions

c)

semaphores

d)

atomic variables

90.

When using semaphores, a process invokes the wait() operation before accessing its critical section, followed by the signal() operation upon completion of its critical section. Consider reversing the order of these two operations—first calling signal(), then calling wait(). What would be a possible outcome of this?

a)

Deadlock is possible.

b)

Mutual exclusion is still assured.

c)

Starvation is possible.

d)

Several processes could be active in their critical sections at the same time.

91.

A counting semaphore ____.

a)

can be modified simultaneously by multiple threads

b)

cannot be used to control access to a thread's critical sections

c)

is essentially an integer variable

d)

is accessed through only one standard operation

92.

____________ occurs when a higher-priority process needs to access a data structure that is currently being accessed by a lower-priority process.

a)

A critical section

b)

A race condition

c)

Deadlock

d)

Priority inversion

93.

What would happen if the exit section of a process does not include codes that allow other processes to enter their critical section?

a)

Convoy effect will occur.

b)

Inconsistent data because of race condition.

c)

Nothing goes wrong

d)

Other process would suffer from starvation.

94.

The segment of code in which a process tries to obtain the permission to enter critical section is referred to as _____.

a)

exit section

b)

critical section

c)

remainder section

d)

entry section