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