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

4 - for & while loops

star
star
star
star
star
Last updated over 4 years ago
13 Nsɛmmisa
1
1
1
1
1
1
1
1
1
1
1
1
1
Asemmisa {{asɛmmisaAhyɛnsode}}
1.

for loops are best suited for which of the following purposes?

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

Each time through a loop is called a(n)

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

Which of the following is the right order of the parts of a for loop?

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

Which of the following counts through the numbers 0 to 9 inclusive?

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

Given the line of code:

i=i+1;

What can be said?

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

Which of the following has the same effect as i++ ?

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

Why is it acceptable to use i as a counter variable?

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

while loops are best suited for which of the following purposes?

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

Each time through a while loop is called a(n)

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

Which of the following is the right template for a header line in a while loop?

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

Which of the following is the right template for a header line in a while loop?

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

Which of the following counts through the numbers 0 to 9 inclusive?

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

What is wrong with the following code?

int i=0; while( i<100 ) {

Serial.println(i);

i++;

}

Serial.print("After the loop, i’s valuse is:");

Serial.println(i);