Skip to main content
Logo image

Dive Into Systems: Exercises

Section 13.1 Booting and Running

Checkpoint 13.1.1. What is the OS?

    True or False: The operating system is a program that runs on the computer.
  • True
  • Correct!
  • False
  • Incorrect. The OS kernel is still a program (although a special one).

Checkpoint 13.1.2. Role of OS.

    Which of the following is NOT an example of what an OS does?
  • Power on the CPU
  • Correct!
  • Load program from disk to RAM
  • Incorrect.
  • Initialize CPU to start running instructions
  • Incorrect.
  • Provide efficient use of system resources
  • Incorrect.

Checkpoint 13.1.3. Multiprogramming.

    What is the definition of multiprogramming?
  • Sharing computer hardware resources among several running programs.
  • Correct!
  • Running several programs on a multicore computer.
  • Incorrect.
  • Being able to run programs written in different programming languages.
  • Incorrect.
  • Letting many people write programs simultaneously.
  • Incorrect.

Checkpoint 13.1.4. The Kernel.

    Select all of the following that are part of the OS Kernel:
  • System calls
  • Correct!
  • Device interface
  • Correct!
  • Managing how programs use hardware
  • Correct!
  • Word processing program (such as Microsoft Word)
  • Incorrect.
  • CPU
  • Incorrect.
  • RAM
  • Incorrect.

Checkpoint 13.1.5. Mechanism vs. Policy.

Checkpoint 13.1.6. Layers of the Computer System.

    Which part of a computer system does a user’s program directly interact with?
  • System call interface
  • Correct!
  • Disk driver
  • Incorrect.
  • Physical memory (RAM)
  • Incorrect.
  • Hard drive
  • Incorrect.
  • Network interface card
  • Incorrect.
  • Device interface
  • Incorrect.

Checkpoint 13.1.7. OS Booting and Running.

    Which of the following best describes the key difference between a system call and an interrupt in operating systems?
  • A system call is a software request made by a user program to access services provided by the operating system, while an interrupt is a hardware-triggered event that requires immediate attention from the operating system.
  • Correct!
  • A system call is a hardware-triggered event, while an interrupt is a software request for a service from the operating system.
  • Incorrect.
  • A system call is initiated by the operating system to handle hardware events, while an interrupt is initiated by the user process.
  • Incorrect.
  • Both system calls and interrupts are triggered by hardware but differ in how they are processed by the CPU.
  • Incorrect.

Checkpoint 13.1.8. OS Booting and Running.

Fill in the blanks with the appropriate word:
In an operating system, mode is the mode in which the operating system executes with full access to all system resources and hardware, while mode is the mode in which user applications run with limited access to system resources to prevent them from directly interacting with critical parts of the system.