What is the output of the following code? int count; int num = 2; for (count = 1; count < 2; count++) {num = num + 3; System.out.print(num + " ") ;} System.out.println() ;
A) 5
B) 5 8
C) 2 5 8
D) 5 8 11
Correct Answer:
Verified
Q22: The above code is an example of
Q35: What is the tenth Fibonacci number in
Q36: The above code is an example of
Q38: A break statement is legal in a
Q39: Which of the following is the initial
Q41: Which executes first in a do...while loop?
A)
Q42: Which of the following loops is guaranteed
Q43: Where is the continue statement NOT usually
Q44: Which of the following is true about
Q45: Which executes immediately after a continue statement
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