
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
37 questions
ตอน 2 จำลองไมโครคอนโทรลเลอร์

Quiz
•
9th - 12th Grade
36 questions
Fingerprint Identification

Quiz
•
10th - 12th Grade
38 questions
Fingerprint Ridge patterns

Quiz
•
10th - 12th Grade
42 questions
Forensics Chapter 4

Quiz
•
11th Grade - University
36 questions
IBESS 7.2 Climate Change-Causes and Impacts

Quiz
•
11th - 12th Grade
43 questions
Leaf Shapes

Quiz
•
9th - 12th Grade
35 questions
Environmental Impact U9

Quiz
•
11th Grade
35 questions
Quiz #1

Quiz
•
11th Grade
Popular Resources on Wayground
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
10 questions
"LAST STOP ON MARKET STREET" Vocabulary Quiz

Quiz
•
3rd Grade
19 questions
Fractions to Decimals and Decimals to Fractions

Quiz
•
6th Grade
16 questions
Logic and Venn Diagrams

Quiz
•
12th Grade
15 questions
Compare and Order Decimals

Quiz
•
4th - 5th Grade
20 questions
Simplifying Fractions

Quiz
•
6th Grade
20 questions
Multiplication facts 1-12

Quiz
•
2nd - 3rd Grade