← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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