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