Electronics Worksheet: Input and Output Pins
Remember (Read in, drive out): Inputs: buttons, knobs, sensors. Outputs: LEDs, buzzers, motors, displays. Digital: HIGH (≈ 5 V) or LOW (0 V) only. Analog: any value in a range. Trace the program: only the LED’s own pin matters, and its last command decides ON or OFF.
NameDateTime takenScore ___ / 40
- 1.True or false: “a button: pressed or not” is a digital signal. (a) True (b) False
- 2.🔍 Which is the odd one out? (a) a turning knob (b) a sound sensor (c) a push button (d) a servo motor
- 3.🔍 Which is the odd one out? (a) a sound sensor (b) a speaker (c) a push button (d) a turning knob
- 4.📶 How many states can a digital pin have? (a) a thousand (b) ten (c) one (d) two
- 5.🔌 Is a light sensor an input or an output for a microcontroller? (a) input (b) output
-
6.💡 An LED (with its resistor) is on pin 7. All pins start LOW. The program runs once:
set pin 7 LOW
set pin 7 LOW
set pin 8 LOW
Is the LED ON or OFF at the end? (a) OFF (b) ON -
7.💡 An LED (with its resistor) is on pin 7. All pins start LOW. The program runs once:
set pin 7 LOW
set pin 7 HIGH
set pin 7 HIGH
set pin 7 LOW
set pin 7 HIGH
Is the LED ON or OFF at the end? (a) OFF (b) ON -
8.💡 An LED (with its resistor) is on pin 8. All pins start LOW. The program runs once:
set pin 8 HIGH
set pin 8 HIGH
set pin 8 LOW
set pin 7 HIGH
set pin 7 HIGH
Is the LED ON or OFF at the end? (a) OFF (b) ON - 9.📶 A pin set LOW gives about … (a) 1.5 V (b) 5 V (c) 9 V (d) 0 V
-
10.💡 An LED (with its resistor) is on pin 8. All pins start LOW. The program runs once:
set pin 8 HIGH
set pin 7 HIGH
Is the LED ON or OFF at the end? (a) OFF (b) ON -
11.💡 An LED (with its resistor) is on pin 7. All pins start LOW. The program runs once:
set pin 7 HIGH
set pin 8 LOW
set pin 7 LOW
set pin 7 LOW
Is the LED ON or OFF at the end? (a) OFF (b) ON -
12.💡 An LED (with its resistor) is on pin 7. All pins start LOW. The program runs once:
set pin 7 LOW
set pin 8 LOW
set pin 8 LOW
Is the LED ON or OFF at the end? (a) OFF (b) ON - 13.📶 Digital or analog: a tilt switch: on or off? (a) analog (b) digital
- 14.🔍 Which is the odd one out? (a) a speaker (b) a water pump (c) a sound sensor (d) a servo motor
-
15.💡 An LED (with its resistor) is on pin 7. All pins start LOW. The program runs once:
set pin 7 HIGH
set pin 8 HIGH
Is the LED ON or OFF at the end? (a) OFF (b) ON - 16.Which of these is an input? (a) a push button (b) a small display (c) a motor (d) a buzzer
- 17.📶 On a 5 V board, a pin set HIGH gives about … (a) 230 V (b) 0 V (c) 5 V (d) 50 V
- 18.🔍 Which is the odd one out? (a) a speaker (b) a servo motor (c) a light sensor (d) a motor
-
19.💡 An LED (with its resistor) is on pin 7. All pins start LOW. The program runs once:
set pin 7 LOW
set pin 8 HIGH
set pin 7 HIGH
set pin 8 HIGH
set pin 7 HIGH
Is the LED ON or OFF at the end? (a) OFF (b) ON - 20.Which of these is an input? (a) a motor (b) a buzzer (c) a turning knob (d) a water pump
-
21.💡 An LED (with its resistor) is on pin 8. All pins start LOW. The program runs once:
set pin 8 LOW
set pin 7 HIGH
set pin 7 LOW
Is the LED ON or OFF at the end? (a) ON (b) OFF -
22.💡 An LED (with its resistor) is on pin 8. All pins start LOW. The program runs once:
set pin 7 LOW
set pin 8 LOW
set pin 8 LOW
set pin 7 LOW
Is the LED ON or OFF at the end? (a) ON (b) OFF - 23.🔍 Which is the odd one out? (a) a motor (b) a sound sensor (c) a light sensor (d) a keypad
- 24.True or false: “a tilt switch: on or off” is an analog signal. (a) True (b) False
- 25.📶 Digital or analog: HIGH or LOW only? (a) digital (b) analog
- 26.Which of these is an output? (a) a turning knob (b) a temperature sensor (c) a motor (d) a push button
- 27.📶 A pin that reads a push button is set as … (a) an input (b) a resistor (c) an output (d) a battery
- 28.📶 Digital or analog: how bright a room is? (a) analog (b) digital
- 29.Which of these is an output? (a) a temperature sensor (b) a small display (c) a keypad (d) a light sensor
-
30.💡 An LED (with its resistor) is on pin 8. All pins start LOW. The program runs once:
set pin 8 LOW
set pin 7 HIGH
Is the LED ON or OFF at the end? (a) OFF (b) ON -
31.💡 An LED (with its resistor) is on pin 8. All pins start LOW. The program runs once:
set pin 7 LOW
set pin 7 LOW
set pin 7 HIGH
set pin 7 LOW
Is the LED ON or OFF at the end? (a) ON (b) OFF - 32.Which of these is an output? (a) a keypad (b) a speaker (c) a turning knob (d) a motion sensor
- 33.True or false: “the room temperature” is a digital signal. (a) True (b) False
- 34.🔍 Which is the odd one out? (a) a water pump (b) a speaker (c) a small display (d) a keypad
- 35.Which of these is an input? (a) a speaker (b) a servo motor (c) a motor (d) a keypad
-
36.💡 An LED (with its resistor) is on pin 7. All pins start LOW. The program runs once:
set pin 7 LOW
set pin 7 LOW
set pin 8 HIGH
Is the LED ON or OFF at the end? (a) ON (b) OFF -
37.💡 An LED (with its resistor) is on pin 8. All pins start LOW. The program runs once:
set pin 7 LOW
set pin 7 LOW
set pin 7 LOW
set pin 8 HIGH
Is the LED ON or OFF at the end? (a) OFF (b) ON -
38.💡 An LED (with its resistor) is on pin 8. All pins start LOW. The program runs once:
set pin 7 LOW
set pin 7 LOW
Is the LED ON or OFF at the end? (a) OFF (b) ON -
39.💡 An LED (with its resistor) is on pin 7. All pins start LOW. The program runs once:
set pin 7 HIGH
set pin 8 LOW
set pin 8 LOW
set pin 8 HIGH
Is the LED ON or OFF at the end? (a) OFF (b) ON -
40.💡 An LED (with its resistor) is on pin 7. All pins start LOW. The program runs once:
set pin 8 HIGH
set pin 7 LOW
Is the LED ON or OFF at the end? (a) OFF (b) ON
Answer key
- True
- a servo motor
- a speaker
- two
- input
- OFF
- ON
- OFF
- 0 V
- ON
- OFF
- OFF
- digital
- a sound sensor
- ON
- a push button
- 5 V
- a light sensor
- ON
- a turning knob
- OFF
- OFF
- a motor
- False
- digital
- a motor
- an input
- analog
- a small display
- OFF
- OFF
- a speaker
- False
- a keypad
- a keypad
- OFF
- ON
- OFF
- ON
- OFF
Free electronics lessons, practice and worksheets at talentjr.in/electronics-for-kids