Search Header Logo

Arduino - Controlling multiple lights

Authored by Roy Nepomuceno

Computers

12th Grade

Used 1+ times

Arduino - Controlling multiple lights
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What does the digitalWrite function do?

Initializes a digital pin for input or output.

Toggles the state of an analog pin.

Sets the state of a digital pin to HIGH or LOW.

Reads the value of a digital pin.

Answer explanation

The digitalWrite function is used to set the state of a digital pin to either HIGH (on) or LOW (off). This is essential for controlling digital outputs in microcontroller programming.

2.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What are the two possible values that can be used with digitalWrite?

TRUE, FALSE

ON, OFF

ENABLE, DISABLE

HIGH, LOW

Answer explanation

The correct values for digitalWrite in Arduino programming are HIGH and LOW. These represent the two states of a digital pin, where HIGH means the pin is on (5V) and LOW means it is off (0V).

3.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What does setting a pin to LOW represent in volts?

5 volts

3.3 volts

1.5 volts

0 volts

4.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What voltage does setting a pin to HIGH typically represent on an Arduino Uno?

3.3V

5V

1.5V

12V

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

How would you turn an LED ON using digitalWrite?

digitalWrite(12, HIGH);

digitalWrite(13, OFF);

digitalWrite(13, HIGH);

digitalWrite(13, LOW);

6.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What is the syntax for using digitalWrite?

digitalWrite(value, pin);

digitalWrite(pin, value);

writeDigital(pin, value);

setDigital(pin, value);

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What happens when you set a pin to LOW?

The pin is set to a low voltage level, usually 0 volts.

The pin starts to emit a signal continuously.

The pin is set to a high voltage level, usually 5 volts.

The pin becomes disconnected from the circuit.

Answer explanation

Setting a pin to LOW means it is connected to a low voltage level, typically 0 volts. This is used to indicate an off state or to ground the pin, contrasting with a HIGH state which would be around 5 volts.

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?