Question
Which of the following is not required of a loop control variable in a correctly working loop?a. It is reset to its initial value before the loop ends.b. It is initialized before the loop starts.c. It is tested.d. It is altered in the loop body.
Step 1
A loop control variable is used to control the execution of a loop, determining how many times the loop will run. Show more…
Show all steps
Your feedback will help us improve your experience
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
n what sequence the initialization, testing and execution of body is done in a do-while loop? Make a short program to justify your selection. a: Initialization, execution of body, testing b: Execution of body, initialization, testing c: Initialization, testing, execution of body d: None of the above
Watch the video solution with this free unlock.
EMAIL
PASSWORD