Log in
Sign up for FREE
arrow_back
Library
2 - Basic Code Structure and Errors
By Nathan Knauss
star
star
star
star
star
Share
share
Last updated over 4 years ago
13 questions
Add this activity
1
1
1
1
1
1
1
1
1
1
1
1
1
The questions in this section come from the information presented
in this presentation
.
Question 1
1.
Question 2
2.
Question 3
3.
Question 4
4.
What number should
x
be if you want your program to pause for 5 seconds when using the delay(x) function?
Question 5
5.
Question 6
6.
Enter the symbols you would use to turn a
LINE
of text into a comment.
The next set of questions are from the information from this slide show.
Question 7
7.
Question 8
8.
Question 9
9.
Question 10
10.
Question 11
11.
Question 12
12.
Question 13
13.
Which function’s body is executed
ONCE
and
FIRST
?
void LOOP()
void SETUP()
Which function’s body is executed
over and over again
until power goes off?
void LOOP()
void SETUP()
Refer to the block of code for the prompt below.
LEDpin is an example of a _______________
loop
variable
named constant
assignment operator
Semicolons (;) should be on every line of code in a program.
True
False
_____________ are caused when programmers write bad code.
Syntax errors
Exceptions
Bugs
If your code is uploaded successfully but your project doesn’t work as expected you can suspect that you have
_______________
in your program.
Syntax errors
Exceptions
Bugs
Wiring
________________
can happen even when your code is perfect if your wiring is incorrect.
Syntax errors
Exceptions
Bugs
Missing semicolons is an example of ____________________.
Syntax errors
Exceptions
Bugs
Not having your Arduino plugged in is an example of
________________
.
Syntax errors
Exceptions
Bugs
When your system is supposed to count up but you programmed it to count down, you are experiencing
___________
.
Syntax errors
Exceptions
Bugs
What is the first step towards creating a solution?
Identify the problem
Provide the solution
Try something else