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