Unit 4: Operating Systems - Practice Quiz

DECAP145 60 Questions
0 Correct 0 Wrong 60 Left
0/60

1 What is an operating system?

Operating system basics Easy
A. A hardware component inside the CPU
B. A programming language used to build apps
C. A type of application software for editing documents
D. System software that manages hardware and software resources

2 Which of the following is an example of an operating system?

Operating system basics Easy
A. Microsoft Word
B. Adobe Photoshop
C. Windows
D. Google Chrome

3 The operating system is loaded into memory during which process?

Operating system basics Easy
A. Booting
B. Debugging
C. Formatting
D. Compiling

4 What is one of the main purposes of an operating system?

Purpose of the operating system Easy
A. To manufacture computer hardware
B. To provide internet connectivity by itself
C. To design the physical circuits of the CPU
D. To act as an interface between the user and the hardware

5 Which of the following is NOT a purpose of an operating system?

Purpose of the operating system Easy
A. Editing photos
B. Running programs
C. Managing memory
D. Managing files

6 The operating system helps in the efficient use of which resource?

Purpose of the operating system Easy
A. Office furniture
B. Printed paper documents
C. Computer memory and CPU
D. Electric wiring in the building

7 An operating system that allows multiple users to access the computer at the same time is called a?

Types of operating system Easy
A. Embedded OS
B. Multi-user OS
C. Batch OS
D. Single-user OS

8 Which type of operating system processes jobs in groups without user interaction during execution?

Types of operating system Easy
A. Batch operating system
B. Time-sharing OS
C. Real-time OS
D. Distributed OS

9 An operating system used in devices that require immediate response, like medical or industrial systems, is a?

Types of operating system Easy
A. Real-time operating system
B. Network operating system
C. Single-user operating system
D. Batch operating system

10 Which type of OS allows a single user to run multiple programs at the same time?

Types of operating system Easy
A. Batch OS
B. Single-user single-tasking OS
C. Read-only OS
D. Single-user multitasking OS

11 A user interface that uses icons, windows, and a mouse is called a?

Providing a user interface Easy
A. Graphical user interface
B. Menu-driven text interface
C. Command-line interface
D. Voice-only interface

12 In which type of interface does the user type text commands to interact with the computer?

Providing a user interface Easy
A. Command-line interface
B. Graphical user interface
C. Icon-based interface
D. Touch interface

13 What does GUI stand for?

Providing a user interface Easy
A. General User Instruction
B. Global Update Installer
C. Guided Utility Interface
D. Graphical User Interface

14 When you open an application, the operating system loads it into which part of the computer to run it?

Running Programs Easy
A. Main memory (RAM)
B. The hard disk permanently
C. The printer buffer
D. The monitor screen

15 A program that is currently running or being executed is known as a?

Running Programs Easy
A. Process
B. File
C. Folder
D. Driver

16 The ability of an operating system to run several programs at once is called?

Running Programs Easy
A. Formatting
B. Encryption
C. Booting
D. Multitasking

17 The feature that lets you move data between programs by copying from one and pasting into another is supported by the?

Sharing Information Easy
A. Disk formatter
B. Printer driver
C. Operating system's clipboard
D. Screen saver

18 Which OS feature allows different users on a network to access the same files?

Sharing Information Easy
A. Text editing
B. File sharing
C. Screen locking
D. Disk cleanup

19 A small program that lets the operating system communicate with a hardware device is called a?

Managing Hardware Easy
A. Spreadsheet
B. Search engine
C. Device driver
D. Web browser

20 Which of the following is an example of utility software?

Enhancing an OS with utility software Easy
A. Video game
B. Antivirus program
C. Word processor
D. Web browser

21 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?

Operating system basics Medium
A. It acts as an intermediary between the user and the computer hardware
B. It replaces the need for application software
C. It compiles high-level source code into machine code
D. It permanently stores all user documents in ROM

22 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?

Purpose of the operating system Medium
A. Source code compilation
B. Data encryption
C. Web page rendering
D. Resource management

23 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?

Types of operating system Medium
A. Single-user single-tasking system
B. Distributed backup system
C. Batch operating system
D. Real-time operating system

24 A company runs payroll by collecting all employee data and processing it together overnight without user interaction. Which type of OS matches this workflow?

Types of operating system Medium
A. Batch operating system
B. Embedded operating system
C. Time-sharing interactive system
D. Real-time operating system

25 A network administrator prefers typing commands to configure servers quickly rather than clicking through windows. Which type of user interface is the administrator using?

Providing a user interface Medium
A. Touch-based interface
B. Graphical user interface (GUI)
C. Voice interface
D. Command-line interface (CLI)

26 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?

Providing a user interface Medium
A. Sequential command entry
B. Kernel-level interrupt handling
C. Batch job submission
D. Direct manipulation of on-screen objects

27 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?

Running Programs Medium
A. Compiling the program
B. Formatting the storage
C. Loading a program into memory
D. Defragmenting the disk

28 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?

Running Programs Medium
A. Cold booting
B. Disk formatting
C. Single-tasking
D. Multitasking

29 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?

Running Programs Medium
A. Memory formatting
B. Process management (terminating a process)
C. File compression
D. BIOS updating

30 A user copies text from a spreadsheet and pastes it into a word processor. Which OS feature enables this transfer of data between applications?

Sharing Information Medium
A. The registry
B. The page file
C. The clipboard
D. The boot loader

31 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?

Sharing Information Medium
A. File sharing with access permissions
B. Disk defragmentation
C. CPU overclocking
D. Screen resolution scaling

32 After installing a new printer, the OS needs a small piece of software to communicate correctly with it. What is this software called?

Managing Hardware Medium
A. A web cookie
B. A device driver
C. A compiler
D. A spreadsheet macro

33 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?

Managing Hardware Medium
A. Disk formatting
B. Virtual memory (paging)
C. Clock speed boosting
D. Cache clearing

34 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?

Managing Hardware Medium
A. Data compression
B. File indexing
C. Batch scheduling
D. Interrupt handling

35 A hard drive has become slow because files are scattered in noncontiguous pieces. Which utility program would most directly improve performance?

Enhancing an OS with utility software Medium
A. Antivirus scanner
B. Disk defragmenter
C. Media player
D. Text editor

36 A user wants to reduce the size of a large folder before emailing it. Which type of utility software is most appropriate?

Enhancing an OS with utility software Medium
A. Screen saver
B. Registry viewer
C. File compression utility
D. Disk partitioning tool

37 A company wants automatic protection that detects and removes malicious software before it damages files. Which utility should they install?

Enhancing an OS with utility software Medium
A. Font manager
B. Backup scheduler
C. Antivirus software
D. Disk defragmenter

38 A smartwatch runs a compact OS built into the device with limited resources dedicated to specific functions. Which type of operating system is this?

Types of operating system Medium
A. Embedded operating system
B. Multi-user server system
C. Batch operating system
D. Distributed operating system

39 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?

Purpose of the operating system Medium
A. Program compilation
B. Interrupt generation
C. Screen calibration
D. File management

40 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?

Operating system basics Medium
A. Booting
B. Encrypting
C. Debugging
D. Rendering

41 A system boots and the bootloader loads the kernel into memory. Which sequence correctly describes what must happen before user applications can be launched?

Operating system basics Hard
A. First user-space process starts, then the kernel loads device drivers on demand from that process
B. Applications load first and request kernel services, which are initialized lazily
C. The bootloader mounts the file system and starts applications, then hands control to the kernel
D. Kernel initializes hardware and device drivers, mounts the root file system, then starts the first user-space process

42 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?

Purpose of the operating system Hard
A. Encrypting the data sent to the printer
B. Acting as a resource manager that arbitrates contention for shared devices
C. Compiling application code into machine instructions
D. Providing a graphical user interface for both applications

43 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?

Types of operating system Hard
A. Time-sharing operating system
B. Batch operating system
C. Soft real-time operating system
D. Hard real-time operating system

44 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?

Running Programs Hard
A. Running → Ready
B. Ready → Running
C. Blocked → Terminated
D. Running → Blocked (waiting)

