Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Functions of an Operating System Quiz

Total questions: 77

Worksheet time: 39mins

Name
Class
Date
1.

What is the purpose of an operating system as mentioned in the learning objectives?

a)

To manage computer hardware and software resources

b)

To provide a user interface for text editing

c)

To increase the processing speed of the computer

d)

To serve as an antivirus program

2.

Which memory management techniques are outlined in the objectives?

a)

Caching and hashing

b)

Paging and segmentation

c)

Encryption and decryption

d)

Compression and decompression

3.

What is the role of interrupts and an Interrupt Service Routine (ISR) according to the objectives?

a)

To manage the communication between devices

b)

To enhance the graphical user interface

c)

To handle events within the fetch-decode-execute cycle

d)

To increase the storage capacity of the system

4.

Why is processor scheduling necessary as per the learning material?

a)

To reduce the cost of the computing resources

b)

To ensure efficient execution of processes

c)

To improve the resolution of the display

d)

To enhance the audio output of the system

5.

Which of the following is NOT a scheduling algorithm mentioned in the objectives?

a)

Round robin

b)

First come first served

c)

Multi-level feedback queues

d)

Last in first out

6.

What is the role of the boot loader in ROM?

a)

It stores the Operating System permanently.

b)

It loads the Operating System into RAM when the computer is switched on.

c)

It manages the hardware and software communication.

d)

It provides an interface for the user to interact with the computer.

7.

What does the Operating System (OS) manage?

a)

It manages the boot loader in ROM.

b)

It manages the communication between application software and the user.

c)

It manages the hardware and provides an interface for the user and the application software.

d)

It stores data permanently on the computer.

8.

Why do you need an Operating System on your computer?

a)

To load the computer's BIOS.

b)

To manage communication with your computer hardware.

c)

To increase the computer's processing speed.

d)

To store files and documents.

9.

Which of the following is NOT a function provided by an Operating System (OS)?

a)

User interface

b)

Memory management

c)

Interrupt handling

d)

Data encryption

10.

What function of an Operating System is responsible for managing the allocation and deallocation of memory space?

a)

User interface

b)

Memory management

c)

Interrupt handling

d)

Processor scheduling

11.

Which function of an Operating System handles external and internal events that require the attention of the CPU?

a)

User interface

b)

Memory management

c)

Interrupt handling

d)

Processor scheduling

12.

What is the role of processor scheduling in an Operating System?

a)

Managing the user's interaction with the computer system

b)

Allocating memory to various applications

c)

Responding to and servicing interrupts

d)

Determining the order in which processes access the CPU

13.

What is the purpose of a user interface in an operating system?

a)

To increase the complexity of the hardware

b)

To provide a means of running applications

c)

To hide the complexity of the hardware from the user

d)

To store user data

14.

Which of the following is NOT a device that might have an operating system?

a)

Smartphone

b)

Desktop computer

c)

Calculator

d)

Paper notebook

15.

Identify the type of OS user interface shown in the top part of the image.

a)

Command-line interface

b)

Graphical user interface

c)

Menu-driven interface

d)

Touch interface

16.

Identify the type of OS user interface shown in the bottom part of the image.

a)

Command-line interface

b)

Graphical user interface

c)

Menu-driven interface

d)

Touch interface

17.

Why do programs and their data need to be loaded into RAM?

a)

To save them permanently

b)

To allow the CPU to access them quickly

c)

To increase the storage capacity of the hard drive

d)

To improve the screen resolution

18.

What must the Operating System manage in terms of memory?

a)

The allocation of RAM to the different programs

b)

The temperature of the CPU

c)

The speed of the hard drive

d)

The size of the monitor display

19.

What might be a limitation when loading processes into RAM?

a)

There is always more than enough RAM for all processes

b)

There may not be sufficient RAM for all desired processes to be completely loaded at once

c)

RAM can only load processes when the computer is turned off

d)

Processes do not require RAM to be loaded

20.

Into what is the available memory divided in the concept of paging?

a)

Fixed size chunks called segments

b)

Variable size chunks called pages

c)

Fixed size chunks called pages

d)

Variable size chunks called blocks

21.

What does each page in a paging system have?

a)

A unique color

b)

An address

c)

A specific size

d)

A file associated with it

22.

How are the pages allocated to a process in RAM?

a)

Contiguously in physical terms

b)

Randomly without any specific order

c)

Non-contiguously in physical terms

d)

Based on the size of the process only

23.

How many pages in RAM does process A require according to the paging diagram?

a)

One page

b)

Two pages

c)

Three pages

d)

Four pages

24.

How many pages in RAM does process B require according to the paging diagram?

a)

One page

b)

Two pages

c)

Three pages

d)

Four pages

25.

Which memory address is allocated to page 2 of process A?

a)

100

b)

101

c)

102

d)

103

26.

Which memory address is not allocated to any page in the diagram?

a)

100

b)

101

c)

104

d)

105

27.

What does the diagram illustrate about paging in the context of process A ending?

a)

It shows that process A's pages are being removed from memory.

b)

It indicates that process A is currently using the memory addresses shown.

