Which of the following will count down from 10 to 1 correctly?
A) for (int j = 10; j <= 1; j++)
B) for (int j = 1; j <= 10; j++)
C) for (int j = 10; j > 1; j--)
D) for (int j = 10; j >= 1; j--)
Correct Answer:
Verified
Q7: For the two code segments below:
Segment
Q8: Consider the code segment below.
if (gender
Q9: Which of the following can be used
Q10: Which of the following statements about the
Q11: The control variable of a counter-controlled loop
Q13: Which of the following will not help
Q14: Which of the following for-loop headers results
Q15: For the code segment below:
switch(q) {
Case
Q16: Consider the classes below:
public class TestA
Q17: To exit out of a loop completely,
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents