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