What is the purpose of declaring a variable in Arduino?

evaluación 702

Quiz
•
Instructional Technology
•
6th - 8th Grade
•
Hard
Gabriel Solano
Used 1+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
a) To store values that can be used and modified in the program
b) To turn on and off the Arduino board
To define the speed of the serial communication
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following correctly declares an integer variable in Arduino?
int number = 10;
integer number = 10;
number = int 10;
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the following conditional statement do?
if (digitalRead(2) == HIGH) {
digitalWrite(13, HIGH);
}
Turns off the LED on pin 13 when pin 2 is HIGH
Turns on the LED on pin 13 when pin 2 is HIGH
Makes the LED blink continuously
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements about for loops is true?
A for loop repeats a block of code a fixed number of times
A for loop runs indefinitely unless manually stopped
A for loop is only used for turning LEDs on and off
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the function of a photoresistor (LDR) in an Arduino circuit?
To detect light levels and provide an analog signal
To generate sound signals in a circuit
To detect LED light and receive arduino signal
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function is used to read the value from an LDR sensor connected to an analog pin?
digitalRead(pin);
analogRead(pin);
readLDR(pin);
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which component is best suited for producing sounds in an Arduino project?
LED
Buzzer
LDR
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Arduino2 2023 04

Quiz
•
6th - 8th Grade
10 questions
Conociendo Arduino

Quiz
•
6th Grade
20 questions
Arduino2 2023

Quiz
•
6th - 8th Grade
10 questions
7th grade technology assessment topic A.

Quiz
•
7th Grade
15 questions
Cuestionario de Arduino

Quiz
•
3rd Grade - University
11 questions
1ª Atividade /2º Trimestre

Quiz
•
7th Grade
20 questions
EVALUACIÓN 6 COMPONENTES ELECTRÓNICOS

Quiz
•
6th Grade
15 questions
Repaso Taller Basico 2019_2020 1

Quiz
•
5th - 6th Grade
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade