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