← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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