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