c)

It demonstrates how process A's pages are being swapped to disk.

d)

It suggests that process B's pages are loaded into memory where process A's pages used to be.

28.

What does Process C require when it is started according to the paging system described?

a)

Two pages of RAM allocated contiguously

b)

Three pages of RAM allocated contiguously

c)

Three pages of RAM allocated non-contiguously

d)

One page of RAM allocated anywhere

29.

What is the purpose of a page table in an operating system?

a)

To map between the logical memory locations and the physical memory locations

b)

To store user data in a structured format

c)

To enhance the graphical user interface of the operating system

d)

To manage the CPU scheduling for running processes

30.

According to the diagram, what is the physical memory address for logical address C2?

a)

A) 100

b)

B) 101

c)

C) 102

d)

D) 105

31.

Which logical address maps to physical memory address 105?

a)

A) C1

b)

B) C2

c)

C) C3

d)

D) B - Page 3

32.

How is memory divided in the concept of segmentation?

a)

Into fixed-length partitions

b)

Into segments of different lengths

c)

Into equal-sized pages

d)

Into a single continuous block

33.

What can segments relate to in a program?

a)

Only to the main function

b)

To the entire program as a single unit

c)

To parts of a program, such as a function or subroutine

d)

To external input/output devices

34.

What is the purpose of virtual memory in a computer system?

a)

To increase the physical RAM available

b)

To store temporary files for the operating system

c)

To allow the computer to handle memory demands that exceed the amount of RAM

d)

To speed up the processing power of the CPU

35.

Where is virtual memory typically located?

a)

In the CPU cache

b)

On an external storage device

c)

On the motherboard

d)

On an area of the hard disk

36.

What happens to the pages of a current process stored in virtual memory when they are needed?

a)

They are deleted from the system

b)

They are permanently moved to RAM

c)

They are swapped into RAM

d)

They are duplicated in the CPU

37.

What happens when many processes are running on a computer with insufficient RAM?

a)

The computer uses virtual memory without any performance issues.

b)

The computer shuts down automatically to prevent damage.

c)

The computer spends a lot of time swapping pages in and out of virtual memory.

d)

The computer's RAM automatically upgrades itself.

38.

What is the term used to describe the situation when pages are repeatedly swapped in and out of virtual memory, slowing down the computer?

a)

Disk compression

b)

Disk defragmentation

c)

Disk encryption

d)

Disk thrashing

39.

Why is it vital for the CPU to be interrupted when necessary?

a)

To allow the CPU to perform maintenance tasks

b)

To ensure the CPU can respond to software and hardware requests

c)

To increase the CPU's processing power

d)

To prevent the CPU from overheating

40.

Which of the following can send interrupts to the CPU?

a)

Software devices only

b)

Hardware devices only

c)

Both software and hardware devices

d)

External network signals only

41.

Which of the following is NOT an example of an interrupt in a computer system?

a)

An I/O device sends an interrupt signal

b)

The printer runs out of paper

c)

A user opens a new application

d)

Power failure

42.

What type of interrupt occurs when the printer runs out of paper?

a)

Software interrupt

b)

Hardware interrupt

c)

Scheduled interrupt

d)

User interrupt

43.

What is a scheduled interrupt from the internal clock of a computer system also known as?

a)

Power interrupt

b)

Timer interrupt

c)

I/O interrupt

d)

Error interrupt

44.

When does the CPU check for interrupts?

a)

Before executing an instruction

b)

After executing an instruction

c)

At the start of each clock cycle

d)

At the end of each clock cycle

45.

What happens if the CPU detects an interrupt at the end of a clock cycle?

a)

It ignores the interrupt

b)

It resets the CPU

c)

It transfers control to the interrupt handling program

d)

It shuts down the system

46.

What is the first step in the CPU's process cycle as shown in the diagram?

a)

Decode instruction

b)

Execute instruction

c)

Fetch next instruction

d)

Check for interrupts

47.

What does the processor do when an interrupt is detected?

a)

Continues fetching instructions without any changes

b)

Pushes the current contents of its registers onto a queue

c)

Pushes the current contents of its registers onto a stack

d)

Shuts down to prevent damage

48.

What does the CPU use to process an interrupt?

a)

A stack service routine

b)

An interrupt service routine

c)

A processing unit

d)

A reload mechanism

49.

What happens to the values after the CPU has finished processing an interrupt?

a)

They are deleted from the stack

b)

They are duplicated on the stack

c)

They are popped from the stack and reloaded into the CPU

d)

They are transferred to external storage

50.

How are interrupts processed by an operating system?

a)

Randomly

b)

In order of arrival

c)

In order of priority

d)

All at once

51.

What happens to a current interrupt if a new interrupt with a higher priority occurs?

a)

It is discarded

b)

It continues to be processed

c)

It is processed after the new interrupt

d)

It is immediately interrupted

52.

What happens to the original interrupt's registers if a higher priority interrupt occurs while it is being processed?

a)

The original interrupt's registers are deleted

b)

The original interrupt's registers continue processing

c)

The original interrupt's registers are pushed onto the stack

