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