Free Practice Quiz Question List

1 Operating System Foundations Online Quiz Questions

Use this free practice quiz with 20 questions to review 1 Operating System Foundations, test your knowledge, and prepare for your next test or exam.

20 questions
01
True or false
1 point

True or false: Every library call transfers execution from user mode into the kernel.

  1. A

    True

  2. B

    False

02
Fill in the blank
1 point

An operating system coordinates access to hardware and provides convenient abstractions to programs. In these two roles, it acts as a and an .

03
Written response
1 point

What is the central part of an operating system that handles essential work such as managing execution, memory, and device access?

04
Choose one
1 point

An application running normally tries to execute an instruction that requires kernel privilege. What should happen?

  1. A

    The processor permits the application to access any protected device because it requested access.

  2. B

    The processor enforces user-mode restrictions, preventing the application from directly executing certain privileged instructions.

  3. C

    The application automatically switches itself to kernel mode before executing the instruction.

  4. D

    The operating system disables all hardware protection while the application runs.

05
True or false
1 point

True or false: A microkernel design can improve isolation by running more services as separate user-space processes, though communication between components may require additional message passing.

  1. A

    True

  2. B

    False

06
Choose one
1 point

A system designer wants to keep a graphical interface outside the privileged kernel. Is this consistent with the operating-system designs described?

  1. A

    A graphical interface must run in kernel mode because it is part of the operating system.

  2. B

    Every system service must execute privileged instructions directly.

  3. C

    A graphical interface may run as an ordinary user-space program.

  4. D

    The kernel runs in user mode whenever a graphical interface is open.

07
Fill in the blank
1 point

A library wrapper may invoke one or more to ask the kernel to perform an operation.

08
Choose all
1 point

Select all statements that accurately describe the trade-offs between monolithic kernels and microkernels.

  1. A

    In a monolithic kernel, many core services run within the privileged kernel.

  2. B

    A microkernel places every operating-system service in the processor.

  3. C

    Direct communication between services can be a feature of a monolithic design.

  4. D

    A fault in privileged code can have broad consequences in a monolithic design.

  5. E

    A microkernel necessarily eliminates all communication between components.

09
Written response
1 point

What is the two-word name for software that knows how to communicate with a particular hardware device or device class?

10
Choose one
1 point

Which hardware role helps make it possible for an operating system to enforce privilege levels and controlled entry into the kernel?

  1. A

    A device controller decides which instructions are privileged.

  2. B

    The processor enforces privilege rules and provides mechanisms for controlled transitions into the kernel.

  3. C

    A device driver enforces all memory permissions without hardware support.

  4. D

    A library wrapper determines whether the processor enters kernel mode.

11
Choose all
1 point

Select all accurate descriptions of how hardware and device software contribute to operating-system operation.

  1. A

    The processor executes instructions and enforces privilege rules.

  2. B

    A device controller translates every program address and enforces process memory permissions.

  3. C

    Memory-management hardware translates program addresses and enforces access permissions.

  4. D

    A device controller operates hardware such as a disk, while a driver coordinates with it through approved interfaces.

12
Open ended
1 point

Describe how a program's request to read data from an already-open file reaches the kernel and returns a result. Include the role of the library wrapper, the privilege transition, kernel handling, and the return to the program.

13
True or false
1 point

True or false: A system call is initiated by software, whereas a hardware interrupt is initiated by an event from a device or timer.

  1. A

    True

  2. B

    False

14
Choose one
1 point

An application must work with storage devices without directly controlling each device. Which design approach supports this?

  1. A

    Applications directly control each device controller to guarantee consistent device behavior.

  2. B

    Drivers and kernel interfaces let applications use consistent OS services without directly controlling each device.

  3. C

    The operating system removes the need for device-specific software.

  4. D

    Device controllers provide applications with unrestricted access to hardware.

15
Choose one
1 point

Several applications need to use the same processor, storage, and input/output devices. Which description best explains the operating system's role in this situation?

  1. A

    It manages shared hardware resources and provides useful abstractions to applications.

  2. B

    It gives each application direct, unrestricted control of hardware.

  3. C

    It replaces the processor and device controllers when programs run.

  4. D

    It only provides a graphical interface and does not coordinate hardware.

16
Choose one
1 point

A program needs the operating system to create a process, an operation it cannot perform directly in user mode. Which mechanism should it use?

  1. A

    The program directly executes a privileged instruction from user mode.

  2. B

    The program requests the service through a controlled entry point to the kernel.

  3. C

    The program asks a device controller to bypass the operating system.

  4. D

    The program changes its own privilege level before performing the operation.

17
Choose one
1 point

An OS designer wants more services to run outside privileged mode to improve isolation, accepting that communication between components may require extra message passing. Which kernel approach best fits this goal?

  1. A

    It runs all services and device drivers in privileged mode to make failures harmless.

  2. B

    It removes the need for communication between OS components.

  3. C

    It keeps a smaller set of essential mechanisms privileged and runs more services as separate user-space processes.

  4. D

    It places the entire kernel in each application's address space.

18
Written response
1 point

Through which hardware component does a device driver coordinate when controlling a device through approved interfaces?

19
Choose one
1 point

A system must translate program addresses and enforce memory-access permissions so that processes are separated from kernel memory. Which hardware provides this support?

  1. A

    A device controller, because it translates every program address.

  2. B

    A network interface, because it enforces permissions on kernel memory.

  3. C

    A timer, because it translates application addresses into storage locations.

  4. D

    Memory-management hardware, because it translates addresses and enforces access permissions.

20
Written response
1 point

What broad design label does the material use for operating-system approaches that combine kernel-structure features, such as supporting loadable components while retaining many services in kernel space?