Chapter 3.4 : The for statement Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What makes up the first line of the for loop?

A

The initialization, continuation condition, and the update of the value

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What must the continuation condition be in a for loop?

A

a boolean expression

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the initialization usually?

A

a declaration or an assignment statement

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the update expression usually?

A

an increment or a decrement

How well did you know this?
1
Not at all
2
3
4
5
Perfectly