WorksheetsOperating Systems Quiz - Basic 01 to Basic 02
Total questions: 40
Worksheet time: 20mins
Which of the following is not an operating system?
Windows
Linux
Oracle
macOS
What does an operating system manage?
Applications only
Hardware only
Hardware and software resources
Files only
Which part of the OS communicates directly with hardware?
GUI
Shell
Kernel
CLI
Which one is an example of a mobile operating system?
Windows 10
Fedora
Android
Unix
Which of the following is not a layer of an operating system?
Application Layer
Hardware Layer
Kernel Layer
Security Layer
What is the primary job of the scheduler in an OS?
Memory allocation
File storage
CPU task allocation
User interface control
Which OS is based on open-source software?
Windows
Linux
macOS
DOS
Which type of operating system is designed to serve many users simultaneously?
Real-Time OS
Multi-user OS
Embedded OS
Single-user OS
In which OS type is response time very critical?
Batch OS
Multi-user OS
Real-time OS
Network OS
Which command in Linux shows the current working directory?
pwd
ls
cd
dir
What is a file system?
A software update system
A backup routine
A method of storing and organizing files
A scheduler
Which component keeps track of all processes?
Shell
Memory
Scheduler
Process Table
What is the default shell in most Linux distributions?
zsh
ksh
bash
csh
Which command is used to terminate a process in Unix/Linux?
pause
quit
kill
exit
Which of the following is a multi-tasking OS?
MS-DOS
Windows 10
CP/M
Apple DOS
In Linux, what does the `chmod` command do?
Changes file name
Changes file permissions
Changes directory
Moves a file
Which memory is directly accessible by the CPU?
Secondary
Hard disk
RAM
USB
What is swapping in OS?
Replacing files
Sharing printers
Moving process between memory and disk
Rebooting the system
Which of the following is a command line interface?
Windows Explorer
Finder
Bash
Nautilus
What does booting mean?
Formatting a disk
Loading the operating system
Restarting the printer
Connecting to the internet
Which of the following is a deadlock prevention technique?
Mutual exclusion
Circular wait
Hold and wait
Preemption
What does the term 'thrashing' refer to in an OS?
File corruption
CPU overload
High page fault rate
Power failure
Which algorithm is used in the Linux Completely Fair Scheduler (CFS)?
Round Robin
Priority Scheduling
Weighted Fair Queuing
Red-Black Tree
Which memory allocation strategy suffers the most from external fragmentation?
Paging
Segmentation
Contiguous allocation
Virtual Memory
What is the role of a device driver in an OS?
Encrypts the file system
Provides a GUI for users
Manages hardware communication
Controls networking permissions
Which of these is not a function of the OS’s memory manager?
Allocation of memory
Protection and sharing
CPU scheduling
Swapping
Which type of scheduling allows the highest priority process to run first, preempting others?
FCFS
Round Robin
Shortest Job First
Preemptive Priority Scheduling
In paging, what does the page table store?
Data in disk blocks
Virtual memory layout
Mapping of virtual pages to physical frames
File pointers
Which of these is not a benefit of multithreading?
Efficient CPU utilization
Improved responsiveness
Reduced context switching
Slower performance
Which Linux command displays information about system processes?
df
top
ifconfig
whoami
Which of these is a valid inter-process communication method?
Mutex
Queue
Pipe
All of the above
Which scheduling algorithm is designed for time-sharing systems?
FCFS
Round Robin
Shortest Job Next
Priority
The main difference between segmentation and paging is:
Segments are of fixed size, pages are variable
Paging is faster
Segments are logical units, pages are physical units
Paging supports only one process
What is the major drawback of First-Come-First-Served scheduling?
Starvation
Thrashing
High overhead
Long average wait time
Which data structure is used to implement a ready queue?
Stack
Queue
Linked List
Tree
The ‘nice’ value in Linux affects:
File system priority
Process priority
Thread synchronization
Kernel operations
What does 'context switching' mean in operating systems?
Swapping memory
Changing user credentials
Saving the state of one process and loading another
Switching screens
Which one is not part of the process control block (PCB)?
Process ID
Program counter
Kernel source code
CPU registers
The fork() system call:
Terminates a process
Duplicates a process
Loads a new program
Clears memory
A semaphore is used to:
Measure speed
Control access to shared resources
Manage cache
Handle device drivers
