Font size
WorksheetsFOS - FINAL EXAM
Total questions: 85
Worksheet time: 1hrs 25mins
Read the following statements carefully. Answer each of the following questions by choosing a letter of the correct answer and typing on your digital answer sheet. Use small letters only. What is a system call in the context of operating systems?
A call to a friend for technical support
A call to the system administrator
A request made by a program to the operating system
A call to the hardware manufacturer
Read the following statements carefully. Answer each of the following questions by choosing a letter of the correct answer and typing on your digital answer sheet. Use small letters only. Which of the following is not a common category of system calls?
Process Control
File Management
Network Configuration
Memory Management
Read the following statements carefully. Answer each of the following questions by choosing a letter of the correct answer and typing on your digital answer sheet. Use small letters only. What does the system call exec() do in the context of process management?
Exits the process
Forks a new process
Loads a new program into the current process
Allocates memory for a process
Read the following statements carefully. Answer each of the following questions by choosing a letter of the correct answer and typing on your digital answer sheet. Use small letters only. Which system call is used for terminating a process?
end()
terminate()
kill()
exit()
The system call for opening a file is:
open()
start_file()
read_file()
create_file()
What is the purpose of the read() system call in file management?
Deletes a file
Reads data from a file
Writes data to a file
Closes a file
Which of the following is not an essential service provided by an operating system?
Memory Management
Email Services
Process Management
File System Management
What is the primary purpose of the Memory Management service in an operating system?
Manage keyboard and mouse input
Manage the execution of processes
Manage the allocation and deallocation of memory
Manage communication between devices
Which service is responsible for managing the execution of processes in an operating system?
Process Management
Network Management
Security Management
File System Management
In the context of operating systems, what does the File System Management service handle?
Managing network connections
Managing input/output devices
Managing files and directories
Managing user authentication
Which service is responsible for managing the communication between different processes in an operating system?
Communication Management
Process Synchronization
Input/Output Management
Security Management
What is the purpose of the Input/Output Management service in an operating system?
Manage memory allocation
Manage file operations
Manage communication between processes
Manage communication with peripheral devices
Which service ensures the protection of resources and data in an operating system?
Security Management
Network Management
Memory Management
File System Management
What is the role of the Network Management service in an operating system?
Manage file operations
Manage network connections and communication
Manage process execution
Manage memory allocation
Which service is responsible for scheduling processes to run on the CPU efficiently?
Process Scheduling
Input/Output Management
Communication Management
Security Management
What does the Device Management service in an operating system handle?
Manage process execution
Manage file operations
Manage communication between devices
Manage memory allocation
Which type of system call is involved in time management and delay functions?
File Management
Process Control
Time Management
Input/Output Management
The system call sleep() is categorized under:
File Management
Process Control
Time Management
Input/Output Management
The system call chdir() belongs to which category?
File Management
Process Control
Directory Management
Input/Output Management
What type of system call is involved in power management and resource allocation?
File Management
Process Control
Resource Management
Input/Output Management
What is the primary function of an operating system?
Running applications
Managing hardware resources and other software
Storing data
Creating user interfaces
Which of the following is not considered an operating system?
Linux
Microsoft Office
macOS
Windows
What is a process in the context of an operating system?
A running application
A physical CPU core
A block of data in RAM
An input device
Which component of the operating system is responsible for managing memory?
CPU Scheduler
Memory Manager
File System
Device Manager
Which component of the operating system is responsible for handling input and output operations?
CPU Scheduler
Memory Manager
Device Manager
File System
What is the purpose of a shell in an operating system?
Protecting the hardware
Providing a user-friendly interface for interacting with the OS
Managing memory allocation
Scheduling CPU processes
What is the role of a device driver in an operating system?
It manages the CPU's execution of processes.
It provides a user interface for the operating system.
It allows the operating system to communicate with hardware devices.
It manages file system operations.
What is the primary purpose of a cache in an operating system?
To store user files
To speed up access to frequently used data
To manage CPU resources
To provide security
In a multiprocessing operating system, what is the main advantage of having multiple CPUs or cores?
Redundancy
Improved performance and multitasking capabilities
Lower power consumption
Increased security
What is a kernel in the context of an operating system?
The outermost layer of the operating system
A type of file system
The core component of the operating system that manages hardware resources
A user interface component
What is the purpose of an interrupt in an operating system?
To stop a running process
To initiate a software update
To signal the operating system that an event has occurred and needs immediate attention
To restart the computer
It has one machine in hot-standby mode.
Symmetric clustering
Asymmetric clustering
Asymmetric Multiprocessing
Symmetric Multiprocessing
It is a processor assigned to a specific task.
Symmetric clustering
Asymmetric clustering
Asymmetric Multiprocessing
Symmetric Multiprocessing
It is the year when Von Neuman Architecture is proposed for a computer.
1960
1962
1945
1954
How many bytes are there in a Gigabyte?
1024
10242
10244
10243
What is the primary function of a PC motherboard?
Execute instructions
Store data
Connect hardware components
Display graphics
Which component on a motherboard is responsible for temporarily storing data that the CPU is currently processing?
CPU
RAM
GPU
HDD
What does DRAM stand for in the context of computer memory?
Dynamic Random Access Memory
Digital Read-Only Memory
Direct Random Access Module
Data Recovery and Management
Which of the following types of memory is volatile and loses its data when power is turned off?
SRAM
ROM
DRAM
EEPROM
Which part of the motherboard is designed to hold the CPU?
Northbridge
Southbridge
CPU socket
RAM slot
What does PCI stand for in the context of expansion slots on a motherboard?
Peripheral Component Interconnect
Primary Computer Interface
Personal Computing Interface
Primary Circuit Interface
Which of the following is NOT typically connected to a PCI slot on a motherboard?
Graphics card
Sound card
Hard drive
Network card
Which of the following is NOT an essential function of an operating system?
Memory management
File management
Hardware manufacturing
Process scheduling
What is the primary purpose of an operating system's kernel?
User interface
File management
Core control of the hardware
Web browsing
What is the main goal of multiprogramming in an operating system?
Execute multiple programs simultaneously
Optimize processor speed
Manage memory efficiently
Control hardware resources
Multitasking allows a computer to:
Run multiple programs simultaneously
Run a single program more efficiently
Increase hardware performance
Maximize RAM usage
What is dual-mode operation in the context of an operating system?
The ability to run two operating systems concurrently
The ability to switch between user mode and kernel mode
The use of dual monitors
Running two CPUs in parallel
Multimode operation typically involves:
Running multiple virtual machines
Running multiple CPUs in parallel
Running multiple user interfaces
Running multiple operating systems simultaneously
In process management, what is the purpose of a process control block (PCB)?
To manage hard drive storage
To store information about a process
To control network connections
To optimize CPU performance
What is process scheduling in the context of an operating system?
Allocating CPU time to multiple processes
Managing the storage of process data
Monitoring the execution of a single process
Handling user input
What is the primary role of memory management in an operating system?
Managing hard disk space
Allocating and tracking physical memory
Handling file operations
Managing the CPU clock speed
What is the purpose of a file system in an operating system?
To manage CPU resources
To organize and store data on storage devices
To allocate memory to processes
To control network connections
Mass-storage management is responsible for:
Allocating CPU time to processes
Managing RAM
Handling external storage devices like hard drives
Allocating network bandwidth
What is caching in the context of computing?
Storing frequently used data in a faster, more accessible storage location
Managing file systems
Controlling processor clock speed
Allocating memory to applications
What is the primary role of the I/O subsystem in an operating system?
Managing memory allocation
Ensuring data security
Managing input and output operations
Controlling CPU scheduling
What is a process in an operating system?
A passive entity stored on disk
A program in execution
A data structure in the PCB
A shared memory block
Which of the following is NOT a state of a process?
Ready
Terminated
Waiting
Distributed
What does a Process Control Block (PCB) NOT contain?
Process state
Scheduling information
Network configuration
Memory management information
Which system call creates a new process in Unix?
exec()
fork()
wait()
exit()
In process scheduling, what is the purpose of the ready queue?
Hold processes waiting for I/O operations
Store terminated processes
Maintain processes ready for CPU execution
Synchronize interprocess communication
Which IPC model uses shared variables for communication?
Message Passing
Shared Memory
RPC
Sockets
What does the send() function do in message-passing systems?
Receives a message from a process
Sends a message to another process
Creates a new process
Synchronizes process execution
In which communication model are mailboxes used?
Direct communication
Indirect communication
Shared memory
RPC
What is the primary advantage of threads over processes?
Easier implementation
Better resource sharing
Reduced execution speed
Increased process creation overhead
What is multithreading?
Running multiple processes simultaneously
Running multiple threads in a single process
Executing tasks in a distributed system
Running multiple kernels on a CPU
Which of these is NOT a multithreading model?
One-to-One
Many-to-Many
Many-to-One
Single-to-Single
What type of threads does the POSIX Pthreads library provide?
User-level threads
Kernel-level threads
Both user-level and kernel-level threads
Java-based threads
In the Many-to-One model:
Each user thread maps to a unique kernel thread
All user threads map to a single kernel thread
Kernel threads map to user threads as needed
There is no mapping between threads
Which threading library is NOT supported by Linux?
Java threads
Windows threads
POSIX Pthreads
Kernel threads
In thread pools:
Threads are created dynamically during execution
Threads await work after creation
Threads manage memory for the process
Threads terminate upon task completion
What is the purpose of thread-local storage (TLS)?
Sharing data between threads
Providing each thread with its own data
Reducing synchronization overhead
Managing thread scheduling
Which of the following is an implicit threading technique?
Thread pools
Fork-Join
OpenMP
All of the above
How are signals delivered in multithreaded processes?
To all threads simultaneously
To a specific thread
To the process's main thread
It depends on the implementation
Which threading model provides the greatest flexibility?
Many-to-One
One-to-One
Many-to-Many
Two-level
What is fork-join parallelism?
A method to create threads dynamically
A way to divide tasks and join results
A model for managing multiple processes
A synchronization technique
Which language does NOT use implicit threading?
C
Java
Swift
Python
What is a kernel thread?
A thread created by the user application
A thread managed directly by the operating system kernel
A thread that handles I/O operations only
A thread exclusive to multicore systems
What is the primary distinction between concurrency and parallelism?
Concurrency is simultaneous execution; parallelism is multitasking
Concurrency makes progress on tasks; parallelism executes tasks simultaneously
Concurrency is specific to threads; parallelism to processes
There is no distinction
What does the term "process state" refer to in an operating system?
The name of the process
The resources allocated to a process
The current status of a process during its execution lifecycle
The CPU time used by a process
In the context of video playback, what does the "Waiting" state represent?
Video tab initializes
Video is playing
Video buffering due to slow internet connection
You close the video
Which of the following is NOT a valid process state?
New
Running
Sleeping
Terminated
Which process state indicates that a process has finished its execution?
Running
Waiting
Terminated
Ready
Which of these states involves the process being in a queue, waiting to run?
New
Ready
Running
Waiting
What is the role of the operating system scheduler?
To manage process creation
To allocate memory to processes
To determine which process runs at a given time
To store the program counter
In a multitasking environment, what allows processes to share the CPU effectively?
High-priority interrupts
Context switching
Dedicated cores
Memory buffers
