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