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