DIGITAL (INPUT/OUTPUT)

?

1. What does the following syntax represent for digitalWrite(pin, VALUE)?

  • Either its corresponding voltage (HIGH) or OV (ground) for LOW
  • The value which is written to the selected pin
  • The amount of voltage used in the function
  • Either its corresponding voltage (LOW) or OV (ground) for HIGH
1 of 8

Other questions in this quiz

2. What does pinMode() do as a function?

  • Configures the specified pin to behave either as an input or an output
  • Reads the value from a specific digital pin
  • Write a HIGH/LOW value to a digital pin

3. What will happen if you don't set the pinMode() to OUTPUT, and connect and LED when calling digitalWrite() ?

  • It will my cause serious damage to your board
  • It will enable the internal pull-up resistor, dimming the LED
  • It will return an error message
  • It will enable the internal pull-up resistor, cutting all current

4. What does digitalWrite() do as a function?

  • Reads the value from a specific digital pin
  • Write a HIGH/LOW value to a digital pin
  • Configures the specified pin to behave either as an input or an output

5. What does the following syntax represent for pinMode(pin, MODE)?

  • INPUT/OUTPUT
  • Either INPUT/OUTPUT or INPUT_PULLUP
  • The pin whose mode you wish to set

Comments

No comments have yet been made

Similar Computing resources:

See all Computing resources »See all DIGITAL(I/0) resources »