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