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