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