What is the output of this loop?
Int i = 0;
Boolean found;
While (i < 20 && !found)
{
Int sum = i * 2 + i * 3;
System.out.print(sum + " ") ;
If (sum > 50)
{
Found = true;
}
I++;
}
A) 0 5 10 15 20 25 30 35 40 45 50 55
B) 0
C) No output, compilation error
D) 0 5 10
Correct Answer:
Verified
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?
Q101: In the following code snippet, when does
Q103: How many times does the following loop
Q104: Which of the following conditions can be
Q105: What is the first and last value
Q106: How many times does the following loop
Q107: For which input values will the following
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