
Arduino Prp03 Quiz
Authored by Alex Song
Computers
7th Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the `sensorPin` variable in the code?
To store the value coming from the sensor
To select the input pin for the potentiometer
To select the pin for the LED
To declare the LED pin as an OUTPUT
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which pin is used for the LED in the code?
A5
13
12
11
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the initial value of `sensorValue`?
1
0
5
10
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the `pinMode` function in the `setup` function?
To read the value from the sensor
To declare the `ledPin` as an OUTPUT
To begin serial communication
To stop the program for some time
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the baud rate set for serial communication in the code?
4800
9600
14400
19200
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the `analogRead` function do in the code?
It writes a value to the LED
It reads the value from the sensor
It delays the program
It begins serial communication
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens when `digitalWrite(ledPin, HIGH)` is executed?
The LED turns off
The LED turns on
The sensor value is read
The program stops
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?