Search Header Logo

Intro-Arduino

Authored by Uge Z

Information Technology (IT)

Professional Development

Used 1+ times

Intro-Arduino
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function in Arduino programs is used to initialize variables and settings before the main loop starts?

void loop()

void begin()

void init()

void setup()

2.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Which of the following steps are needed to print a message to the serial monitor in an Arduino program?

Use Serial.println() to print the message.

Initialize serial communication with Serial.begin()

Ensure the baud rate matches between the program and serial monitor

Print messages directly to the console without any code.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What role does the void loop() function play in an Arduino program?

The void loop() function allows the Arduino to execute code continuously after setup.
The void loop() function is used to define global variables.
The void loop() function is only executed once during the program.
The void loop() function initializes the Arduino hardware.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you configure pin 13 as an output in an Arduino sketch?

pinMode(13, HIGH);
digitalWrite(13, OUTPUT);
setPinMode(13, OUTPUT);
pinMode(13, OUTPUT);

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you turn off the built in LED in 500 ms using digitalWrite?

digitalWrite(13, LOW);

delay(1000);

digitalWrite(13, LOW);

delay(250);

digitalWrite(13, LOW);

delay(500);

digitalWrite(13, HIGH);

delay(500);

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?