Solved

What Is the Last Output Line of the Code Snippet

Question 30

Multiple Choice

What is the last output line of the code snippet given below?
Int i = 5;
While (i >= 1)
{
Int num = 1;
For (int j = 1; j <= i; j++)
{
System.out.print(num + "**") ;
Num = num * 2;
}
System.out.println() ;
I = i - 1;
}


A) No output
B) 1**2
C) 1**2**3
D) 1**

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions