
3 Arduino: IF and IF-ELSE
Authored by Tod Elford
Computers
9th - 12th Grade
Used 4+ times

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
How do you set a digital pin to "on" using the digitalWrite() function?
digitalWrite(pin, OFF)
digitalWrite(pin, 1)
digitalWrite(pin, HIGH)
digitalWrite(pin, ON)
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are variables used for in Arduino programming?
Variables in Arduino programming are used to display data on the LCD screen.
Variables in Arduino programming are used to control the flow of the program.
Variables in Arduino programming are used to connect to external devices.
Variables in Arduino programming are used to store and manipulate data.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the pinMode() function in Arduino programming?
The pinMode() function is used to set the pin mode to analog.
The purpose of the pinMode() function is to configure a pin as input or output.
The pinMode() function is used to initialize the Arduino board.
The pinMode() function is used to control the speed of the Arduino board.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Used to end a statement or command
!
"
;
\
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
These tell the Arduino software when the setup or loop sections begins and ends. Without them, the software is lost and unable to compile your code. Think of these as additional punctuation that your code requires. Your code must be perfectly punctuated to compile.
( )
[ ]
< >
{ }
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Used to end a statement
!
"
;
\
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Comparison operator which means not equal to.
++
==
--
!=
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?