Bootloader

Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.

Bootloader

Name:
Date:
Class:

Quick Questions

Shade in the A or B circle for each question.

1. Which statement about the bootloader is correct?
A It is a small program stored in firmware that runs when the computer is switched on
B It is a large application the user installs after the operating system has loaded
2. What is the main job of the bootloader?
A Load the operating system into RAM
B Delete old files from the hard drive
3. Which program runs first when a computer is switched on?
A A web browser
B The bootloader
4. Where is the bootloader stored?
A In firmware
B In RAM
5. Where does the bootloader find the operating system?
A Inside the keyboard
B On storage, such as an SSD or hard drive

Match the Pairs

Draw a line connecting each item on the left to its match on the right.

Left columnRight column
1bootloader Apower_on -> run(bootloader) -> load(OS)
2load_os(storage, RAM) BThe bootloader is stored in firmware, not in RAM. RAM is volatile and empty at power-on, so no program could be kept there.
3The bootloader is stored in firmware, so it is still there when the computer is switched off CA small program stored in firmware that runs first when the computer is switched on
4The bootloader runs first at power-on, before the operating system is loaded DCopies the operating system from storage into RAM, then hands control to it
5bootloader.location = RAM_at_power_on EThe bootloader runs first and loads the OS. The OS cannot run before it has been loaded into RAM.
6os.run_first(); bootloader.load(os) Ffirmware.store(bootloader)

Definitions

bootloader

Fill in the Blanks

Complete each line of code by filling in the missing parts.

1.
powerOn() __________.run()
2.
________.store(bootloader)
3.
osPath = bootloader.____(storage)
4.
bootloader.copy(OS, ___)
5.
bootloader.copy(OS, RAM) bootloader.handOver(__)

Spot the Error

Shade in the letter of the line that contains an error.

Question 1
A POWER ON
B RUN bootloader FROM firmware
C FIND OS ON storage
D COPY OS INTO ROM
E HAND CONTROL TO OS
Question 2
A POWER ON
B RUN bootloader FROM RAM
C FIND OS ON storage
D COPY OS INTO RAM
Question 3
A STORE bootloader IN RAM
B POWER ON
C RUN bootloader
Question 4
A POWER ON
B RUN OS
C LOAD OS INTO RAM
D HAND CONTROL TO OS
Question 5
A POWER ON
B RUN bootloader
C FIND OS IN firmware
D COPY OS INTO RAM

Answer Key

Bootloader
Section A: Quick Questions
Q1
A — It is a small program stored in firmware that runs when the computer is switched on
Q2
A — Load the operating system into RAM
Q3
B — The bootloader
Q4
A — In firmware
Q5
B — On storage, such as an SSD or hard drive
Section B: Match the Pairs
Q1
bootloader → A small program stored in firmware that runs first when the computer is switched on
Q2
load_os(storage, RAM) → Copies the operating system from storage into RAM, then hands control to it
Q3
The bootloader is stored in firmware, so it is still there when the computer is switched off → firmware.store(bootloader)
Q4
The bootloader runs first at power-on, before the operating system is loaded → power_on -> run(bootloader) -> load(OS)
Q5
bootloader.location = RAM_at_power_on → The bootloader is stored in firmware, not in RAM. RAM is volatile and empty at power-on, so no program could be kept there.
Q6
os.run_first(); bootloader.load(os) → The bootloader runs first and loads the OS. The OS cannot run before it has been loaded into RAM.
Section C: Definitions
Q1
bootloader — A small program stored in firmware that runs first at power-on, finds the operating system on storage, copies it into RAM and hands control to it.
Section D: Fill in the Blanks
Q1
powerOn() bootloader.run()
Q2
firmware.store(bootloader)
Q3
osPath = bootloader.find(storage)
Q4
bootloader.copy(OS, RAM)
Q5
bootloader.copy(OS, RAM) bootloader.handOver(OS)
Section E: Spot the Error
Q1
D — The bootloader copies the OS into RAM, not ROM. ROM is read-only, so the OS cannot be copied into it. The line should be COPY OS INTO RAM.
Q2
B — The bootloader is stored in firmware, not RAM. RAM is empty when the computer is switched on, so the bootloader must run from firmware.
Q3
A — The bootloader must be stored in firmware. RAM is volatile and loses its contents when the power is off, so the bootloader would be gone at the next start-up.
Q4
B — The bootloader runs first at power-on. The OS is not in RAM yet, so it cannot run until the bootloader has loaded it. The line should be RUN bootloader.
Q5
C — The operating system is kept on storage, such as an SSD or hard drive, not in firmware. The bootloader finds it there. The line should be FIND OS ON storage.