
Arduino Programming Questions

Quiz
•
Science
•
11th Grade
•
Medium

Cheryl Shepherd-Adams
Used 2+ times
FREE Resource
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
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
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
Create a free account and access millions of resources
Similar Resources on Wayground
40 questions
Honors Chem Final

Quiz
•
9th - 12th Grade
35 questions
8. CARDIOVASCULAR SYSTEM REVIEW

Quiz
•
9th - 12th Grade
37 questions
Fingerprints

Quiz
•
7th Grade - University
45 questions
PLTW UNIT 1.1Biomedical Science Review

Quiz
•
11th - 12th Grade
35 questions
Webxam Biomedical

Quiz
•
9th - 12th Grade
40 questions
Approaches and Memory Lower Sixth Mix

Quiz
•
11th Grade
45 questions
Physical Science - Final Exam Project

Quiz
•
9th - 12th Grade
44 questions
Apes Friedland Ch 12

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Science
16 questions
Metric Conversions

Quiz
•
11th Grade
10 questions
Exploring the Four Types of Human Body Tissue

Interactive video
•
9th - 12th Grade
90 questions
Unit 1 (Ch 2 & 3) Test Review - Water/Ocean Currents

Quiz
•
9th - 12th Grade
20 questions
Water as a Resource

Quiz
•
10th - 12th Grade
30 questions
States of Matter and Phase Changes

Passage
•
9th - 12th Grade
20 questions
Physical and Chemical Changes

Quiz
•
11th Grade
17 questions
Electron Configuration and Orbital Notation

Quiz
•
11th Grade
17 questions
Unit 3A: Cells Vocab

Quiz
•
9th - 12th Grade