Notice: Due to an ongoing migration of our storage and publishing system, material requested since last month will not be uploaded for the time being, and new requests are paused. All existing notes remain available.
You're offline
Unit 4 MCQsOperating Systems
DECAP145 ·
60 questions. Pick an option to check it.
Answer: System software that manages hardware and software resources
An operating system is system software that manages a computer's hardware and software resources and provides services for programs.
Question 2 of 60 · Operating system basics · Easy
Which of the following is an example of an operating system?
Not quite. Try another option.
Answer: Windows
Windows is an operating system. Word, Chrome, and Photoshop are application programs that run on top of an OS.
Question 3 of 60 · Operating system basics · Easy
The operating system is loaded into memory during which process?
Not quite. Try another option.
Answer: Booting
Booting is the process of starting the computer and loading the operating system into memory.
Question 4 of 60 · Purpose of the operating system · Easy
What is one of the main purposes of an operating system?
Not quite. Try another option.
Answer: To act as an interface between the user and the hardware
A key purpose of the OS is to serve as an interface between the user and the computer hardware.
Question 5 of 60 · Purpose of the operating system · Easy
Which of the following is NOT a purpose of an operating system?
Not quite. Try another option.
Answer: Editing photos
Editing photos is done by application software. Managing memory, running programs, and files are OS functions.
Question 6 of 60 · Purpose of the operating system · Easy
The operating system helps in the efficient use of which resource?
Not quite. Try another option.
Answer: Computer memory and CPU
The OS manages and allocates system resources such as memory and CPU time for efficient use.
Question 7 of 60 · Types of operating system · Easy
An operating system that allows multiple users to access the computer at the same time is called a?
Not quite. Try another option.
Answer: Multi-user OS
A multi-user operating system lets more than one user work on the system simultaneously.
Question 8 of 60 · Types of operating system · Easy
Which type of operating system processes jobs in groups without user interaction during execution?
Not quite. Try another option.
Answer: Batch operating system
A batch operating system groups similar jobs together and processes them without direct user interaction.
Question 9 of 60 · Types of operating system · Easy
An operating system used in devices that require immediate response, like medical or industrial systems, is a?
Not quite. Try another option.
Answer: Real-time operating system
A real-time operating system responds to inputs instantly and is used where timing is critical.
Question 10 of 60 · Types of operating system · Easy
Which type of OS allows a single user to run multiple programs at the same time?
Not quite. Try another option.
Answer: Single-user multitasking OS
A single-user multitasking OS lets one user run several programs simultaneously, such as browsing while playing music.
Question 11 of 60 · Providing a user interface · Easy
A user interface that uses icons, windows, and a mouse is called a?
Not quite. Try another option.
Answer: Graphical user interface
A graphical user interface (GUI) uses visual elements like icons, windows, and a pointer for interaction.
Question 12 of 60 · Providing a user interface · Easy
In which type of interface does the user type text commands to interact with the computer?
Not quite. Try another option.
Answer: Command-line interface
A command-line interface (CLI) requires the user to type text-based commands to perform tasks.
Question 13 of 60 · Providing a user interface · Easy
What does GUI stand for?
Not quite. Try another option.
Answer: Graphical User Interface
GUI stands for Graphical User Interface, which lets users interact using graphics rather than only text.
Question 14 of 60 · Running Programs · Easy
When you open an application, the operating system loads it into which part of the computer to run it?
Not quite. Try another option.
Answer: Main memory (RAM)
To run a program, the OS loads it from storage into main memory (RAM) where the CPU can execute it.
Question 15 of 60 · Running Programs · Easy
A program that is currently running or being executed is known as a?
Not quite. Try another option.
Answer: Process
A process is a program in execution. The OS manages processes to run programs correctly.
Question 16 of 60 · Running Programs · Easy
The ability of an operating system to run several programs at once is called?
Not quite. Try another option.
Answer: Multitasking
Multitasking is the OS capability that allows multiple programs to run at the same time.
Question 17 of 60 · Sharing Information · Easy
The feature that lets you move data between programs by copying from one and pasting into another is supported by the?
Not quite. Try another option.
Answer: Operating system's clipboard
The OS provides a clipboard that temporarily holds copied data so it can be shared between programs.
Question 18 of 60 · Sharing Information · Easy
Which OS feature allows different users on a network to access the same files?
Not quite. Try another option.
Answer: File sharing
File sharing is an OS feature that lets multiple users access the same files over a network.
Question 19 of 60 · Managing Hardware · Easy
A small program that lets the operating system communicate with a hardware device is called a?
Not quite. Try another option.
Answer: Device driver
A device driver is software that allows the operating system to communicate with and control a hardware device.
Question 20 of 60 · Enhancing an OS with utility software · Easy
Which of the following is an example of utility software?
Not quite. Try another option.
Answer: Antivirus program
Antivirus is utility software that helps maintain and protect the system, enhancing the OS.
Question 21 of 60 · Operating system basics · Medium
A user turns on a computer and notices that programs, hardware, and files all become accessible through a single coordinating layer of software. Which characteristic of an operating system does this best illustrate?
Not quite. Try another option.
Answer: It acts as an intermediary between the user and the computer hardware
The OS sits between users/applications and hardware, coordinating access to resources. It does not store documents in ROM, replace applications, or act as a compiler.
Question 22 of 60 · Purpose of the operating system · Medium
Two applications request to use the printer at the same time. The OS queues one request while the other prints. Which core purpose of an operating system is demonstrated here?
Not quite. Try another option.
Answer: Resource management
Managing shared resources like the printer among competing programs is a core OS purpose. Compilation, encryption, and rendering are handled by other software.
Question 23 of 60 · Types of operating system · Medium
An airline ticketing system must respond to input within strict, guaranteed time limits or the process fails. Which type of operating system is most appropriate?
Not quite. Try another option.
Answer: Real-time operating system
Real-time operating systems guarantee responses within fixed deadlines, making them suitable for time-critical tasks. Batch systems process jobs without immediate response requirements.
Question 24 of 60 · Types of operating system · Medium
A company runs payroll by collecting all employee data and processing it together overnight without user interaction. Which type of OS matches this workflow?
Not quite. Try another option.
Answer: Batch operating system
Batch systems group similar jobs and process them together without user interaction, ideal for scheduled bulk tasks like overnight payroll.
Question 25 of 60 · Providing a user interface · Medium
A network administrator prefers typing commands to configure servers quickly rather than clicking through windows. Which type of user interface is the administrator using?
Not quite. Try another option.
Answer: Command-line interface (CLI)
A CLI accepts typed text commands and is often faster for experienced users performing configuration tasks. A GUI relies on visual elements like windows and icons.
Question 26 of 60 · Providing a user interface · Medium
In a graphical user interface, a user drags a file icon onto a folder icon to move it. This interaction style is best described as which of the following?
Not quite. Try another option.
Answer: Direct manipulation of on-screen objects
GUIs use direct manipulation, where users interact with visual objects like icons through actions such as dragging. This differs from typing commands or submitting batch jobs.
Question 27 of 60 · Running Programs · Medium
When you double-click an application, the OS loads its instructions from disk into main memory before execution begins. What is this activity primarily called?
Not quite. Try another option.
Answer: Loading a program into memory
Before a program runs, the OS must load it from storage into RAM. Compiling, defragmenting, and formatting are unrelated to launching an existing executable.
Question 28 of 60 · Running Programs · Medium
A user runs a web browser, a music player, and a word processor at once on a modern OS, and all appear to run simultaneously on a single CPU. Which OS capability makes this possible?
Not quite. Try another option.
Answer: Multitasking
Multitasking lets the OS rapidly switch the CPU among several programs so they appear to run at the same time. Single-tasking allows only one program at a time.
Question 29 of 60 · Running Programs · Medium
A program stops responding, and the user opens a system tool to force it to close without restarting the computer. Which OS function is being used?
Not quite. Try another option.
Answer: Process management (terminating a process)
The OS manages running programs as processes and can terminate an unresponsive one. This is part of process management, not formatting, BIOS updates, or compression.
Question 30 of 60 · Sharing Information · Medium
A user copies text from a spreadsheet and pastes it into a word processor. Which OS feature enables this transfer of data between applications?
Not quite. Try another option.
Answer: The clipboard
The OS clipboard temporarily holds data during copy-and-paste, allowing information to move between programs. The registry and boot loader serve other system functions.
Question 31 of 60 · Sharing Information · Medium
Several users on a network need to access the same folder of documents stored on one server. Which OS feature makes this controlled shared access possible?
Not quite. Try another option.
Answer: File sharing with access permissions
Network operating systems provide file sharing controlled by permissions so multiple users can access the same files safely. The other options do not relate to shared access.
Question 32 of 60 · Managing Hardware · Medium
After installing a new printer, the OS needs a small piece of software to communicate correctly with it. What is this software called?
Not quite. Try another option.
Answer: A device driver
A device driver translates OS instructions into commands a specific hardware device understands. Without the correct driver, the OS cannot properly control the device.
Question 33 of 60 · Managing Hardware · Medium
A running program has more data than fits in RAM, so the OS temporarily moves some data to disk to free up memory. What is this technique called?
Not quite. Try another option.
Answer: Virtual memory (paging)
Virtual memory uses disk space to extend available RAM by paging data in and out. This lets programs use more memory than is physically installed.
Question 34 of 60 · Managing Hardware · Medium
When a keyboard key is pressed, the hardware signals the CPU, which pauses its current task to handle the input. What mechanism is the OS using here?
Not quite. Try another option.
Answer: Interrupt handling
Hardware devices use interrupts to notify the CPU that they need attention. The OS handles these interrupts so devices like keyboards get timely service.
Question 35 of 60 · Enhancing an OS with utility software · Medium
A hard drive has become slow because files are scattered in noncontiguous pieces. Which utility program would most directly improve performance?
Not quite. Try another option.
Answer: Disk defragmenter
A defragmenter reorganizes fragmented files into contiguous blocks, improving access speed on magnetic drives. The other utilities do not address fragmentation.
Question 36 of 60 · Enhancing an OS with utility software · Medium
A user wants to reduce the size of a large folder before emailing it. Which type of utility software is most appropriate?
Not quite. Try another option.
Answer: File compression utility
Compression utilities shrink file or folder size to save space and ease transfer. Partitioning and registry tools serve unrelated system purposes.
Question 37 of 60 · Enhancing an OS with utility software · Medium
A company wants automatic protection that detects and removes malicious software before it damages files. Which utility should they install?
Not quite. Try another option.
Answer: Antivirus software
Antivirus utilities detect, quarantine, and remove malware to protect the system. Defragmenters and backup tools serve maintenance and recovery, not threat removal.
Question 38 of 60 · Types of operating system · Medium
A smartwatch runs a compact OS built into the device with limited resources dedicated to specific functions. Which type of operating system is this?
Not quite. Try another option.
Answer: Embedded operating system
Embedded operating systems run on dedicated devices with limited resources and fixed functions, such as smartwatches and appliances.
Question 39 of 60 · Purpose of the operating system · Medium
A user relies on the OS to organize files into folders, name them, and control where they are saved on disk. Which OS purpose does this describe?
Not quite. Try another option.
Answer: File management
The OS provides file management to create, organize, name, and store files in a structured directory system. This is distinct from compiling or calibration.
Question 40 of 60 · Operating system basics · Medium
When a computer is switched on, a small program loads the core of the operating system into memory so the machine becomes usable. This start-up process is best known as which of the following?
Not quite. Try another option.
Answer: Booting
Booting is the start-up process where the system loads the OS kernel into memory. Debugging, encrypting, and rendering are unrelated to system start-up.
Question 41 of 60 · Operating system basics · Hard
A system boots and the bootloader loads the kernel into memory. Which sequence correctly describes what must happen before user applications can be launched?
Not quite. Try another option.
Answer: Kernel initializes hardware and device drivers, mounts the root file system, then starts the first user-space process
After the bootloader loads it, the kernel initializes hardware and drivers, mounts the root file system, and only then spawns the first user-space process (e.g., init/systemd), which brings up remaining services and allows applications to run.
Question 42 of 60 · Purpose of the operating system · Hard
Two applications simultaneously request the printer. The OS queues one and lets the other proceed. This behavior most directly demonstrates which core purpose of the OS?
Not quite. Try another option.
Answer: Acting as a resource manager that arbitrates contention for shared devices
A central purpose of the OS is resource management. When multiple programs contend for one device, the OS arbitrates access (here via a print queue) so the resource is shared safely and orderly.
Question 43 of 60 · Types of operating system · Hard
An air-traffic collision-avoidance system must guarantee that a response is produced within a strict deadline, and missing that deadline is considered a system failure. Which OS type is required?
Not quite. Try another option.
Answer: Hard real-time operating system
A hard real-time OS guarantees deadlines are met; a missed deadline is a failure. Soft real-time only degrades quality on misses, and time-sharing/batch systems make no timing guarantees at all.
Question 44 of 60 · Running Programs · Hard
A process makes a system call to read from disk and is moved off the CPU while the I/O completes. Which state transition best describes this?
Not quite. Try another option.
Answer: Running → Blocked (waiting)
When a running process issues a blocking I/O request, it cannot continue until data arrives, so it transitions to the Blocked/waiting state. It returns to Ready (not directly to Running) once the I/O completes.
Question 45 of 60 · Managing Hardware · Hard
Why does modern hardware provide two CPU privilege modes (user mode and kernel mode) rather than running everything in one mode?
Not quite. Try another option.
Answer: To prevent user programs from directly executing privileged instructions that could corrupt the system
Dual-mode operation protects the system: privileged instructions (I/O, memory-management setup) run only in kernel mode. User programs must request such operations through system calls, which the kernel validates, preventing accidental or malicious corruption.
Question 46 of 60 · Providing a user interface · Hard
A power user automates a nightly backup that must run without human presence and adapt using conditional logic. Which interface characteristic makes a command-line/shell interface preferable to a GUI here?
Not quite. Try another option.
Answer: Commands can be scripted and executed non-interactively with programmable control flow
CLIs support scripting: commands, loops, and conditionals can be saved and run unattended on a schedule. GUIs are optimized for interactive point-and-click use and are hard to automate reliably.
Question 47 of 60 · Sharing Information · Hard
Two cooperating processes exchange data through a shared memory region. What must the OS or the programmer additionally provide to prevent inconsistent reads and writes?
Not quite. Try another option.
Answer: A synchronization mechanism such as semaphores or mutexes
Shared memory is the fastest IPC method but offers no built-in coordination. Without synchronization primitives (semaphores, mutexes), concurrent access creates race conditions and inconsistent data.
Question 48 of 60 · Managing Hardware · Hard
A program references a virtual address whose page is not currently in RAM. What mechanism does the OS use to handle this so the program continues correctly?
Not quite. Try another option.
Answer: A page fault triggers the OS to load the required page from disk into a frame
In virtual memory, referencing an absent page raises a page fault. The OS pauses the process, loads the page from backing store into a physical frame, updates the page table, and resumes execution transparently.
Question 49 of 60 · Types of operating system · Hard
A cluster of networked computers presents itself to users as a single coherent machine, coordinating processes across nodes transparently. This best describes which type of OS?
Not quite. Try another option.
Answer: Distributed operating system
A distributed OS manages a collection of independent networked computers and makes them appear to users as one system, coordinating resources and processes across nodes transparently.
Question 50 of 60 · Enhancing an OS with utility software · Hard
After long use, a mechanical hard disk shows slower file access because files are stored in non-contiguous blocks. Which utility directly addresses this, and why is it unnecessary on SSDs?
Not quite. Try another option.
Answer: A defragmenter; SSDs have no moving read/write head so contiguous layout gives no seek benefit
Defragmentation reorders fragmented files into contiguous blocks to reduce mechanical seek time. SSDs access any block in roughly constant time, so defragmenting gives no speed gain and only adds unnecessary writes.
Question 51 of 60 · Running Programs · Hard
Under a preemptive scheduler, a process with a lower priority is repeatedly bypassed by higher-priority processes and never gets CPU time. What is this condition called, and what technique commonly resolves it?
Not quite. Try another option.
Answer: Starvation; resolved by aging that gradually raises a waiting process's priority
Indefinite postponement of a low-priority process is starvation. Aging combats it by incrementally increasing the priority of a process the longer it waits, so it eventually runs.
Question 52 of 60 · Managing Hardware · Hard
Compared with polling, why do modern operating systems prefer interrupt-driven I/O for handling device events?
Not quite. Try another option.
Answer: The CPU can do useful work and is notified only when the device needs attention
Polling wastes CPU cycles by continuously checking device status. Interrupts let the CPU perform other work and respond only when the device signals readiness, greatly improving efficiency.
Question 53 of 60 · Purpose of the operating system · Hard
An OS exposes a consistent open()/read()/write() interface so a program can access a file the same way regardless of whether it lives on an SSD, USB drive, or network share. This illustrates which OS role?
Not quite. Try another option.
Answer: Providing abstraction that hides hardware differences behind a uniform interface
The OS abstracts diverse hardware behind uniform interfaces (like the file API). Programs use the same calls regardless of the underlying device, with device drivers translating to hardware specifics.
Question 54 of 60 · Running Programs · Hard
A single-core CPU appears to run many programs "at the same time." What is actually happening at the hardware level?
Not quite. Try another option.
Answer: The OS rapidly time-slices the CPU among processes via context switching (concurrency)
On a single core there is no true parallelism. The scheduler interleaves processes by switching contexts quickly, creating the illusion of simultaneous execution. This is concurrency, not parallelism.
Question 55 of 60 · Sharing Information · Hard
A web server process and a logging process on the same machine must exchange a continuous stream of bytes, where the writer may run faster than the reader. Which IPC mechanism naturally provides buffered, unidirectional streaming with flow control?
Not quite. Try another option.
Answer: A pipe
A pipe provides a buffered, unidirectional byte stream between processes. The kernel blocks the writer when the buffer is full and the reader when it is empty, giving built-in flow control ideal for producer-consumer streaming.
Question 56 of 60 · Types of operating system · Hard
A mainframe collects large numbers of jobs, groups similar ones, and executes them without user interaction to maximize throughput. Which OS type is this, and what is its main user-experience drawback?
Not quite. Try another option.
Answer: Batch OS; long turnaround time with no interactivity
A batch OS runs grouped jobs without user interaction to maximize throughput. Because a user cannot interact with a job once submitted and must wait for results, turnaround time is long.
Question 57 of 60 · Managing Hardware · Hard
Four processes each hold one resource and each waits for a resource held by another, forming a cycle. No process can proceed. Which set of conditions is fully present here?
Not quite. Try another option.
Answer: Mutual exclusion, hold-and-wait, no preemption, and circular wait
This is a deadlock. All four Coffman conditions must hold simultaneously: mutual exclusion, hold-and-wait, no preemption, and circular wait. Breaking any one prevents deadlock.
Question 58 of 60 · Enhancing an OS with utility software · Hard
A user notices constant disk activity and severe slowdown while many applications are open, though the CPU is mostly idle waiting on I/O. Which OS-level phenomenon does a system-monitor utility most likely reveal?
Not quite. Try another option.
Answer: Thrashing caused by excessive paging between RAM and disk
When demand for memory exceeds available RAM, the OS spends most of its time swapping pages in and out rather than executing processes. This is thrashing: heavy disk I/O, high paging, and an idle CPU.
Question 59 of 60 · Providing a user interface · Hard
In a typical modern OS, why is the GUI implemented largely in user space rather than entirely inside the kernel?
Not quite. Try another option.
Answer: To keep the kernel smaller and more stable so a GUI crash does not take down the whole system
Keeping the GUI in user space improves reliability and security: a failure in the interface does not crash the kernel. It also keeps the kernel modular. Core graphics access still goes through kernel-managed drivers.
Question 60 of 60 · Operating system basics · Hard
Consider the claim: "A microkernel is inherently faster than a monolithic kernel." Why is this generally false?
Not quite. Try another option.
Answer: Microkernels move services to user space, so extra message passing and mode switches add overhead
Microkernels keep only essentials in kernel space and run services (drivers, file systems) as user-space processes. This improves modularity and reliability but the added inter-process message passing and mode switches typically make them slower than monolithic kernels for many workloads.
That's unit 4
Answer a few questions and your score shows up here.
Nearly through. Did unit 4 of DECAP145 save you a night before the exam?
LPU Notes is free. A student pays for the servers.
Did unit 4 of DECAP145 save you a night before the exam?
Then you can help keep it free for the next batch. Ads cover part of the server bill;
the rest comes out of a student's own pocket: the domain, the storage, and keeping
the site up through the weeks everyone needs it at once.
The payment button didn't load. An ad blocker or a filtered network is the usual reason.
to try again.