WorksheetsFunctions of an Operating System Quiz
Total questions: 77
Worksheet time: 39mins
What is the purpose of an operating system as mentioned in the learning objectives?
To manage computer hardware and software resources
To provide a user interface for text editing
To increase the processing speed of the computer
To serve as an antivirus program
Which memory management techniques are outlined in the objectives?
Caching and hashing
Paging and segmentation
Encryption and decryption
Compression and decompression
What is the role of interrupts and an Interrupt Service Routine (ISR) according to the objectives?
To manage the communication between devices
To enhance the graphical user interface
To handle events within the fetch-decode-execute cycle
To increase the storage capacity of the system
Why is processor scheduling necessary as per the learning material?
To reduce the cost of the computing resources
To ensure efficient execution of processes
To improve the resolution of the display
To enhance the audio output of the system
Which of the following is NOT a scheduling algorithm mentioned in the objectives?
Round robin
First come first served
Multi-level feedback queues
Last in first out
What is the role of the boot loader in ROM?
It stores the Operating System permanently.
It loads the Operating System into RAM when the computer is switched on.
It manages the hardware and software communication.
It provides an interface for the user to interact with the computer.
What does the Operating System (OS) manage?
It manages the boot loader in ROM.
It manages the communication between application software and the user.
It manages the hardware and provides an interface for the user and the application software.
It stores data permanently on the computer.
Why do you need an Operating System on your computer?
To load the computer's BIOS.
To manage communication with your computer hardware.
To increase the computer's processing speed.
To store files and documents.
Which of the following is NOT a function provided by an Operating System (OS)?
User interface
Memory management
Interrupt handling
Data encryption
What function of an Operating System is responsible for managing the allocation and deallocation of memory space?
User interface
Memory management
Interrupt handling
Processor scheduling
Which function of an Operating System handles external and internal events that require the attention of the CPU?
User interface
Memory management
Interrupt handling
Processor scheduling
What is the role of processor scheduling in an Operating System?
Managing the user's interaction with the computer system
Allocating memory to various applications
Responding to and servicing interrupts
Determining the order in which processes access the CPU
What is the purpose of a user interface in an operating system?
To increase the complexity of the hardware
To provide a means of running applications
To hide the complexity of the hardware from the user
To store user data
Which of the following is NOT a device that might have an operating system?
Smartphone
Desktop computer
Calculator
Paper notebook
Identify the type of OS user interface shown in the top part of the image.
Command-line interface
Graphical user interface
Menu-driven interface
Touch interface
Identify the type of OS user interface shown in the bottom part of the image.
Command-line interface
Graphical user interface
Menu-driven interface
Touch interface
Why do programs and their data need to be loaded into RAM?
To save them permanently
To allow the CPU to access them quickly
To increase the storage capacity of the hard drive
To improve the screen resolution
What must the Operating System manage in terms of memory?
The allocation of RAM to the different programs
The temperature of the CPU
The speed of the hard drive
The size of the monitor display
What might be a limitation when loading processes into RAM?
There is always more than enough RAM for all processes
There may not be sufficient RAM for all desired processes to be completely loaded at once
RAM can only load processes when the computer is turned off
Processes do not require RAM to be loaded
Into what is the available memory divided in the concept of paging?
Fixed size chunks called segments
Variable size chunks called pages
Fixed size chunks called pages
Variable size chunks called blocks
What does each page in a paging system have?
A unique color
An address
A specific size
A file associated with it
How are the pages allocated to a process in RAM?
Contiguously in physical terms
Randomly without any specific order
Non-contiguously in physical terms
Based on the size of the process only
How many pages in RAM does process A require according to the paging diagram?
One page
Two pages
Three pages
Four pages
How many pages in RAM does process B require according to the paging diagram?
One page
Two pages
Three pages
Four pages
Which memory address is allocated to page 2 of process A?
100
101
102
103
Which memory address is not allocated to any page in the diagram?
100
101
104
105
What does the diagram illustrate about paging in the context of process A ending?
It shows that process A's pages are being removed from memory.
It indicates that process A is currently using the memory addresses shown.
It demonstrates how process A's pages are being swapped to disk.
It suggests that process B's pages are loaded into memory where process A's pages used to be.
What does Process C require when it is started according to the paging system described?
Two pages of RAM allocated contiguously
Three pages of RAM allocated contiguously
Three pages of RAM allocated non-contiguously
One page of RAM allocated anywhere
What is the purpose of a page table in an operating system?
To map between the logical memory locations and the physical memory locations
To store user data in a structured format
To enhance the graphical user interface of the operating system
To manage the CPU scheduling for running processes
According to the diagram, what is the physical memory address for logical address C2?
A) 100
B) 101
C) 102
D) 105
Which logical address maps to physical memory address 105?
A) C1
B) C2
C) C3
D) B - Page 3
How is memory divided in the concept of segmentation?
Into fixed-length partitions
Into segments of different lengths
Into equal-sized pages
Into a single continuous block
What can segments relate to in a program?
Only to the main function
To the entire program as a single unit
To parts of a program, such as a function or subroutine
To external input/output devices
What is the purpose of virtual memory in a computer system?
To increase the physical RAM available
To store temporary files for the operating system
To allow the computer to handle memory demands that exceed the amount of RAM
To speed up the processing power of the CPU
Where is virtual memory typically located?
In the CPU cache
On an external storage device
On the motherboard
On an area of the hard disk
What happens to the pages of a current process stored in virtual memory when they are needed?
They are deleted from the system
They are permanently moved to RAM
They are swapped into RAM
They are duplicated in the CPU
What happens when many processes are running on a computer with insufficient RAM?
The computer uses virtual memory without any performance issues.
The computer shuts down automatically to prevent damage.
The computer spends a lot of time swapping pages in and out of virtual memory.
The computer's RAM automatically upgrades itself.
What is the term used to describe the situation when pages are repeatedly swapped in and out of virtual memory, slowing down the computer?
Disk compression
Disk defragmentation
Disk encryption
Disk thrashing
Why is it vital for the CPU to be interrupted when necessary?
To allow the CPU to perform maintenance tasks
To ensure the CPU can respond to software and hardware requests
To increase the CPU's processing power
To prevent the CPU from overheating
Which of the following can send interrupts to the CPU?
Software devices only
Hardware devices only
Both software and hardware devices
External network signals only
Which of the following is NOT an example of an interrupt in a computer system?
An I/O device sends an interrupt signal
The printer runs out of paper
A user opens a new application
Power failure
What type of interrupt occurs when the printer runs out of paper?
Software interrupt
Hardware interrupt
Scheduled interrupt
User interrupt
What is a scheduled interrupt from the internal clock of a computer system also known as?
Power interrupt
Timer interrupt
I/O interrupt
Error interrupt
When does the CPU check for interrupts?
Before executing an instruction
After executing an instruction
At the start of each clock cycle
At the end of each clock cycle
What happens if the CPU detects an interrupt at the end of a clock cycle?
It ignores the interrupt
It resets the CPU
It transfers control to the interrupt handling program
It shuts down the system
What is the first step in the CPU's process cycle as shown in the diagram?
Decode instruction
Execute instruction
Fetch next instruction
Check for interrupts
What does the processor do when an interrupt is detected?
Continues fetching instructions without any changes
Pushes the current contents of its registers onto a queue
Pushes the current contents of its registers onto a stack
Shuts down to prevent damage
What does the CPU use to process an interrupt?
A stack service routine
An interrupt service routine
A processing unit
A reload mechanism
What happens to the values after the CPU has finished processing an interrupt?
They are deleted from the stack
They are duplicated on the stack
They are popped from the stack and reloaded into the CPU
They are transferred to external storage
How are interrupts processed by an operating system?
Randomly
In order of arrival
In order of priority
All at once
What happens to a current interrupt if a new interrupt with a higher priority occurs?
It is discarded
It continues to be processed
It is processed after the new interrupt
It is immediately interrupted
What happens to the original interrupt's registers if a higher priority interrupt occurs while it is being processed?
The original interrupt's registers are deleted
The original interrupt's registers continue processing
The original interrupt's registers are pushed onto the stack
The original interrupt's registers are sent to the CPU
What type of data structure is a stack?
FIFO (First In First Out)
FILO (First In Last Out)
LIFO (Last In First Out)
LILO (Last In Last Out)
When using a stack, in what order are the data retrieved?
The first data to be pushed on will be the first to be retrieved
The last data to be pushed on will be the first to be retrieved
The data is retrieved randomly
The data is retrieved in alphabetical order
What is the role of the Operating System in processor scheduling?
To process instructions for multiple applications at the same time
To schedule when each application can use the CPU
To increase the speed of the CPU
To decrease the number of applications running on the system
What does processor scheduling provide the illusion of?
Single-tasking
Multi-threading
Multi-tasking
Serial processing
How many applications can a single CPU process instructions for at a time?
Two
As many as the operating system allows
Only one
Unlimited
What is one of the aims of scheduling in an operating system?
To decrease the overall system performance
To provide an acceptable response time to all users
To limit the number of users on the system
To reduce the CPU usage to a minimum
What does scheduling aim to maximize in an operating system?
The time the CPU remains idle
The time the CPU is switched off
The time the CPU is usefully engaged
The time the CPU is under maintenance
What does scheduling ensure in a multi-user system?
Priority to a single user
Fairness on a multi-user system
Inequality in resource distribution
Maximum resource allocation to background processes
What does each job receive in a Round Robin scheduling system?
Unlimited CPU access
A fixed amount of memory
A time slice
A dedicated CPU
What happens if a job has not completed by the end of its time slice in a Round Robin scheduling system?
The job is terminated.
The job continues until completion.
The next job is allocated a time slice.
The job is moved to the back of the queue without a new time slice.
How does the scheduler in a Round Robin system know when to switch between time slices?
It waits for the user to decide.
It switches after a set number of operations.
It switches based on job priority.
The text does not provide this information.
What is estimated as each new job arrives in the Shortest remaining time algorithm?
The complexity of the job
The priority of the job
The time to completion
The resources required by the job
What happens when a job with a shorter remaining time to completion arrives in the Shortest remaining time algorithm?
The current process continues until completion
The new job is put on hold until the current process completes
The new job with the shorter remaining time takes over from the current process
The system crashes due to overload
Why does the Shortest remaining time algorithm not constantly switch between two jobs as they become closer to completion?
Because it prioritizes longer jobs
Because it only switches when a significantly shorter job arrives
Because it uses a complex heuristic to determine switching
The image does not provide this information
What is 'starvation' in the context of scheduling processor time?
When a process gets more time than it requires
When a process is not given any processor time at all
When a process is given just enough processor time to keep running
The image does not provide this information
What is another name for the "shortest job first" scheduling algorithm?
Shortest process next
Longest job first
First come first served
Round robin
Who estimates the total execution time of each job in the shortest job first algorithm?
The operating system
The user
The algorithm itself
The processor
When is the next job executed in the shortest job first algorithm?
When the user decides
When the system is idle
After the current job completes
When the job arrives in the queue
Is the shortest job first algorithm preemptive?
Yes, it is preemptive.
No, it is not preemptive.
It can be either, depending on the system.
The text does not provide this information.
What happens to a job that uses too much CPU time in a multi-level feedback queue system?
A) It is moved to a higher priority queue
B) It remains in the same queue
C) It is moved to a lower priority queue
D) It is terminated immediately
In a multi-level feedback queue system, what can happen to processes that have waited a long time?
A) They are moved to a lower priority queue
B) They are terminated
C) They are moved to a higher priority queue
D) They remain in the same queue
What does the Operating System (OS) manage?
Internet connectivity and user interface
Memory allocation, CPU time, and provides an interface
Peripheral devices and application installation
Security protocols and hardware configuration
What allows memory to be allocated in pages and swapped in and out of RAM as needed?
Cache memory
Virtual memory
Secondary storage
ROM
How does the CPU process jobs?
In a random order
According to user preference
According to a scheduling algorithm
Based on the size of the job
When can the CPU be interrupted?
When the system is idle
If a job with a higher priority arrives
After completing all current jobs
During maintenance checks
