Intro-Arduino

Intro-Arduino

Professional Development

5 Qs

quiz-placeholder

Similar activities

AC PORTAS

AC PORTAS

Professional Development

10 Qs

Java Fundamentals - Exame Final - Seção 5 (Estrutura do Program)

Java Fundamentals - Exame Final - Seção 5 (Estrutura do Program)

Professional Development

6 Qs

Intro-Arduino

Intro-Arduino

Assessment

Quiz

Information Technology (IT)

Professional Development

Medium

Created by

Uge Z

Used 1+ times

FREE Resource

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);