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