Multiple Choice
Which of the following is the appropriate for header for varying the control variable over the following sequence of values: 3, 6, 9, 12?
A) for ( int i = 3; i <= 12; i++ )
B) for ( int i = 12; i > 0; i -= 3 )
C) for ( int i = 3; i <= 12; i -= 3 )
D) for ( int i = 3; i <= 12; i += 3 )
E) None of the above.
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q1: The counter variable in a for statement
Q3: A(n)_ modifies the control variable each time
Q4: The body of a for statement executes
Q5: To avoid logic errors, counter-controlled loops should
Q6: The_ part of a for statement header
Q7: Variables of type _store a series of
Q8: When assigning text to a string variable,
Q9: A(n) _is used to determine whether a