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