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