← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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