Arduino Programming Questions

Arduino Programming Questions

11th Grade

40 Qs

quiz-placeholder

Similar activities

CSNJ pregunta

CSNJ pregunta

1st - 12th Grade

40 Qs

L3 Anatomy and Physiology - Energy Systems

L3 Anatomy and Physiology - Energy Systems

10th - 12th Grade

40 Qs

science equipment

science equipment

10th - 12th Grade

40 Qs

10 Marine Science Review

10 Marine Science Review

10th - 11th Grade

44 Qs

Natural Sciences & Technology Quiz

Natural Sciences & Technology Quiz

6th Grade - University

36 Qs

SCIENCE QUIZ(18/4/23)

SCIENCE QUIZ(18/4/23)

9th - 12th Grade

40 Qs

1234

1234

9th - 12th Grade

39 Qs

Podium Superquiz3 for 12oct2020

Podium Superquiz3 for 12oct2020

2nd - 12th Grade

40 Qs

Arduino Programming Questions

Arduino Programming Questions

Assessment

Quiz

Science

11th Grade

Practice Problem

Hard

Created by

Cheryl Shepherd-Adams

Used 5+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

40 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct function to set a pin as an output in Arduino?

pinMode(13, INPUT)

digitalWrite(13, HIGH)

pinMode(13, OUTPUT)

analogWrite(13, HIGH)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Why won’t the following "blink" code work?

The LED will not blink because there is no LOW state.

delay(1000); is too short.

The pin should be set to INPUT.

The function digitalWrite should be analogWrite.

3.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

What common mistake might prevent the built-in LED on pin 13 from blinking?

Forgetting to declare pinMode(13, OUTPUT); in setup().

Using delay(0); instead of delay(1000);

Writing digitalRead(13, HIGH); instead of digitalWrite(13, HIGH);

Using analogWrite(13, 255); instead of digitalWrite(13, HIGH);

4.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

If your LED stays on instead of blinking, what could be the problem?

The LED might be broken.

The code is missing digitalWrite(13, LOW); and a delay.

pinMode(13, OUTPUT); is not needed.

The delay time is too long.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will happen if you write delay(-1000);?

The Arduino will blink the LED faster.

The delay function will be ignored.

The Arduino will enter an infinite loop.

The code will not compile.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Why won’t the following code fade an LED properly?

The loop should count down after reaching 255.

pinMode(9, OUTPUT); should be INPUT.

The delay is too long.

The pin should be 13, not 9.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What type of pins support analogWrite() for fading LEDs?

Digital pins

Only pin 13

PWM pins marked with ~ *

Any pin set to OUTPUT

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?