← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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