HomeSubjectsUniversityBlogAbout

OS Structures

Topic in Operating Systems

210 total MCQsShowing 30 with explanations10 Easy10 Medium10 Hard

About This Topic

Operating system structure describes how kernel components are organised and how programs request kernel services through system calls and system programs. Expect questions that contrast monolithic, layered, microkernel, modular and hybrid designs, with the usual trade-off of performance against isolation and reliability. Know the categories of system calls (process control, file manipulation, device management, information maintenance, communication and protection) and the three ways parameters are passed to the kernel: registers, a memory block, or the stack. Harder items cover loadable kernel modules, message-passing overhead in microkernels such as Mach and L4, virtual machines and hypervisors, and what formal verification of seL4 does and does not guarantee.

Below are 30 practice questions from a pool of 210 OS Structures MCQs, one of 12 topics in Operating Systems. Each shows the correct answer with an explanation; when you are ready, take a timed quiz to test recall under exam conditions.

Practice Questions

Each question below shows the correct answer with a full explanation. Use these to build conceptual understanding before attempting a timed quiz.

OS StructuresEasy

Q1. Which of the following is a type of system call?

  1. A.Compiler optimization
  2. B.Syntax validation
  3. C.Process control✓ Correct
  4. D.Code refactoring

Explanation

Process control (e.g., fork, exec, exit) is one of the main categories of system calls. Others include file management, device management, and information maintenance.

Report an error in this question

OS StructuresEasy

Q2. In a layered OS structure, the innermost layer is:

  1. A.Hardware layer✓ Correct
  2. B.Applications
  3. C.File systems
  4. D.User interface

Explanation

In the layered approach to OS design, the bottom layer (layer 0) is the hardware, and the highest layer is the user interface.

Report an error in this question

OS StructuresEasy

Q3. Which of the following is an example of a command-line interpreter?

  1. A.Microsoft Word
  2. B.Bash shell✓ Correct
  3. C.Google Chrome
  4. D.Windows Explorer

Explanation

Bash (Bourne Again Shell) is a command-line interpreter commonly used in UNIX and Linux systems that allows users to interact with the OS via text commands.

Report an error in this question

OS StructuresEasy

Q4. System programs provide:

  1. A.Direct access to hardware resources
  2. B.Environment for program development✓ Correct
  3. C.Only file management service calls
  4. D.Gaming and multimedia functionality

Explanation

System programs (system utilities) provide a convenient environment for program development and execution, including file management, status information, and programming language support.

Report an error in this question

OS StructuresEasy

Q5. The OS component that provides a graphical way to interact with the computer is called:

  1. A.SDK
  2. B.CLI
  3. C.API
  4. D.GUI✓ Correct

Explanation

GUI (Graphical User Interface) provides a graphical, window-based way for users to interact with the operating system using icons, menus, and pointing devices.

Report an error in this question

OS StructuresEasy

Q6. Which system call is used to create a new process in UNIX?

  1. A.exec()
  2. B.open()
  3. C.fork()✓ Correct
  4. D.wait()

Explanation

The fork() system call is used to create a new process in UNIX/Linux. It creates a child process that is a copy of the parent process.

Report an error in this question

OS StructuresEasy

Q7. A monolithic kernel is one where:

  1. A.The entire OS runs as one kernel program✓ Correct
  2. B.The OS is divided into separate modules
  3. C.Only the scheduler runs in kernel mode
  4. D.Each function runs as a separate process

Explanation

In a monolithic kernel, the entire operating system runs as a single program in kernel space. All OS services operate in kernel mode, which provides high performance but less modularity.

Report an error in this question

OS StructuresEasy

Q8. Which of the following manages how data is stored and retrieved on a disk?

  1. A.Network manager
  2. B.File system✓ Correct
  3. C.Memory manager
  4. D.Process manager

Explanation

The file system manages how data is stored, organized, and retrieved on storage devices such as hard disks and SSDs.

Report an error in this question

OS StructuresEasy

Q9. What is the role of device drivers in an OS?

  1. A.To interface between the OS and hardware✓ Correct
  2. B.To manage user accounts and passwords
  3. C.To compile programs into machine code
  4. D.To execute user-level application programs

Explanation

Device drivers act as translators between the hardware devices and the operating system, providing a standard interface for the OS to communicate with diverse hardware.

Report an error in this question

OS StructuresEasy

Q10. Linux is an example of which type of kernel?

  1. A.Monolithic kernel✓ Correct
  2. B.Nanokernel design
  3. C.Microkernel design
  4. D.Hybrid kernel

