WorksheetsFOS FINAL QUIZ
Total questions: 50
Worksheet time: 25mins
Which component of the operating system directly communicates with the hardware?
Shell
Kernel
File System
Loader
Which system call is typically used to wait for a child process to finish?
fork()
wait()
exec()
exit()
What do we call a program that is currently being executed?
File
Process
Thread
Job Queue
Which process state means the process is ready but not currently running?
Running
Waiting
Ready
Terminated
Which memory type permanently stores critical instructions needed during system boot?
RAM
ROM
Cache
DRAM
What does the system call open() primarily do?
Deletes a file
Opens an existing file
Creates a directory
Formats a disk
The ALU and control unit are components of what hardware?
RAM
CPU
GPU
ROM
Which scheduling method assigns CPU time to the shortest job first?
FIFO
Round Robin
SJF
Priority
What is the main role of device drivers?
Manage memory
Interface between OS and hardware
What type of memory loses data when power is shut down?
ROM
EEPROM
DRAM
Flash
What system component organizes files into directories and subdirectories?
File System
Kernel
BIOS
Loader
What does the exec() system call do?
Creates a process
Loads a new program into the current process
Terminates a process
Switches context
Which system call creates a child process?
fork()
exit()
kill()
sleep()
Which OS component handles user commands entered into the terminal?
Kernel
Shell
Scheduler
Memory Manager
The primary purpose of caching is to:
Back up files
Provide security
Speed up data access
Reduce RAM usage
Which thread type is managed entirely by the operating system?
User-level
Kernel-level
Hybrid thread
Virtual thread
The ready queue contains:
Processes waiting for I/O
Processes finished executing
Processes ready for CPU execution
Newly created processes only
Which of the following is NOT a function of the OS?
Process Management
Hardware Control
Application Creation
Multitasking allows the CPU to:
Execute several processes in sequence
Run several processes seemingly at the same time
Run only one task at a time
Prevent parallelism
What is the function of the scheduler?
Assigns memory
Decides which process runs next
Formats drives
Manages files
What part of the process contains executable instructions?
Stack
Heap
Code segment
PCB
Which process state indicates waiting for an event such as I/O?
Ready
Blocked
Running
Terminated
Which IPC method involves using shared variables or shared space?
RPC
Message Passing
Shared Memory
Sockets
A thread can be described as:
A. A separate program
B. A lightweight process
C. A hardware interrupt
D. A memory address
Which OS component allocates and deallocates RAM?
Scheduler
Memory Manager
File System
Device Manager
Which is an example of indirect communication?
Direct message passing
Shared memory
Mailbox messaging
Sockets
The PCB stores:
Keyboard inputs
Process information such as state and registers
Only program code
Round Robin scheduling uses which metric?
Priority
Time quantum
Burst time
Throughput
What is the primary advantage of threads?
Requires more memory
Slower than processes
Faster context switching
No need for scheduling
Where is the BIOS stored?
RAM
ROM
GPU
Hard disk
Which motherboard socket holds temporary data?
CPU socket
RAM slot
PCI slot
SATA port
Instruction execution is handled by the:
ROM
CPU
GPU
HDD
Which memory type is fastest?
DRAM
ROM
Cache
SSD
Which thread model maps many user threads to one kernel thread?
One-to-One
Many-to-One
Many-to-Many
Two-Level
Signals in multithreaded systems are delivered based on:
User input
OS implementation
File size
CPU temperature
A multiprocessing system:
Uses one CPU only
Supports multiple CPUs
Does not allow multitasking
Which system call changes a working directory?
open()
mkdir()
chdir()
rename()
Interprocess communication allows processes to:
Share files only
Stop each other
Exchange data
Increase priority
What is the role of the stack in a process?
Stores global variables
Stores temporary data and function calls
Stores program code
Stores dynamic memory
Which layer provides the user interface?
Kernel
Shell
Scheduler
Device Manager
A hot-standby machine is used in:
Symmetric multiprocessing
Asymmetric clustering
Many-to-One threading
User threading
Which hardware component stores the OS during boot?
CPU
GPU
ROM
NIC
A terminated process is also called:
Killed
Ready
Blocked
Zombie (in some cases)
In message passing, the send() function:
Creates a process
Reads a message
Sends data to another process
Terminates a thread
The main purpose of file extensions is to:
Increase file size
Identify file type
Speed up access
A CPU interrupt occurs when:
The user saves a file
A hardware event needs attention
The OS boots
A process is scheduled
Which is an advantage of multiprogramming?
Wastes CPU time
Lowers throughput
Improves CPU utilization
Reduces memory
What is the purpose of thread-local storage?
Share data between processes
Provide per-thread data
Store OS files
Speed up booting
What is the role of the I/O subsystem?
Manage CPU
Handle input/output operations
Allocate RAM
Run applications
The “Running” process state means:
Waiting for CPU
Actively using the CPU
Finished execution
Waiting for I/O
