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