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