Explanation

Linux uses a monolithic kernel architecture where all core OS services (file systems, device drivers, networking) run in kernel space as part of a single large program.

Report an error in this question

OS StructuresMedium

Q11. In a microkernel OS, which of the following typically runs in user space?

  1. A.Interrupt handling routines
  2. B.Core CPU scheduling
  3. C.Hardware-level memory mgmt
  4. D.File system services✓ Correct

Explanation

In a microkernel architecture, services like file systems, device drivers, and network protocols run in user space. Only essential services like IPC and basic scheduling remain in the kernel.

Report an error in this question

OS StructuresMedium

Q12. What is the primary mechanism microkernels use for communication between services?

  1. A.Message passing IPC✓ Correct
  2. B.Shared memory only
  3. C.Continuous polling
  4. D.Direct function calls

Explanation

Microkernels primarily use message passing through Inter-Process Communication (IPC) for communication between services running in user space, since they cannot make direct kernel function calls.

Report an error in this question

OS StructuresMedium

Q13. System calls are typically invoked by user programs through:

  1. A.Direct hardware manipulation
  2. B.Application Programming APIs✓ Correct
  3. C.Bootloader entry points
  4. D.Device driver interfaces

Explanation

User programs typically invoke system calls through APIs (like POSIX API or Win32 API) rather than making direct system calls, providing portability and ease of use.

Report an error in this question

OS StructuresMedium

Q14. What is the main disadvantage of the layered approach to OS design?

  1. A.It does not provide any file system support
  2. B.Difficulty defining layers and traversal overhead✓ Correct
  3. C.It is too simple and basic to be practical
  4. D.It cannot support any form of multitasking

Explanation

The layered approach suffers from difficulty in appropriately defining layers and performance overhead because a request must traverse multiple layers, with each layer adding processing overhead.

Report an error in this question

OS StructuresMedium

Q15. What is a loadable kernel module (LKM)?

  1. A.Code loaded into the kernel at runtime dynamically✓ Correct
  2. B.A user application loaded on demand by the OS
  3. C.A type of system call for interprocess messaging
  4. D.A bootloader component for starting the OS kernel

Explanation

A loadable kernel module is code that can be dynamically loaded into or removed from the kernel at runtime, commonly used for device drivers without needing to reboot the system.

Report an error in this question

OS StructuresMedium

Q16. Which of the following is a category of system calls?

  1. A.Compilation control
  2. B.Code optimization
  3. C.Information maintenance✓ Correct
  4. D.Syntax analysis

Explanation

The main categories of system calls include: process control, file management, device management, information maintenance, and communications.

Report an error in this question

OS StructuresMedium

Q17. Parameters to system calls can be passed by placing them in:

  1. A.Only through CPU registers
  2. B.Only via the system stack
  3. C.Registers, stack, or memory block✓ Correct
  4. D.Only through shared memory

Explanation

Parameters to system calls can be passed via registers, pushed onto the stack, or stored in a block/table in memory with the address passed in a register. The method depends on the number of parameters.

Report an error in this question

OS StructuresMedium

Q18. The POSIX API is:

  1. A.A Windows-specific system API
  2. B.A file format specification
  3. C.A portable UNIX interface standard✓ Correct
  4. D.A networking protocol standard

Explanation

POSIX (Portable Operating System Interface) is an IEEE standard that defines a standard operating system interface and environment, ensuring portability across UNIX-like systems.

Report an error in this question

OS StructuresMedium

Q19. What is the purpose of the system call interface?

  1. A.To link API calls to kernel implementations✓ Correct
  2. B.To format disks and storage partitions
  3. C.To manage user passwords and accounts
  4. D.To execute hardware instructions directly

Explanation

The system call interface serves as a link between API function calls made by user programs and the actual system call implementations in the kernel, often using a numbering scheme.

Report an error in this question

OS StructuresMedium

Q20. Windows NT uses which type of kernel architecture?

  1. A.Hybrid kernel✓ Correct
  2. B.Pure microkernel
  3. C.Pure monolithic
  4. D.Exokernel type

Explanation

Windows NT uses a hybrid kernel architecture that combines aspects of both monolithic and microkernel designs, keeping some services in kernel space for performance while maintaining a modular structure.

Report an error in this question

OS StructuresHard

Q21. In the Mach microkernel, what are the primary abstractions provided?

  1. A.Files, directories, and named pipes
  2. B.Processes, semaphores, and mutexes
  3. C.Blocks, inodes, and superblocks
  4. D.Tasks, threads, ports, and messages✓ Correct

