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:
Verified
Q62: Which of the following statements is correct
Q90: What will be the final output of
Q91: When will the loop in the following
Q92: What is the outcome of the following
Q93: What is the sentinel value in the
Q96: Insert a statement that will correctly terminate
Q97: When designing storyboards, it is a good
Q98: What is the output of this code
Q99: What will be the output of the
Q100: What does the following code snippet display?
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