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