Operating System Fundamentals Beginner Quiz
30 questions on Operating System Fundamentals – Complete Beginner to Advanced Guide.
Question 1: What is an Operating System (OS)?
- A. A physical hardware chip inside the computer
- B. Software that manages computer hardware, software resources, and provides common services for computer programs — (correct answer)
- C. An antivirus program
- D. A video editing application
Explanation: The OS acts as the middleman between the user/applications and the physical hardware of the computer.
Question 2: What is the core component of an Operating System that manages hardware directly?
- A. The Shell
- B. The GUI
- C. The Kernel — (correct answer)
- D. The Bootloader
Explanation: The kernel is the heart of the OS. It has complete control over everything in the system, managing CPU, memory, and devices.
Question 3: What is a "Process" in OS terminology?
- A. A physical CPU
- B. A program in execution — (correct answer)
- C. A saved file
- D. A hardware error
Explanation: When you open Google Chrome, the OS takes the Chrome program from the hard drive and runs it as an active "Process" in RAM.
Question 4: What is a "Thread"?
- A. A string of code
- B. A lightweight, smaller unit of execution within a Process — (correct answer)
- C. A type of network cable
- D. A virus
Explanation: A web browser is a Process, but opening multiple tabs usually creates multiple Threads inside that single Process.
Question 5: What is CPU Scheduling?
- A. Turning the computer on and off at set times
- B. The OS deciding which process in the ready queue gets to use the CPU and for how long — (correct answer)
- C. Overclocking the processor
- D. Buying a new CPU
Explanation: Since you run hundreds of processes simultaneously, the OS scheduler rapidly switches the CPU between them to create the illusion of multitasking.
Question 6: Which scheduling algorithm executes processes in the exact order they arrive?
- A. Round Robin
- B. Shortest Job First
- C. First-Come, First-Served (FCFS) — (correct answer)
- D. Priority Scheduling
Explanation: FCFS is simple but can lead to the "Convoy Effect," where a long process delays all the short processes behind it.
Question 7: What is "Round Robin" scheduling?
- A. Running processes in a random order
- B. Giving each process a fixed, equal time slice (quantum), moving to the next process, and cycling through them repeatedly — (correct answer)
- C. Running only the shortest processes
- D. Skipping background processes
Explanation: Round Robin ensures fairness. Every process gets a fair share of CPU time, preventing any one app from freezing the whole computer.
Question 8: What is Virtual Memory?
- A. Memory stored in the cloud
- B. A technique where the OS uses a portion of the hard drive as if it were RAM, creating the illusion of a massive main memory — (correct answer)
- C. Upgrading your RAM sticks
- D. Memory used by Virtual Reality headsets
Explanation: When you run out of physical RAM, the OS temporarily moves inactive data to the hard drive (Paging/Swapping) so the computer doesn't crash.
Question 9: What is a "Page Fault"?
- A. A rip in a physical book
- B. When a program tries to access data that is currently not in physical RAM, forcing the OS to fetch it from the hard drive — (correct answer)
- C. A syntax error in code
- D. A broken RAM stick
Explanation: Page faults slow down the system because fetching data from a hard drive is significantly slower than reading it directly from RAM.
Question 10: What is an Operating System "Shell"?
- A. The protective case of a laptop
- B. The user interface (either graphical or command-line) that allows the user to interact with the Kernel — (correct answer)
- C. A type of malware
- D. The power supply
Explanation: The Shell wraps around the Kernel. Windows Explorer (GUI) and Bash (Command Line) are both examples of Shells.
Question 11: What is a System Call?
- A. A phone call made over the internet
- B. The mechanism a user-level program uses to request a privileged service (like reading a file or opening a network port) from the OS kernel — (correct answer)
- C. A crash report sent to Microsoft
- D. The system booting up
Explanation: Apps cannot directly access the hard drive. They must politely ask the Kernel to do it via a System Call (like read() or write()).
Question 12: What is the difference between "User Mode" and "Kernel Mode"?
- A. User Mode is for playing games, Kernel Mode is for work
- B. Kernel Mode has unrestricted access to hardware; User Mode is heavily restricted for safety — (correct answer)
- C. User mode requires a password, Kernel mode does not
- D. They are exactly the same
Explanation: If a program crashes in User Mode, only the program dies. If a program crashes in Kernel Mode, the entire OS crashes (Blue Screen of Death).
Question 13: What is a "Deadlock"?
- A. When the computer turns off
- B. A situation where two or more processes are stuck waiting indefinitely for resources held by each other — (correct answer)
- C. A broken hard drive
- D. A frozen mouse cursor
Explanation: Imagine Process A has the Printer but needs the Scanner. Process B has the Scanner but needs the Printer. Neither will release their resource. They are deadlocked.
Question 14: What is a Device Driver?
- A. A person who transports hardware
- B. A small piece of software that tells the OS exactly how to communicate with a specific piece of hardware (like a printer or GPU) — (correct answer)
- C. A steering wheel for racing games
- D. A USB flash drive
Explanation: Without drivers, the OS wouldn't know how to send colors to your monitor or print ink on paper.
Question 15: What is the "File System"?
- A. A physical filing cabinet
- B. The method and data structure the OS uses to organize, store, and retrieve files on a storage disk — (correct answer)
- C. The internet
- D. The RAM
Explanation: Common file systems include NTFS (Windows), APFS (Mac), and ext4 (Linux). They define how data is indexed on the drive.
Question 16: What is a Bootloader?
- A. The power button
- B. A small program that runs the moment the PC turns on, responsible for finding and loading the Operating System into RAM — (correct answer)
- C. A virus that loads on startup
- D. The desktop wallpaper
Explanation: GRUB (for Linux) and Windows Boot Manager are common bootloaders. They bridge the gap between the motherboard's BIOS and the OS.
Question 17: What does "Context Switching" refer to?
- A. Changing the desktop theme
- B. The process of the CPU stopping one process, saving its exact state, and loading the state of a different process to run it — (correct answer)
- C. Unplugging a monitor
- D. Switching between Windows and Linux
Explanation: Context switching happens thousands of times a second. It is what allows you to listen to Spotify while typing in a Word document seamlessly.
Question 18: What is an Interrupt?
- A. A pop-up ad
- B. A signal to the processor from hardware or software indicating an event that needs immediate attention — (correct answer)
- C. A power failure
- D. A broken keyboard
Explanation: When you press a key on your keyboard, it sends a hardware interrupt. The CPU instantly drops what it's doing to process the keystroke.
Question 19: What is Multithreading?
- A. Using multiple monitors
- B. A technique where a single process generates multiple concurrent threads to perform tasks simultaneously, speeding up execution — (correct answer)
- C. A sewing technique
- D. Having multiple accounts on one PC
Explanation: A video game uses multithreading: one thread handles the graphics, another handles the audio, and another handles the artificial intelligence.
Question 20: What does a Mutex (Mutual Exclusion object) do?
- A. Mutes the computer's audio
- B. Acts as a lock to prevent multiple threads from accessing the exact same shared data simultaneously, preventing data corruption — (correct answer)
- C. Deletes files
- D. Excludes users from logging in
Explanation: If two threads try to update the exact same bank balance variable at the exact same microsecond, the math will be wrong. A Mutex forces them to take turns.
Question 21: What is the difference between Preemptive and Non-Preemptive scheduling?
- A. Preemptive means the OS can forcibly pause a running process; Non-preemptive means the OS must wait for the process to voluntarily yield the CPU — (correct answer)
- B. There is no difference
- C. Preemptive is for Windows, Non-preemptive is for Mac
- D. Preemptive scheduling is slower
Explanation: Modern OSs (Windows, Linux, iOS) are all Preemptive. If they weren't, one badly written app could freeze the entire phone forever.
Question 22: What is Swapping in memory management?
- A. Trading hardware parts
- B. Moving entire processes back and forth between main memory (RAM) and the secondary storage (Hard Drive) to free up space — (correct answer)
- C. Swapping the mouse buttons
- D. Changing the CPU
Explanation: Swapping prevents out-of-memory crashes but slows the system down if it happens too frequently ("Thrashing").
Question 23: Which of the following is an example of a Real-Time Operating System (RTOS)?
- A. Windows 11
- B. macOS
- C. An OS controlling a pacemaker, car airbags, or industrial robots where timing is critical — (correct answer)
- D. Android
Explanation: An RTOS guarantees a response within strict microsecond deadlines. If Windows lags for a second, it's annoying. If an airbag lags for a second, it's fatal.
Question 24: What is Spooling?
- A. Winding a cable
- B. A process of placing data in a temporary working area (like a buffer) for another program to process at its own pace (e.g., Print Spooler) — (correct answer)
- C. Deleting old files
- D. Increasing CPU speed
Explanation: The CPU can generate a document 1000x faster than a printer can print it. The CPU spools the document to disk, allowing you to keep working while the printer slowly prints.
Question 25: What is a GUI?
- A. Graphic Universal Internet
- B. Graphical User Interface - An OS interface allowing users to interact using windows, icons, and a mouse — (correct answer)
- C. Global User Index
- D. Generic User ID
Explanation: Windows and macOS are primarily GUI operating systems, whereas Linux Servers often lack a GUI and rely on a CLI (Command Line Interface).
Question 26: What is Thrashing?
- A. Beating a computer
- B. A severe performance collapse where the OS spends more time swapping data between RAM and the Hard Drive than executing actual processes — (correct answer)
- C. Deleting a lot of files
- D. A virus attack
Explanation: If you open 500 Chrome tabs on a laptop with 4GB of RAM, the system will Thrash. The only solution is to close apps or buy more RAM.
Question 27: What is a Semaphore?
- A. A networking protocol
- B. A synchronization variable (usually an integer counter) used to control access to a common resource by multiple processes to avoid deadlocks — (correct answer)
- C. A visual graph of CPU usage
- D. A system log
Explanation: Invented by Edsger Dijkstra, semaphores are a fundamental tool in operating system design to manage concurrency.
Question 28: What is "Demand Paging"?
- A. Printing pages on demand
- B. A memory management technique where pages of a program are loaded into RAM only when they are actually needed (demanded) during execution — (correct answer)
- C. Requesting a website page
- D. Paging a developer on call
Explanation: Instead of loading a massive 50GB game into RAM all at once, the OS only loads the level you are currently playing.
Question 29: In OS security, what is the Principle of Least Privilege?
- A. Everyone should be an admin
- B. Giving a user, program, or process only the bare minimum permissions necessary to perform its specific task — (correct answer)
- C. Using weak passwords
- D. Deleting user accounts
Explanation: If a calculator app gets hacked, but it doesn't have privileges to access the network or read personal files, the damage is contained.
Question 30: What does a Monolithic Kernel do differently than a Microkernel?
- A. Monolithic kernels are only for mobile phones
- B. In a Monolithic kernel, all OS services (file system, device drivers, network stack) run in the same privileged Kernel space for faster performance — (correct answer)
- C. Monolithic kernels are written in Java
- D. There is no difference
Explanation: Linux is a Monolithic kernel. It is very fast, but if a single graphics driver crashes, the whole kernel can crash. Microkernels isolate services for safety.