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