NEW
Font size
WorksheetsOperating Systems
Total questions: 60
Worksheet time: 30mins
What is an operating system?
An operating system is a type of hardware component.
An operating system is a programming language.
An operating system is a type of computer virus.
An operating system is software that manages computer hardware and software resources.
List three main functions of an operating system.
1. Resource management 2. User interface 3. Application execution
Data storage
File encryption
Network management
Explain the role of a kernel in an operating system.
The kernel stores all user data and files on the disk.
The kernel is responsible for user interface design.
The kernel is a type of application that runs on top of the operating system.
The kernel manages system resources and facilitates communication between hardware and software in an operating system.
What are the types of operating systems?
Single-User
Batch, Time-Sharing, Distributed, Network, Real-Time, Mobile, Embedded
Command Line Interface
Graphical User Interface
Define multitasking in the context of operating systems.
Multitasking means the operating system can only handle background processes without user interaction.
Multitasking is the process of shutting down all other applications to focus on one task.
Multitasking refers to the ability of an operating system to run a single process at a time.
Multitasking is the capability of an operating system to manage and execute multiple processes concurrently.
What is a user interface, and how does it relate to operating systems?
A user interface is a type of hardware component in a computer system.
A user interface is the means by which users interact with a computer system, and it is integral to operating systems as it enables user commands and feedback.
A user interface is only relevant for mobile devices and not for desktop systems.
Operating systems do not require a user interface to function properly.
How do operating systems manage hardware resources?
Operating systems do not interact with hardware directly.
Operating systems manage hardware resources by allocating CPU time, managing memory, controlling input/output devices, and handling storage.
Operating systems only manage software applications.
Operating systems primarily focus on user interface design.
What is the purpose of device drivers in an operating system?
To optimize the performance of the operating system.
The purpose of device drivers in an operating system is to enable communication between the OS and hardware devices.
To provide security features for the operating system.
To manage the user interface of the operating system.
How does Device Management work in an operating system?
Device Management involves managing software applications
Device Management is only relevant for mobile devices
Device Management is a feature exclusive to cloud computing
Device Management in an operating system involves controlling and coordinating the hardware devices attached to the system.
What is the role of File System in an operating system?
The File System controls the user interface of the operating system.
The File System is responsible for processing data in the operating system.
The File System manages data storage, organization, and access on storage devices.
The File System manages network connections in the operating system.
Explain the concept of Memory Management in an operating system.
Memory management is only concerned with preventing memory leaks
Memory management in an operating system involves allocating and deallocating memory resources to processes, ensuring efficient utilization of available memory, preventing memory leaks, and handling memory fragmentation. It also includes techniques like virtual memory, paging, segmentation, and swapping to optimize memory usage.
Memory management does not impact the performance of an operating system
Memory management involves managing the physical appearance of the computer
Which of these is an advantage to using a command-line interface over a GUI?
More interactive
Easier to use
Less resource heavy
Which of these is not a function of an OS:
Provide a user interface
Communicate with hardware
Allow the computer to multi-task
Improves CPU performance
___________ is a kind of operating system where each user processes the job on the offline device such as punched cards and submit it to the computer collectively.
Batch operating system
Time-sharing operating system
Distributed operating system
Real-time operating system
______________ is a type of operating system where processing time is uniformly shared among multiple users at the same time.
Batch operating system
Time-sharing operating system
Distributed operating system
Real-time operating system
Message passing system allows processes to __________
communicate with each other without sharing the same address space
communicate with one another by resorting to shared data
share data
name the recipient or sender of the message
What is Interprocess communication?
allows processes to communicate and synchronize their actions when using the same address space
allows processes to communicate and synchronize their actions
allows the processes to only synchronize their actions without communication
none of the mentioned
When a process is in a “Blocked” state waiting for some I/O service. When the service is completed, it goes to the __________
Terminated state
Suspended state
Running state
Ready state
In a timeshare operating system, when the time slot assigned to a process is completed, the process switches from the current state to?
Suspended state
Terminated state
Ready state
Blocked state
In real time operating system ____________
all processes have the same priority
a task must be serviced by its deadline period
process scheduling can be done only once
kernel is not required
Information about a process is maintained in a
Stack
program control block
process control block
Translation lopsided buffer
What is a schedular in the context of operating systems?
A component that manages the execution of processes
A type of hardware used for scheduling tasks
A user interface for managing applications
A method for storing data in memory
What is the significance of the user view in an operating system?
It determines how users interact with the system and access resources.
It is irrelevant to the functioning of the operating system.
It only affects the performance of background processes.
It is solely concerned with hardware management.
Which of the following best describes the user view in an operating system?
The user view is the perspective from which users interact with the operating system.
The user view is a technical specification for developers.
The user view is only relevant for system administrators.
The user view does not include graphical user interfaces.
Which of the following states indicates that a process is currently being executed by the CPU?
Ready
Blocked
Running
Terminated
What is the role of a process control block (PCB) in an operating system?
To store user data and files
To manage the execution of threads
To maintain information about a process's state and resources
To handle network connections
What is the primary function of network management in an operating system?
To manage user interfaces
To control hardware resources
To ensure efficient communication between devices and processes
To allocate memory to applications
What is the primary role of a task scheduler in an operating system?
To manage memory allocation
To allocate CPU time to processes
To handle input/output operations
To manage user interfaces
Which command is commonly used to monitor system resource usage in real-time on Ubuntu?
top
ps
htop
free
Which command provides a summary of memory usage in Ubuntu?
df
free
du
top
Which command is used to create a new user group in Ubuntu?
addgroup
groupadd
useradd
newgroup
What command would you use to delete a user group in Ubuntu?
delgroup
groupdel
removegroup
deletegroup
What is the main difference between multitasking and multiprogramming in operating systems?
Multitasking allows multiple processes to run simultaneously, while multiprogramming allows multiple processes to be loaded into memory but not necessarily run at the same time.
Multitasking is only applicable to single-user systems, while multiprogramming is for multi-user systems.
Multitasking refers to the ability of a single process to perform multiple tasks, while multiprogramming refers to the ability of the OS to manage multiple processes.
There is no significant difference; both terms are interchangeable.
Which of the following best describes the term 'context switching' in multitasking operating systems?
Switching between different user interfaces.
Saving the state of a currently running process and loading the state of the next process to be executed.
Changing the priority of processes in the scheduling queue.
Transferring data between the CPU and memory.
In a multiprogramming environment, how does the operating system decide which process to execute next?
By using a round-robin scheduling algorithm.
By selecting the process with the highest priority or the one that has been waiting the longest.
By randomly selecting a process from the queue.
By executing processes in the order they were created.
What happens to a process when it makes a system call from user mode?
The process is terminated immediately.
The process is switched to kernel mode to execute the system call.
The process continues executing in user mode without interruption.
The process is suspended until the system call is completed.
What is a system call in an operating system?
A method for user applications to request services from the kernel
A way to manage hardware resources directly
A command used to terminate processes
A function that only runs in user mode
Which of the following is an example of a system call?
open()
printf()
malloc()
exit()
What is the purpose of the 'fork' system call?
To create a new process
To terminate a process
To wait for a process to finish
To allocate memory
What is a process memory block (PMB) and what role does it play in process management?
It is a data structure that holds information about a process's memory allocation.
It is a type of hardware component that manages memory.
It is a software application that monitors system performance.
It is a temporary storage area for user data.
How does the operating system utilize the process memory block during context switching?
It saves the current state of the process in the PMB before switching.
It deletes the PMB to free up memory space.
It only uses the PMB for processes that are terminated.
It does not use the PMB during context switching.
Which of the following best describes the information typically stored in a process memory block?
Process ID, memory limits, and pointers to the process's code and data segments.
Only the process's execution time and priority level.
Hardware specifications and user preferences.
Network configurations and user interface settings.
Which of the following is a benefit of using threads in an operating system?
Increased memory usage
Improved performance through parallelism
Reduced complexity in process management
Elimination of context switching
Which of the following best describes the execution model of a single-level thread?
It allows for concurrent execution of multiple threads
It executes one thread at a time within a single process
It can switch between multiple processes without user intervention
It requires multiple CPUs to function effectively
What is a key advantage of using single-level threads in an operating system?
They simplify the management of process resources
They allow for better CPU utilization
They enable faster context switching between processes
They provide enhanced security features
What is the primary advantage of using shared memory for interprocess communication?
It allows for faster data exchange between processes.
It simplifies the programming model.
It requires less memory than other IPC methods.
It is easier to implement than message passing.
What is the primary advantage of using message passing over shared memory in inter-process communication?
Message passing is simpler to implement.
Message passing allows for better synchronization.
Message passing is more efficient in terms of memory usage.
Message passing is faster than shared memory.
In a shared memory system, how do processes communicate with each other?
By sending messages through a message queue.
By writing to and reading from a common memory space.
By using semaphores to signal each other.
By invoking system calls to the kernel.
Which of the following is a potential drawback of using shared memory for inter-process communication?
It requires more system resources.
It can lead to data inconsistency if not properly synchronized.
It is slower than message passing.
It is more complex to implement than message passing.
What is the primary goal of process scheduling in an operating system?
To maximize CPU utilization
To minimize memory usage
To ensure data integrity
To provide a user-friendly interface
Which command is used to display the current working directory in a Unix-like operating system?
pwd
cd
ls
dir
What is the role of the process control block (PCB) in an operating system?
It stores information about the process state, program counter, and CPU registers.
It manages the memory allocation for processes.
It handles the input/output operations of the system.
It is used for network communication between processes.
What is the primary purpose of a short-term scheduler in an operating system?
To manage long-term job scheduling
To allocate CPU time to processes that are ready to execute
To handle memory allocation for processes
To manage I/O operations for processes
In the context of process scheduling, what does the term 'medium-term scheduling' refer to?
It involves swapping processes in and out of memory
It is responsible for allocating CPU time to processes
It manages the execution of threads within a process
It handles the prioritization of processes in the ready queue
Which of the following best describes a long-term scheduler's role in an operating system?
To decide which process to execute next from the ready queue
To control the degree of multiprogramming by admitting processes into the system
To manage the execution of I/O operations
To allocate memory resources to running processes
