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