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 programming language used to build apps
B. A hardware component inside the CPU
C. System software that manages hardware and software resources
D. A type of application software for editing documents

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

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

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

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

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

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

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. Printed paper documents
B. Computer memory and CPU
C. Office furniture
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. Multi-user OS
B. Batch OS
C. Single-user OS
D. Embedded OS

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

Types of operating system Easy
A. Distributed OS
B. Batch operating system
C. Time-sharing OS
D. Real-time 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. Batch operating system
B. Real-time operating system
C. Single-user operating system
D. Network 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. Single-user multitasking OS
B. Single-user single-tasking OS
C. Batch OS
D. Read-only 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. Voice-only interface
D. Command-line interface

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

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

13 What does GUI stand for?

Providing a user interface Easy
A. Guided Utility Interface
B. General User Instruction
C. Global Update Installer
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. File
B. Process
C. Driver
D. Folder

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

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

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. Screen saver
B. Operating system's clipboard
C. Printer driver
D. Disk formatter

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

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

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

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

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 permanently stores all user documents in ROM
B. It compiles high-level source code into machine code
C. It replaces the need for application software
D. It acts as an intermediary between the user and the computer hardware

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. Resource management
B. Web page rendering
C. Data encryption
D. Source code compilation

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. Batch operating system
B. Single-user single-tasking system
C. Distributed backup 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. Time-sharing interactive system
B. Batch operating system
C. Embedded operating 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. Voice interface
B. Graphical user interface (GUI)
C. Command-line interface (CLI)
D. Touch-based interface

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. Kernel-level interrupt handling
B. Sequential command entry
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. Formatting the storage
B. Defragmenting the disk
C. Compiling the program
D. Loading a program into memory

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. Disk formatting
B. Cold booting
C. Multitasking
D. Single-tasking

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. File compression
C. BIOS updating
D. Process management (terminating a process)

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 clipboard
C. The page file
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. CPU overclocking
B. File sharing with access permissions
C. Disk defragmentation
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 device driver
B. A web cookie
C. A spreadsheet macro
D. A compiler

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. Virtual memory (paging)
B. Clock speed boosting
C. Disk formatting
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. Batch scheduling
B. File indexing
C. Interrupt handling
D. Data compression

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. Media player
B. Antivirus scanner
C. Disk defragmenter
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. File compression utility
B. Registry viewer
C. Screen saver
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. Backup scheduler
B. Font manager
C. Disk defragmenter
D. Antivirus software

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. Batch operating system
B. Embedded operating system
C. Multi-user server 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. Screen calibration
B. Interrupt generation
C. Program compilation
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. Encrypting
B. Debugging
C. Booting
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. Compiling application code into machine instructions
B. Providing a graphical user interface for both applications
C. Encrypting the data sent to the printer
D. Acting as a resource manager that arbitrates contention for shared devices

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. Soft real-time operating system
B. Hard real-time operating system
C. Time-sharing operating system
D. Batch 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. Blocked → Terminated
B. Running → Blocked (waiting)
C. Ready → Running
D. Running → Ready

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 allow the CPU to switch between 32-bit and 64-bit addressing
B. To prevent user programs from directly executing privileged instructions that could corrupt the system
C. To let device drivers bypass the operating system entirely
D. To make user programs run faster by skipping kernel checks

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. Commands can be scripted and executed non-interactively with programmable control flow
B. The CLI renders graphics faster than a GUI
C. The CLI encrypts commands automatically
D. The CLI uses less disk space to store files

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 separate file for each process
B. A synchronization mechanism such as semaphores or mutexes
C. A larger swap file on disk
D. A dedicated graphics driver

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 OS terminates the process because the address is invalid
B. The CPU ignores the reference and returns zero
C. The program is recompiled to remove the reference
D. A page fault triggers the OS to load the required page from disk into a frame

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. Multiprogramming batch operating system
B. Distributed operating system
C. Embedded 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 defragmenter; SSDs have no moving read/write head so contiguous layout gives no seek benefit
B. A backup utility; SSDs cannot lose data
C. A disk-cleanup tool; SSDs never store temporary files
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. Deadlock; resolved by killing all processes
B. Fragmentation; resolved by compaction
C. Starvation; resolved by aging that gradually raises a waiting process's priority
D. Thrashing; resolved by adding more RAM

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

Managing Hardware Hard
A. Polling cannot detect when a device is ready
B. Interrupts remove the need for device drivers
C. Interrupts transfer data without ever involving the CPU
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 memory protection between processes
B. Providing a graphical desktop environment
C. Providing preemptive CPU scheduling
D. Providing abstraction that hides hardware differences behind a uniform interface

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 programs are merged into one process before execution
B. The OS rapidly time-slices the CPU among processes via context switching (concurrency)
C. The CPU physically executes all processes in parallel
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. An environment variable
B. A signal
C. A pipe
D. A shared read-only file opened once

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. Preemption, paging, and fragmentation
B. Only circular wait and aging
C. Only mutual exclusion and starvation
D. Mutual exclusion, hold-and-wait, no preemption, and circular wait

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. Thrashing caused by excessive paging between RAM and disk
B. A corrupted boot sector
C. A fragmented registry
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 the kernel cannot draw pixels to the screen
C. To keep the kernel smaller and more stable so a GUI crash does not take down the whole system
D. Because user space runs in kernel mode for speed

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

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