Question: 1. A structure that allows repeated execution of a block of statements is a(n) a. sequence b. selection c. loop d. array 2. The body

1. A structure that allows repeated execution of a block of statements is a(n) a. sequence b. selection c. loop d. array 2. The body of a while loop can consist of. a. a single statement b. a block of statements within curly braces c. either a or b d. neither a nor b 3. A loop that never ends is calleda(n) loop a. while b. for C. Counted d. infinite 4. 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 5. A while loop with an empty body contains no a. loop control variable b. statements c. curly braces d. test within the parentheses of the while statement
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
