← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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