Podcast
Questions and Answers
Which variable is incremented by 1 in each iteration of the loop?
Which variable is incremented by 1 in each iteration of the loop?
- break
- counter
- number (correct)
Which variable is used to control the loop?
Which variable is used to control the loop?
- counter
- break
- number (correct)
What is the value of 'number' when the loop ends?
What is the value of 'number' when the loop ends?
- 1
- 2
- 0
- 3 (correct)
Which variable is incremented by 1 in each iteration of the loop?
Which variable is incremented by 1 in each iteration of the loop?
What is the value of 'counter' when the loop ends?
What is the value of 'counter' when the loop ends?
What is the final value of 'number' when the loop ends?
What is the final value of 'number' when the loop ends?