Font size
WorksheetsOperating Systems Quiz
Total questions: 115
Worksheet time: 1hrs 26mins
What is the primary function of an Operating System (OS)?
Run applications like Chrome and MS Word
Communicate with computer hardware
Design user interfaces
Play games and multimedia
Why is it essential for every computer to have an operating system?
To enhance gaming performance
To provide a user-friendly interface
To run other programs and manage hardware resources
To increase internet speed
What does the operating system facilitate for users?
Learning computer programming languages
Communicating in the computer's language
Running applications without an interface
Communicating with the computer without knowing its language
What role does the operating system play in relation to hardware and user applications?
It enhances hardware functionalities
It serves as a bridge
It designs user interfaces
It creates user applications
How does the operating system contribute to system efficiency?
Increasing hardware complexity
Simplifying hardware functionalities
Limiting the number of applications
Enforcing strict rules on applications
What is one of the key responsibilities of the operating system in managing applications?
Encouraging interference between applications
Allocating system resources inefficiently
Ensuring applications follow rules and protocols
Limiting the number of concurrent applications
What was the initial purpose of developing operating systems in the late 1950s?
To manage disk storage
To manage tape storage
To improve network connectivity
To enhance graphic interfaces
Which organization implemented the first operating system in the early 1950s for their IBM 701?
Microsoft
General Motors Research Lab
IBM
Unix
When did operating systems begin to utilize disks, moving away from tape storage?
Late 1950s
Mid-1960s
Late 1960s
Early 1970s
Which type of operating system allows the user to perform multiple tasks simultaneously, providing the illusion of parallel execution?
Batch Operating System
Multitasking/Time Sharing OS
Multiprocessing OS
Real Time OS
In which type of operating system do multiple processors work concurrently to execute tasks faster?
Batch Operating System
Multitasking/Time Sharing OS
Multiprocessing OS
Distributed OS
Which operating system is designed for applications with strict timing and performance requirements, such as industrial control systems?
Real Time OS
Distributed OS
Network OS
Mobile OS
What is the primary responsibility of the Memory Management module in an operating system?
File organization and retrieval
Process creation and deletion
Allocation and de-allocation of memory space
Coordination of compilers and interpreters
Which module in operating systems is responsible for managing all file-related activities, including organization, storage, and protection of files?
Device Management
File Management
Security
Networking
What is the purpose of the Security module in an operating system?
Allocation of devices
Protection against malware and unauthorized access
Coordination of compilers
Job accounting
What is the primary purpose of the User Interface in an operating system?
Managing program execution
Loading programs into memory
Point of interaction between the user and the computer
File creation and deletion
Which service does the OS provide under the category of Program Execution?
File creation and deletion
Managing program execution
Loading programs into memory
Reading and writing data to files
What does File Manipulation involve in the context of operating system services?
Detecting and managing errors
Creating, deleting, reading, and writing files
Logging and reporting errors
Providing error messages
Which component of an operating system is responsible for interacting with the user and interpreting commands?
Kernel
Shell
Device Drivers
System Libraries
What is the core component of an operating system that manages hardware resources and provides essential services to other parts of the system?
Shell
Device Drivers
Kernel
System Libraries
Which component is responsible for enabling communication between the operating system and external hardware devices?
Shell
Device Drivers
Kernel
System Libraries
What is the primary function of the kernel in an operating system?
Managing communication between software and hardware
Executing user commands
Providing a user interface
Creating and deleting files
Where is the kernel located in the hierarchy of an operating system?
Outermost part
Nucleus
Shell
Software layer
What is the role of the shell in the context of an operating system?
Managing communication between software and hardware
Creating and deleting files
Providing a user interface
Executing user commands
What characterizes a Monolithic Kernel in terms of its codebase?
Modular and separate codebase
Single, cohesive codebase
Kernel and user space codebase
Hierarchical codebase
How does a Microkernel manage system resources in comparison to a Monolithic Kernel?
In a single, cohesive codebase
With a modular approach
Through a hierarchical structure
Combining kernel and user space
What is a key advantage of a Hybrid Kernel?
Reduced modularity
Single codebase structure
Efficient communication between components
Achieves a balance between efficiency and flexibility
What is a key characteristic of a Monolithic Kernel's communication structure?
Separate communication layers
Direct communication layer between hardware and software
Hierarchical communication structure
Modular communication architecture
What advantage does a Monolithic Kernel offer in terms of design?
Reduced modularity
Efficient communication between components
Hierarchical design
Simplicity in design
What type of services does a Monolithic Kernel provide within its structure?
Kernel services only
User services only
Both kernel and user services
Separate kernel and user structures
How does a Microkernel manage user and kernel services in terms of address spaces?
In a single address space
Separate user and kernel address spaces
Hierarchical address spaces
Modular address spaces
What is a primary advantage of Microkernels in terms of size?
Increased kernel size
Reduced operating system size
Larger user address space
Hierarchical size distribution
What is a key feature of Microkernels that contributes to improved modularity and flexibility?
Unified structure
Hierarchical design
Modular approach
Direct communication layer
What characterizes the structure of a Hybrid Kernel in terms of services?
Kernel services only
User services only
Mix of kernel and user services
Separate kernel and user structures
What advantage does a Hybrid Kernel aim to achieve by combining features of Monolithic and Microkernel structures?
Increased modularity
Simplicity in design
Reduced flexibility
A balance between efficiency and flexibility
What makes a Hybrid Kernel adaptable to various system requirements?
Reduced efficiency
A balance between efficiency and flexibility
Hierarchical design
Modularity in communication
What is the primary responsibility of the kernel in terms of process scheduling?
Process creation
Low-level scheduling of processes
Memory allocation
File manipulation
How does the kernel contribute to fair and efficient utilization of system resources?
Through file management
Managing process synchronization
With its scheduling algorithms
Through inter-process communication
What is the role of the kernel in process synchronization?
Allocating memory to processes
Managing communication between processes
Preventing conflicts and controlling process execution order
Facilitating context switching
What role does the operating system play in terms of hardware details?
Revealing hardware details
Creating abstraction and hiding hardware details
Managing hardware details
Enhancing hardware details
What advantage does an operating system offer in terms of user convenience?
Increasing complexity
Making the computer system difficult to use
Ensuring the computer system is convenient to use
Hiding applications from users
How does the operating system act as an intermediary between applications and hardware components?
Revealing hardware details
Creating complexity
Acting as an obstacle
Providing abstraction
What challenge may users face in terms of operating systems being intricate?
Simplicity in understanding
Ease of troubleshooting
Challenges in understanding, troubleshooting, and debugging
Clear understanding and debugging
What impact can operating systems have on overall system performance?
Improving system performance
Consuming memory and CPU, potentially affecting performance
Reducing memory consumption
Enhancing CPU efficiency
What potential risk is associated with improper configuration or outdated systems?
Increased system security
Improved system stability
Exposure to vulnerabilities for malware and unauthorized access
Compatibility with all applications
What is the primary purpose of an operating system?
To provide a user interface
To manage hardware resources
To run applications
To store data
Which of the following is NOT a type of system call?
Process control
File management
Device management
User management
What is the function of the command interpreter?
To execute user commands
To manage system resources
To handle I/O operations
To provide a user interface
Which of the following is a method of passing parameters to the OS?
Using registers
Using a block in memory
Using the stack
All of the above
What is the purpose of the system call interface?
To provide a programming interface to the services provided by the OS
To manage hardware resources
To execute user commands
To handle I/O operations
Which of the following is NOT a type of system program?
File management
Status information
Device management
Application programs
What is the purpose of the 'exec' system call?
To create a new process
To terminate a process
To load a program into memory and execute it
To allocate memory
Which of the following is a type of user interface?
Command-Line Interface (CLI)
Graphical User Interface (GUI)
Batch Interface
All of the above
What is the role of the 'fork' system call?
To create a new process
To terminate a process
To load a program into memory and execute it
To allocate memory
Which of the following is NOT a function of an operating system?
Program execution
I/O operations
Error detection
Data encryption
What is the primary purpose of a file system?
To manage hardware resources
To provide a user interface
To manage files and directories
To handle network communication
What does FCB stand for in the context of file systems?
File Control Block
File Communication Block
File Control Base
File Communication Base
Which of the following is NOT a file allocation method?
Contiguous Allocation
Linked Allocation
Indexed Allocation
Random Allocation
What is the main disadvantage of contiguous allocation?
External fragmentation
Internal fragmentation
Slow access time
Complex implementation
In which allocation method does each file have its own index block?
Contiguous Allocation
Linked Allocation
Indexed Allocation
FAT Allocation
What is the role of the volume control block?
To manage file permissions
To store volume details
To control I/O operations
To manage memory allocation
Which file system layer translates file names into file numbers?
Device Driver
Basic File System
File Organization Module
Logical File System
What is the purpose of the mount table in a file system?
To store file data
To manage open files
To store file system mounts and mount points
To manage disk space
Which of the following is a benefit of using extents in file allocation?
Reduces external fragmentation
Simplifies file access
Increases file size
Improves security
What is the main advantage of the FAT allocation method?
Simple implementation
Fast access time
No fragmentation
High security
What is the main purpose of memory management in an operating system?
To manage CPU scheduling
To manage memory allocation and deallocation
To manage input/output operations
To manage file systems
Which of the following is a type of memory allocation?
Fixed partitioning
Dynamic partitioning
Both A and B
None of the above
What is external fragmentation?
When memory is divided into fixed-sized partitions
When memory is divided into variable-sized partitions
When free memory is scattered throughout and cannot be used
When memory is allocated to a process but not used
What is internal fragmentation?
When memory is divided into fixed-sized partitions
When memory is divided into variable-sized partitions
When free memory is scattered throughout and cannot be used
When memory is allocated to a process but not used
Which of the following is a memory allocation strategy?
First Fit
Best Fit
Worst Fit
All of the above
What is the purpose of compaction in memory management?
To allocate memory to processes
To deallocate memory from processes
To shuffle memory contents to place all free memory together
To manage input/output operations
What is the difference between logical and physical addresses?
Logical addresses are generated by the CPU; physical addresses are seen by the memory unit
Logical addresses are seen by the memory unit; physical addresses are generated by the CPU
Logical addresses are used for input/output operations; physical addresses are used for memory allocation
Logical addresses are used for memory allocation; physical addresses are used for input/output operations
What is the purpose of address binding?
To bind logical addresses to physical addresses
To bind input/output operations to memory addresses
To bind CPU scheduling to memory addresses
To bind file systems to memory addresses
What is the difference between compile-time and load-time address binding?
Compile-time binding generates absolute code; load-time binding generates relocatable code
Compile-time binding generates relocatable code; load-time binding generates absolute code
Compile-time binding is done at run time; load-time binding is done at compile time
Compile-time binding is done at load time; load-time binding is done at run time
What is the purpose of swapping in memory management?
To allocate memory to processes
To deallocate memory from processes
To move processes between disk and memory
To manage input/output operations
What is a process in an operating system?
A program in execution
A passive entity
A memory block
A CPU register
Which of the following is NOT a state of a process?
New
Running
Waiting
Terminated
Blocked
What is the role of the dispatcher in CPU scheduling?
Selects the next process to execute
Manages I/O operations
Gives control of the CPU to the process selected by the scheduler
Handles process termination
Which scheduling algorithm is designed for time-sharing systems?
FCFS
SJF
Round Robin
Priority Scheduling
What is the main disadvantage of FCFS scheduling?
Simple to implement
Convoy effect
High CPU utilization
Low throughput
In SJF scheduling, what does SJF stand for?
Shortest Job First
Shortest Job Fast
Smallest Job First
Smallest Job Fast
What is the main advantage of Round Robin scheduling?
Simple to implement
No starvation
High throughput
Low waiting time
Which scheduling algorithm can cause starvation?
FCFS
SJF
Round Robin
Priority Scheduling
What is the purpose of aging in priority scheduling?
To increase the priority of long-waiting processes
To decrease the priority of long-waiting processes
To maintain the priority of processes
To terminate long-waiting processes
What is the main difference between preemptive and non-preemptive scheduling?
Preemptive scheduling allows process interruption
Non-preemptive scheduling allows process interruption
Preemptive scheduling does not allow process interruption
Non-preemptive scheduling does not allow process execution
What is Dual Mode Operation?
The capability of an operating system to run in two distinct modes: user mode and kernel mode.
The capability of an operating system to run multiple applications simultaneously.
The capability of an operating system to manage hardware resources.
The capability of an operating system to perform critical system operations.
Which mode handles critical system operations and manages hardware resources?
User Mode
Kernel Mode
Application Mode
System Mode
What triggers the transition from user mode to kernel mode?
System Calls
User Requests
Hardware Interrupts
Software Interrupts
Which of the following is a feature of User Mode?
Full access to system resources and hardware.
Handles critical system operations.
Limited access to system resources and hardware.
Executes the core components of the operating system.
What is the purpose of Dual Mode Operation?
To ensure security, stability, and protection of the operating system and its resources.
To allow user applications to execute.
To manage hardware resources.
To perform critical system operations.
Which mode has fewer privileges and cannot perform critical system operations?
Kernel Mode
User Mode
System Mode
Application Mode
What is the benefit of Dual Mode Operation?
Enhanced Security
Stability
Resource Protection
All of the above
What is a timer used for in operating systems?
Scheduling tasks
Context switching
Resource allocation
All of the above
Which type of timer is built-in hardware component within the computer system?
Software Timer
Hardware Timer
System Timer
Application Timer
What is the purpose of timer interrupts?
To signal the operating system that the specified time interval has elapsed.
o perform time-dependent operations.
To maintain system responsiveness.
All of the above
Which component allows the CPU to communicate with peripheral devices?
- I/O Registers
- DMA Controller
- Interrupt Vector
- Cache Memory
What is the primary function of Direct Memory Access (DMA)?
To increase CPU clock speed
To allow peripherals to access memory directly
To manage cache memory
To control interrupts
Which hardware component handles interrupt signals?
DMA Controller
Interrupt Controller
I/O Register
ALU
What does an interrupt vector contain?
Memory addresses of I/O devices
Addresses of interrupt service routines
CPU register values
DMA transfer rates
Which of the following is NOT a type of I/O hardware?
Keyboard
Monitor
DMA Controller
Cache Memory
What is the role of I/O registers?
Store CPU instructions
Hold data and control information for I/O devices
Manage memory paging
Control cache operations
Which signal indicates that an I/O device needs CPU attention?
DMA
Interrupt
Polling
Bus request
What is the advantage of using DMA?
Reduces memory usage
Increases CPU load
Allows faster data transfer
Simplifies CPU architecture
Which register is used to initiate a command to an I/O device?
Status Register
Command Register
Data Register
Control Register
What happens when an interrupt occurs?
CPU halts permanently
CPU ignores the signal
CPU executes the interrupt service routine
DMA takes over CPU operations
What is the primary goal of protection in an operating system?
To prevent unauthorized access
To increase system speed
To reduce memory usage
To improve graphics performance
Which principle of protection ensures that each user accesses only the resources they are authorized for?
Least privilege
Full access
Open access
Maximum privilege
What defines the set of objects a process can access in a protection domain?
Access matrix
Domain of protection
Capability list
Control list
In an access matrix, what do the rows typically represent?
Objects
Operations
Subjects
Permissions
Which method is used to implement an access matrix efficiently?
Using a flat file
Using access control lists
Using spreadsheets
Using logs
What is the purpose of access control in operating systems?
To monitor CPU usage
To manage memory allocation
To restrict unauthorized access
To optimize disk usage
Which of the following allows revocation of access rights?
Static access control
Dynamic access control
Capability-based systems
Language-based protection
What does a capability-based system use to grant access?
Passwords
Tokens
Capabilities
Keys
Which protection method is embedded in programming languages?
Capability-based
Language-based
Matrix-based
Domain-based
Which of the following is NOT a goal of protection?
Prevent interference
Ensure fair resource allocation
Increase user privileges
Maintain system integrity
