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