Explanation

The Mach microkernel provides five primary abstractions: tasks (resource containers), threads (execution units), ports (communication channels), messages (data units), and memory objects (memory management).

Report an error in this question

OS StructuresHard

Q22. What is an exokernel?

  1. A.A kernel that runs outside the main CPU
  2. B.A minimal kernel giving apps direct hardware control✓ Correct
  3. C.A kernel designed only for external USB devices
  4. D.A kernel that runs entirely in user space only

Explanation

An exokernel provides minimal abstractions, allowing application-level management of hardware resources. It only ensures protection and multiplexing, giving library operating systems direct hardware control.

Report an error in this question

OS StructuresHard

Q23. What is the purpose of a policy/mechanism separation in OS design?

  1. A.To separate what is done from how it is done✓ Correct
  2. B.To divide the OS into two equal-sized halves
  3. C.To separate user programs from system programs
  4. D.To directly improve hardware processing speed

Explanation

Policy/mechanism separation means mechanisms should not dictate policies. Mechanisms determine how something is done, policies decide what will be done. This allows policies to change without modifying mechanisms.

Report an error in this question

OS StructuresHard

Q24. What is the main concept behind a unikernel?

  1. A.A kernel that runs on one processor core only
  2. B.A kernel that supports only one single user
  3. C.A kernel composed of one single code module
  4. D.A single-image OS compiled with the application✓ Correct

Explanation

A unikernel is a specialized machine image constructed by compiling an application together with only the OS library components it needs into a single-address-space image, optimized for cloud/VM deployment.

Report an error in this question

OS StructuresHard

Q25. In OS debugging, what is a core dump?

  1. A.A memory snapshot of a process at crash time✓ Correct
  2. B.A network diagnostic and monitoring utility
  3. C.A listing of all currently running processes
  4. D.A disk formatting and partitioning operation

Explanation

A core dump is a file containing the recorded state of the working memory of a process at a specific time, typically when the process has terminated abnormally, used for post-mortem debugging.

Report an error in this question

OS StructuresHard

Q26. What is the strace command used for in Linux?

  1. A.To trace network packets on the wire
  2. B.To trace system calls made by a process✓ Correct
  3. C.To trace file system changes on the disk
  4. D.To trace memory allocations in the heap

Explanation

strace is a diagnostic and debugging tool in Linux that traces all system calls made by a process and the signals received by it, useful for understanding program behavior.

Report an error in this question

OS StructuresHard

Q27. What is the advantage of the modular kernel approach over a pure layered approach?

  1. A.It uses significantly less memory than layered design
  2. B.It is much simpler to implement and maintain
  3. C.Modules call any other module directly with flexibility✓ Correct
  4. D.It does not require loading any device drivers at all

Explanation

The modular approach allows any module to call any other module, unlike the layered approach where communication must go through adjacent layers. This provides better flexibility and performance.

Report an error in this question

OS StructuresHard

Q28. In system generation (SYSGEN), the OS is configured for a specific hardware platform. Which of the following is NOT typically determined during SYSGEN?

  1. A.CPU type and count
  2. B.User access passwords✓ Correct
  3. C.Connected peripherals
  4. D.Available memory size

Explanation

SYSGEN determines hardware configuration like CPU type, memory size, available devices, and OS options. User passwords are set during system administration, not during system generation.

Report an error in this question

OS StructuresHard

Q29. What is the role of the Hardware Abstraction Layer (HAL) in Windows?

  1. A.To manage and track user login sessions
  2. B.To provide a graphical user interface
  3. C.To hide hardware differences for portability✓ Correct
  4. D.To compile and link device driver programs

Explanation

The HAL in Windows provides a consistent interface to the kernel and device drivers, hiding hardware-specific details. This enables the OS to be portable across different hardware platforms.

Report an error in this question

OS StructuresHard

Q30. What distinguishes a library OS from a traditional OS design?

  1. A.Apps link directly with OS library code✓ Correct
  2. B.It manages library catalog structures
  3. C.It is a collection of shared libraries
  4. D.It only manages shared library files

Explanation

In a library OS design, OS services are provided as libraries linked directly into application programs, which may run on bare hardware or a thin hypervisor without a traditional kernel boundary.

Report an error in this question

Ready to test yourself on OS Structures?

Take a timed quiz drawn from 210+ questions on this topic. No signup required — your progress saves in your browser.

Start OS Structures Quiz