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