Twa kɔ nsɛm atitiriw so
Log in
Sign up for FREE
arrow_back
Laabri

2 - Basic Code Structure and Errors

star
star
star
star
star
Last updated over 4 years ago
13 Nsɛmmisa

The questions in this section come from the information presented in this presentation.

1
1
1
1
1
1

The next set of questions are from the information from this slide show.

1
1
1
1
1
1
1
Asemmisa {{asɛmmisaAhyɛnsode}}
1.

Which function’s body is executed ONCE and FIRST?

Asemmisa {{asɛmmisaAhyɛnsode}}
2.

Which function’s body is executed over and over again until power goes off?

Asemmisa {{asɛmmisaAhyɛnsode}}
3.

Refer to the block of code for the prompt below.

LEDpin is an example of a _______________

Asemmisa {{asɛmmisaAhyɛnsode}}
4.

What number should x be if you want your program to pause for 5 seconds when using the delay(x) function?

Asemmisa {{asɛmmisaAhyɛnsode}}
5.

Semicolons (;) should be on every line of code in a program.

Asemmisa {{asɛmmisaAhyɛnsode}}
6.

Enter the symbols you would use to turn a LINE of text into a comment.

Asemmisa {{asɛmmisaAhyɛnsode}}
7.

_____________ are caused when programmers write bad code.

Asemmisa {{asɛmmisaAhyɛnsode}}
8.

If your code is uploaded successfully but your project doesn’t work as expected you can suspect that you have _______________ in your program.

Asemmisa {{asɛmmisaAhyɛnsode}}
9.

Wiring ________________ can happen even when your code is perfect if your wiring is incorrect.

Asemmisa {{asɛmmisaAhyɛnsode}}
10.

Missing semicolons is an example of ____________________.

Asemmisa {{asɛmmisaAhyɛnsode}}
11.

Not having your Arduino plugged in is an example of ________________.

Asemmisa {{asɛmmisaAhyɛnsode}}
12.

When your system is supposed to count up but you programmed it to count down, you are experiencing ___________.

Asemmisa {{asɛmmisaAhyɛnsode}}
13.

What is the first step towards creating a solution?