← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

Electronics lesson 22: Input and output pins · Set 822 · 40 questions
TalentJR

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

Answer key

  1. OFF
  2. digital
  3. False
  4. analog
  5. an input
  6. False
  7. 5 V
  8. output
  9. ON
  10. analog
  11. a keypad
  12. OFF
  13. 0 V
  14. False
  15. two
  16. OFF
  17. analog
  18. input
  19. output
  20. OFF
  21. OFF
  22. input
  23. OFF
  24. True
  25. a sound sensor
  26. input
  27. False
  28. False
  29. ON
  30. ON
  31. input
  32. False
  33. a servo motor
  34. digital
  35. OFF
  36. a buzzer
  37. OFF
  38. a temperature sensor
  39. a speaker
  40. OFF

Free electronics lessons, practice and worksheets at talentjr.in/electronics-for-kids