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