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