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