
Arduino Basics for Beginners
Quiz
•
Other
•
7th Grade
•
Hard
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

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple

Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
17 questions
Sewing Machine Parts Review
Quiz
•
6th - 12th Grade
10 questions
5A Deneme Testi
Quiz
•
5th - 8th Grade
10 questions
Session 14
Quiz
•
7th Grade
15 questions
Computer Skills
Quiz
•
3rd - 8th Grade
10 questions
ICT Basic Skills
Quiz
•
6th - 7th Grade
16 questions
中文(第七册)
Quiz
•
7th Grade
18 questions
devreler
Quiz
•
5th - 8th Grade
20 questions
G7 Robotics Pretest AY2223
Quiz
•
6th - 8th Grade
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
ELA Advisory Review
Quiz
•
7th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
Discover more resources for Other
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
20 questions
ELA Advisory Review
Quiz
•
7th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
20 questions
Morpheme Mastery Quiz for Grade 7
Quiz
•
7th Grade
4 questions
End-of-month reflection
Quiz
•
6th - 8th Grade