45 Why does modern hardware provide two CPU privilege modes (user mode and kernel mode) rather than running everything in one mode?

Managing Hardware Hard
A. To prevent user programs from directly executing privileged instructions that could corrupt the system
B. To let device drivers bypass the operating system entirely
C. To make user programs run faster by skipping kernel checks
D. To allow the CPU to switch between 32-bit and 64-bit addressing

46 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?

Providing a user interface Hard
A. The CLI encrypts commands automatically
B. The CLI uses less disk space to store files
C. Commands can be scripted and executed non-interactively with programmable control flow
D. The CLI renders graphics faster than a GUI

47 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?

Sharing Information Hard
A. A dedicated graphics driver
B. A larger swap file on disk
C. A synchronization mechanism such as semaphores or mutexes
D. A separate file for each process

48 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?

Managing Hardware Hard
A. The CPU ignores the reference and returns zero
B. A page fault triggers the OS to load the required page from disk into a frame
C. The OS terminates the process because the address is invalid
D. The program is recompiled to remove the reference

49 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?

Types of operating system Hard
A. Embedded operating system
B. Distributed operating system
C. Multiprogramming batch operating system
D. Single-user single-tasking operating system

50 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?

Enhancing an OS with utility software Hard
A. A backup utility; SSDs cannot lose data
B. A disk-cleanup tool; SSDs never store temporary files
C. A defragmenter; SSDs have no moving read/write head so contiguous layout gives no seek benefit
D. An antivirus scanner; SSDs already scan themselves

51 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?

Running Programs Hard
A. Thrashing; resolved by adding more RAM
B. Starvation; resolved by aging that gradually raises a waiting process's priority
C. Deadlock; resolved by killing all processes
D. Fragmentation; resolved by compaction

52 Compared with polling, why do modern operating systems prefer interrupt-driven I/O for handling device events?

Managing Hardware Hard
A. Interrupts transfer data without ever involving the CPU
B. Polling cannot detect when a device is ready
C. Interrupts remove the need for device drivers
D. The CPU can do useful work and is notified only when the device needs attention

53 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?

Purpose of the operating system Hard
A. Providing abstraction that hides hardware differences behind a uniform interface
B. Providing preemptive CPU scheduling
C. Providing memory protection between processes
D. Providing a graphical desktop environment

54 A single-core CPU appears to run many programs "at the same time." What is actually happening at the hardware level?

Running Programs Hard
A. The CPU physically executes all processes in parallel
B. The OS rapidly time-slices the CPU among processes via context switching (concurrency)
C. The programs are merged into one process before execution
D. Each program is copied to a separate core automatically

55 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?

Sharing Information Hard
A. A signal
B. An environment variable
C. A shared read-only file opened once
D. A pipe

56 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?

Types of operating system Hard
A. Distributed OS; network partition failures
B. Real-time OS; unpredictable deadlines
C. Batch OS; long turnaround time with no interactivity
D. Time-sharing OS; excessive context-switch overhead

57 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?

Managing Hardware Hard
A. Only mutual exclusion and starvation
B. Only circular wait and aging
C. Mutual exclusion, hold-and-wait, no preemption, and circular wait
D. Preemption, paging, and fragmentation

58 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?

Enhancing an OS with utility software Hard
A. A fragmented registry
B. A corrupted boot sector
C. Thrashing caused by excessive paging between RAM and disk
D. An out-of-date device driver

59 In a typical modern OS, why is the GUI implemented largely in user space rather than entirely inside the kernel?

Providing a user interface Hard
A. Because GUIs must be written in interpreted languages
B. Because user space runs in kernel mode for speed
C. To keep the kernel smaller and more stable so a GUI crash does not take down the whole system
D. Because the kernel cannot draw pixels to the screen

60 Consider the claim: "A microkernel is inherently faster than a monolithic kernel." Why is this generally false?

Operating system basics Hard
A. Microkernels move services to user space, so extra message passing and mode switches add overhead
B. Monolithic kernels never use system calls
C. Microkernels run entirely in user mode with no kernel
D. Microkernels cannot support device drivers at all