Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
Shade in the A or B circle for each question.
Draw a line connecting each item on the left to its match on the right.
| Left column | Right column | |
|---|---|---|
| 1accelerometer | AAn accelerometer does not measure temperature. It measures acceleration, movement and tilt. A temperature sensor measures heat. | |
| 2accelerometer reading changes when phone is turned sideways | BA sensor that measures acceleration (change in speed or direction) and the tilt of a device | |
| 3A step counter uses an accelerometer to detect the repeated movement of walking | CAn accelerometer measures acceleration, which is a change in speed or direction, so a constant speed gives no acceleration. | |
| 4A car airbag system uses an accelerometer to detect a sudden impact | DIF acceleration < -50 THEN inflate airbag | |
| 5A phone uses an accelerometer to measure the temperature of its battery | EThe sensor detects the tilt of the device, so the screen can rotate | |
| 6An accelerometer only measures when a device is moving at a constant speed | FIF accelerometer detects a jolt THEN steps ← steps + 1 |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
accelerometer — A sensor that measures acceleration (change in speed or direction) and tilt. Used for phone screen rotation, step counters and car airbag impact detection.tilt ← READ(accelerometer)
IF tilt > 45 THEN
ENDIFIF tilt > 45 THEN
OUTPUT "Landscape"
ENDIFIF impact > 8 THEN
OUTPUT "Inflate airbag"
ENDIFIF movement = TRUE THEN
steps ← steps + 1
ENDIFIF impact > 8 THEN
OUTPUT "Inflate airbag"
ENDIF