Week 3 Arduino Basics Quiz

Week 3 Arduino Basics Quiz

7th - 12th Grade

10 Qs

quiz-placeholder

Similar activities

Python Loops

Python Loops

9th - 11th Grade

12 Qs

CTE Information Technology Quiz

CTE Information Technology Quiz

7th - 9th Grade

13 Qs

Python Iteration

Python Iteration

10th Grade

13 Qs

Scratch

Scratch

8th Grade

13 Qs

3 Arduino: IF and IF-ELSE

3 Arduino: IF and IF-ELSE

9th - 12th Grade

15 Qs

Pseudocode WHILE Loops

Pseudocode WHILE Loops

10th - 12th Grade

10 Qs

CSF U5 Physical

CSF U5 Physical

9th - 12th Grade

13 Qs

Python Programming - Iteration

Python Programming - Iteration

9th Grade

12 Qs

Week 3 Arduino Basics Quiz

Week 3 Arduino Basics Quiz

Assessment

Quiz

Computers

7th - 12th Grade

Hard

Created by

Bayden Schellein

Used 1+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the Void setup() function in Arduino do?

Runs the main loop of the program

Sets up variables only

Runs once at the beginning of the program

Continuously executes code

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the Void loop() function in Arduino?

Stores sensor data

Executes code once only

Repeats code continuously

Uploads data to the cloud

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword starts a conditional statement in Arduino?

while

loop

if

repeat

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will the following code do? int x = 10; if (x > 5) { digitalWrite(LED_BUILTIN, HIGH); }

Turn off the LED

Flash the LED

Turn on the LED

Do nothing

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a correct for loop in Arduino that will increase I by 1 until it reaches 10?

for (int i = 0; i < 10; i++)

for (int i = 0; i <= 10; i--)

for (int i = 0; i < 10; i--)

for (int i = 0; i++)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will the following code print if temp = 28? if (temp > 30) { Serial.println("Hot"); } else if (temp > 20) { Serial.println("Warm"); } else { Serial.println("Cold"); }

Hot

Warm

Cold

Nothing

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does delay(1000); do in Arduino?

Stops the code permanently

Runs the loop faster

Delays for 1 second

Turns off the Arduino

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?