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