What is the last output line of the code snippet given below?
Int i = 0;
While (i < 10)
{
Int num = 1;
For (int j = i; j > 1; j--)
{
System.out.print(j + " ") ;
Num = num * 2;
}
System.out.println("***") ;
I++;
}
A) 3 2 ***
B) 9 8 7 6 5 4 3 2 ***
C) 8 7 6 5 4 3 2 ***
D) 2 ***
Correct Answer:
Verified
Q114: What will be the range of the
Q115: In the following code snippet, when does
Q116: Which for loop prints data across each
Q117: How many times will the output line
Q118: What will be the output of the
Q120: What is the output of this code
Q121: Suppose that the chance to hit the
Q122: What does the following code snippet display?
Q123: Which of the following is the correct
Q124: How many times does the following loop
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