Arduino Basics for Beginners

Arduino Basics for Beginners

7th Grade

15 Qs

quiz-placeholder

Similar activities

Mec1 Arduino and Interactive

Mec1 Arduino and Interactive

1st - 12th Grade

10 Qs

7° Robótica

7° Robótica

7th Grade

11 Qs

Sewing Machine Parts

Sewing Machine Parts

6th - 7th Grade

15 Qs

TEBAK TEBAKAN YUK

TEBAK TEBAKAN YUK

1st Grade - University

10 Qs

Arduino

Arduino

7th Grade

13 Qs

Microbit Quiz

Microbit Quiz

6th - 8th Grade

15 Qs

Arduino 1 - Sekolah Robot Indonesia

Arduino 1 - Sekolah Robot Indonesia

5th Grade - University

10 Qs

Introduction of Arduino

Introduction of Arduino

6th - 8th Grade

12 Qs

Arduino Basics for Beginners

Arduino Basics for Beginners

Assessment

Quiz

Other

7th Grade

Hard

Created by

labict undefined

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the basic code to make an LED blink on Arduino?

void setup() { pinMode(LED_BUILTIN, OUTPUT); } void loop() { digitalWrite(LED_BUILTIN, HIGH); }

void setup() { pinMode(LED_BUILTIN, OUTPUT); } void loop() { digitalWrite(LED_BUILTIN, HIGH); delay(1000); digitalWrite(LED_BUILTIN, LOW); delay(1000); }

void setup() { pinMode(LED_BUILTIN, OUTPUT); } void loop() { delay(1000); }

void setup() { pinMode(LED_BUILTIN, INPUT); } void loop() { digitalWrite(LED_BUILTIN, LOW); delay(500); }

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you control the delay of an LED blinking in Arduino?

Connect a potentiometer to vary the blinking delay.

Adjust the LED brightness to change the blinking rate.

Use the 'delay(milliseconds)' function to set the blinking interval.

Use the 'setInterval(milliseconds)' function to control the blinking speed.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the setup() function in an Arduino sketch?

The setup() function is for defining custom libraries.

The setup() function is used to read sensor data.

The setup() function runs the main loop of the program.

The setup() function initializes the Arduino environment.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you connect an LED to an Arduino board?

Connect the LED directly to the power supply without a resistor.

Connect the anode of the LED to a digital pin and the cathode to ground through a resistor.

Connect both the anode and cathode of the LED to the same digital pin.

Connect the cathode of the LED to a digital pin and the anode to ground.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the syntax to create a variable in Arduino C++?

dataType variableName = initialValue;

variableName = dataType initialValue;

dataType = variableName initialValue;

initialValue variableName: dataType;

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you read the state of a button in Arduino?

Set pinMode(pinNumber, OUTPUT) before reading the button.

Use analogRead(pinNumber) to check the button state.

Use digitalRead(pinNumber) after setting pinMode(pinNumber, INPUT).

Read the button state using readButton(pinNumber).

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the function of the loop() in an Arduino program?

The loop() function runs only once at the start of the program.

The loop() function initializes the Arduino hardware.

The loop() function runs continuously to execute the main code of an Arduino program.

The loop() function is used to define the setup of the program.

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?