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