For Loop Flashcards

1
Q

How does a for loop differ from a while loop?

A

while loops just have the conditions

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

What potential use cases are there for for loops?

A

iterations through arrays

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

Which pieces of information provided in the parentheses for a for loop are mandatory?

A

for(;;)

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