
Arduino Basics for Beginners
Authored by labict undefined
Other
7th Grade

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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.
Access all questions and much more by creating a free account
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
Already have an account?
Similar Resources on Wayground
10 questions
TOPIC 5 ADJUSTMENT AT THE END OF ACCOUNTING PERIOD
Quiz
•
7th Grade
10 questions
MUSIC OF MINDANAO
Quiz
•
7th Grade
13 questions
disney princesses
Quiz
•
KG - Professional Dev...
14 questions
AFIOTR Basic
Quiz
•
6th Grade - University
15 questions
Dog Breed
Quiz
•
2nd - 12th Grade
10 questions
Guess the blackpink song lyrics
Quiz
•
4th Grade - Professio...
10 questions
TOPIC 7 ACCOUNTING FOR RECEIVABLES
Quiz
•
7th Grade
20 questions
6th Grade - Nutrition
Quiz
•
6th - 8th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Other
20 questions
7th grade ELA Vocabulary Review
Quiz
•
7th - 8th Grade
14 questions
Volume of rectangular prisms
Quiz
•
7th Grade
10 questions
Cell Organelles and Their Functions
Interactive video
•
6th - 10th Grade
20 questions
Graphing Inequalities on a Number Line
Quiz
•
6th - 9th Grade
7 questions
Path and Ortho Greek bases
Quiz
•
6th - 8th Grade
10 questions
Mean, Median, Mode, and Range
Quiz
•
7th Grade
24 questions
7th grade STAAR Reading Review
Quiz
•
7th Grade
23 questions
Mean median mode and range
Quiz
•
7th Grade