d)

The original interrupt's registers are sent to the CPU

53.

What type of data structure is a stack?

a)

FIFO (First In First Out)

b)

FILO (First In Last Out)

c)

LIFO (Last In First Out)

d)

LILO (Last In Last Out)

54.

When using a stack, in what order are the data retrieved?

a)

The first data to be pushed on will be the first to be retrieved

b)

The last data to be pushed on will be the first to be retrieved

c)

The data is retrieved randomly

d)

The data is retrieved in alphabetical order

55.

What is the role of the Operating System in processor scheduling?

a)

To process instructions for multiple applications at the same time

b)

To schedule when each application can use the CPU

c)

To increase the speed of the CPU

d)

To decrease the number of applications running on the system

56.

What does processor scheduling provide the illusion of?

a)

Single-tasking

b)

Multi-threading

c)

Multi-tasking

d)

Serial processing

57.

How many applications can a single CPU process instructions for at a time?

a)

Two

b)

As many as the operating system allows

c)

Only one

d)

Unlimited

58.

What is one of the aims of scheduling in an operating system?

a)

To decrease the overall system performance

b)

To provide an acceptable response time to all users

c)

To limit the number of users on the system

d)

To reduce the CPU usage to a minimum

59.

What does scheduling aim to maximize in an operating system?

a)

The time the CPU remains idle

b)

The time the CPU is switched off

c)

The time the CPU is usefully engaged

d)

The time the CPU is under maintenance

60.

What does scheduling ensure in a multi-user system?

a)

Priority to a single user

b)

Fairness on a multi-user system

c)

Inequality in resource distribution

d)

Maximum resource allocation to background processes

61.

What does each job receive in a Round Robin scheduling system?

a)

Unlimited CPU access

b)

A fixed amount of memory

c)

A time slice

d)

A dedicated CPU

62.

What happens if a job has not completed by the end of its time slice in a Round Robin scheduling system?

a)

The job is terminated.

b)

The job continues until completion.

c)

The next job is allocated a time slice.

d)

The job is moved to the back of the queue without a new time slice.

63.

How does the scheduler in a Round Robin system know when to switch between time slices?

a)

It waits for the user to decide.

b)

It switches after a set number of operations.

c)

It switches based on job priority.

d)

The text does not provide this information.

64.

What is estimated as each new job arrives in the Shortest remaining time algorithm?

a)

The complexity of the job

b)

The priority of the job

c)

The time to completion

d)

The resources required by the job

65.

What happens when a job with a shorter remaining time to completion arrives in the Shortest remaining time algorithm?

a)

The current process continues until completion

b)

The new job is put on hold until the current process completes

c)

The new job with the shorter remaining time takes over from the current process

d)

The system crashes due to overload

66.

Why does the Shortest remaining time algorithm not constantly switch between two jobs as they become closer to completion?

a)

Because it prioritizes longer jobs

b)

Because it only switches when a significantly shorter job arrives

c)

Because it uses a complex heuristic to determine switching

d)

The image does not provide this information

67.

What is 'starvation' in the context of scheduling processor time?

a)

When a process gets more time than it requires

b)

When a process is not given any processor time at all

c)

When a process is given just enough processor time to keep running

d)

The image does not provide this information

68.

What is another name for the "shortest job first" scheduling algorithm?

a)

Shortest process next

b)

Longest job first

c)

First come first served

d)

Round robin

69.

Who estimates the total execution time of each job in the shortest job first algorithm?

a)

The operating system

b)

The user

c)

The algorithm itself

d)

The processor

70.

When is the next job executed in the shortest job first algorithm?

a)

When the user decides

b)

When the system is idle

c)

After the current job completes

d)

When the job arrives in the queue

71.

Is the shortest job first algorithm preemptive?

a)

Yes, it is preemptive.

b)

No, it is not preemptive.

c)

It can be either, depending on the system.

d)

The text does not provide this information.

72.

What happens to a job that uses too much CPU time in a multi-level feedback queue system?

a)

A) It is moved to a higher priority queue

b)

B) It remains in the same queue

c)

C) It is moved to a lower priority queue

d)

D) It is terminated immediately

73.

In a multi-level feedback queue system, what can happen to processes that have waited a long time?

a)

A) They are moved to a lower priority queue

b)

B) They are terminated

c)

C) They are moved to a higher priority queue

d)

D) They remain in the same queue

74.

What does the Operating System (OS) manage?

a)

Internet connectivity and user interface

b)

Memory allocation, CPU time, and provides an interface

c)

Peripheral devices and application installation

d)

Security protocols and hardware configuration

75.

What allows memory to be allocated in pages and swapped in and out of RAM as needed?

a)

Cache memory

b)

Virtual memory

c)

Secondary storage

d)

ROM

76.

How does the CPU process jobs?

a)

In a random order

b)

According to user preference

c)

According to a scheduling algorithm

d)

Based on the size of the job

77.

When can the CPU be interrupted?

a)

When the system is idle

b)

If a job with a higher priority arrives

c)

After completing all current jobs

d)

During maintenance checks