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 an analog signal. (a) True (b) False
- 2.Which of these is an output? (a) a buzzer (b) a light sensor (c) a keypad (d) a sound sensor
- 3.📶 Digital or analog: a knob turned part way? (a) digital (b) analog
- 4.📶 A pin that reads a push button is set as … (a) a resistor (b) a battery (c) an output (d) an input
- 5.Which of these is an input? (a) a motor (b) a servo motor (c) a light sensor (d) a speaker
- 6.📶 Digital or analog: a tilt switch: on or off? (a) digital (b) analog
-
7.💡 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 HIGH
Is the LED ON or OFF at the end? (a) ON (b) OFF - 8.True or false: “the room temperature” is a digital signal. (a) True (b) False
- 9.📶 Digital or analog: how loud a sound is? (a) digital (b) analog
-
10.💡 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
Is the LED ON or OFF at the end? (a) OFF (b) ON - 11.📶 A pin set LOW gives about … (a) 5 V (b) 0 V (c) 9 V (d) 1.5 V
-
12.💡 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) ON (b) OFF -
13.💡 An LED (with its resistor) is on pin 8. All pins start LOW. The program runs once:
set pin 7 HIGH
set pin 7 HIGH
set pin 7 HIGH
set pin 8 LOW
set pin 8 LOW
Is the LED ON or OFF at the end? (a) ON (b) OFF -
14.💡 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) ON (b) OFF -
15.💡 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 8 HIGH
Is the LED ON or OFF at the end? (a) OFF (b) ON -
16.💡 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 7 HIGH
set pin 8 HIGH
Is the LED ON or OFF at the end? (a) ON (b) OFF - 17.🔌 Is a light sensor an input or an output for a microcontroller? (a) output (b) input
-
18.💡 An LED (with its resistor) is on pin 8. All pins start LOW. The program runs once:
set pin 8 HIGH
set pin 7 LOW
set pin 7 HIGH
Is the LED ON or OFF at the end? (a) OFF (b) ON - 19.📶 Digital or analog: a button: pressed or not? (a) digital (b) analog
- 20.Which of these is an output? (a) a keypad (b) a light sensor (c) a sound sensor (d) a speaker
- 21.Which of these is an input? (a) a small display (b) an LED (c) a speaker (d) a motion sensor
- 22.🔌 Is a push button an input or an output for a microcontroller? (a) output (b) input
- 23.Which of these is an output? (a) a light sensor (b) a push button (c) a sound sensor (d) a motor
-
24.💡 An LED (with its resistor) is on pin 7. All pins start LOW. The program runs once:
set pin 8 HIGH
set pin 8 LOW
set pin 7 LOW
set pin 8 LOW
set pin 7 LOW
Is the LED ON or OFF at the end? (a) OFF (b) ON - 25.Which of these is an input? (a) a speaker (b) a sound sensor (c) an LED (d) a buzzer
-
26.💡 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) ON (b) OFF - 27.True or false: “a door: open or shut” is a digital signal. (a) True (b) False
-
28.💡 An LED (with its resistor) is on pin 7. All pins start LOW. The program runs once:
set pin 8 LOW
set pin 8 LOW
set pin 8 LOW
set pin 8 HIGH
set pin 8 LOW
Is the LED ON or OFF at the end? (a) ON (b) OFF -
29.💡 An LED (with its resistor) is on pin 8. All pins start LOW. The program runs once:
set pin 8 HIGH
set pin 7 LOW
set pin 7 LOW
set pin 7 LOW
set pin 7 LOW
Is the LED ON or OFF at the end? (a) OFF (b) ON -
30.💡 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 HIGH
set pin 7 LOW
set pin 8 LOW
Is the LED ON or OFF at the end? (a) ON (b) OFF -
31.💡 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
Is the LED ON or OFF at the end? (a) OFF (b) ON - 32.📶 On a 5 V board, a pin set HIGH gives about … (a) 0 V (b) 50 V (c) 230 V (d) 5 V
- 33.🔌 Is a temperature sensor an input or an output for a microcontroller? (a) input (b) output
- 34.🔍 Which is the odd one out? (a) a sound sensor (b) an LED (c) a motion sensor (d) a keypad
-
35.💡 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 7 LOW
set pin 8 HIGH
Is the LED ON or OFF at the end? (a) ON (b) OFF -
36.💡 An LED (with its resistor) is on pin 8. All pins start LOW. The program runs once:
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 -
37.💡 An LED (with its resistor) is on pin 7. All pins start LOW. The program runs once:
set pin 8 LOW
set pin 7 LOW
set pin 7 LOW
Is the LED ON or OFF at the end? (a) ON (b) OFF - 38.Which of these is an input? (a) a small display (b) a temperature sensor (c) a buzzer (d) a water pump
- 39.🔌 Is a servo motor an input or an output for a microcontroller? (a) input (b) output
- 40.True or false: “a knob turned part way” is an analog signal. (a) True (b) False
Answer key
- False
- a buzzer
- analog
- an input
- a light sensor
- digital
- OFF
- False
- analog
- ON
- 0 V
- ON
- OFF
- OFF
- ON
- ON
- input
- ON
- digital
- a speaker
- a motion sensor
- input
- a motor
- OFF
- a sound sensor
- OFF
- True
- OFF
- ON
- OFF
- OFF
- 5 V
- input
- an LED
- OFF
- OFF
- OFF
- a temperature sensor
- output
- True
Free electronics lessons, practice and worksheets at talentjr.in/electronics-for-kids