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