← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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