Hardware

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

Hardware

Name:
Date:
Class:

Quick Questions

Shade in the A or B circle for each question.

1. Which describes hardware?
A The physical parts of a digital system that you can touch
B The programs and instructions that run on a device
2. Which of these is an example of hardware?
A A web browser
B A keyboard
3. Which one is internal hardware (inside the device)?
A CPU
B Mouse
4. Which one is external hardware (outside the device)?
A RAM
B Monitor
5. True or false: A computer's hardware can do useful work without any software.
A False - hardware needs software to tell it what to do
B True - hardware works fine by itself

Match the Pairs

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

Left columnRight column
1hardware AThe physical parts of a digital system that you can touch, like a keyboard, screen or CPU
2external hardware BCPU, RAM, motherboard
3Internal hardware sits inside the computer case and you usually cannot see it Chardware + software = working system
4Hardware cannot work without software telling it what to do DA keyboard is external hardware because it is outside the computer and plugs in.
5Hardware is the programs and apps you cannot touch EPhysical parts outside the computer case that you plug in, such as a mouse, monitor or printer
6A keyboard is internal hardware inside the case FThis describes software, not hardware. Hardware is the physical parts you can touch.

Definitions

hardware

Fill in the Blanks

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

1.
________ = ["keyboard", "screen", "CPU"]
2.
________ = ["CPU", "RAM", "motherboard"]
3.
________ = ["mouse", "printer", "speaker"]
4.
hardware = "screen" ________ = "driver" print(hardware, "needs", software)
5.
hardwareIsPhysical = ____ softwareIsPhysical = False

Spot the Error

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

Question 1
A hardware = ["CPU", "RAM"]
B software = ["app", "OS"]
C for item in hardware:
D print(item, "is software")
Question 2
A keyboard = hardware
B print(keyboard)
C app = "software"
D print(app)
Question 3
A internal = ["CPU", "RAM"]
B external = ["mouse", "screen"
C print(internal)
D print(external)
Question 4
A def is_hardware(part):
B parts = ["mouse", "CPU"]
C return part not in parts
D print(is_hardware("CPU"))
Question 5
A part = "mouse"
B touch = True
C if touch = True:
D print(part, "is hardware")

Answer Key

Hardware
Section A: Quick Questions
Q1
A — The physical parts of a digital system that you can touch
Q2
B — A keyboard
Q3
A — CPU
Q4
B — Monitor
Q5
A — False - hardware needs software to tell it what to do
Section B: Match the Pairs
Q1
hardware → The physical parts of a digital system that you can touch, like a keyboard, screen or CPU
Q2
external hardware → Physical parts outside the computer case that you plug in, such as a mouse, monitor or printer
Q3
Internal hardware sits inside the computer case and you usually cannot see it → CPU, RAM, motherboard
Q4
Hardware cannot work without software telling it what to do → hardware + software = working system
Q5
Hardware is the programs and apps you cannot touch → This describes software, not hardware. Hardware is the physical parts you can touch.
Q6
A keyboard is internal hardware inside the case → A keyboard is external hardware because it is outside the computer and plugs in.
Section C: Definitions
Q1
hardware — The physical parts of a digital system that you can touch, such as a keyboard, screen or CPU. Hardware needs software to tell it what to do.
Section D: Fill in the Blanks
Q1
hardware = ["keyboard", "screen", "CPU"]
Q2
internal = ["CPU", "RAM", "motherboard"]
Q3
external = ["mouse", "printer", "speaker"]
Q4
hardware = "screen" software = "driver" print(hardware, "needs", software)
Q5
hardwareIsPhysical = True softwareIsPhysical = False
Section E: Spot the Error
Q1
D — The loop goes through the hardware list, so each item is physical hardware, not software. The message should say "is hardware".
Q2
A — The text hardware needs quotation marks to be a string. Without them Python looks for a variable called hardware. It should be keyboard = "hardware".
Q3
B — The list of external hardware is missing its closing square bracket. It should end with ].
Q4
C — The function should return True when the part is in the hardware list. Using not in reverses the check. It should be return part in parts.
Q5
C — A single = assigns a value, but an if statement needs to compare values. It should be if touch == True:.