Multiple Choice
What is the output of the following code fragment?
Int i = 1;
Int sum = 0;
While (i <= 11)
{
Sum = sum + i;
I++;
}
System.out.println("The value of sum is " + sum) ;
A) The value of sum is 65
B) The value of sum is 66
C) The value of sum is 55
D) The value of sum is 56
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q76: What will be the output of the
Q77: What is the output of the following
Q78: How many times does the code snippet
Q79: Which error type does the "off-by-one" error
Q80: What values does counter variable i assume
Q82: How many times does the following code
Q83: What will be printed by the statements
Q84: What is the last output line of
Q85: What is the data type of the
Q86: What is the result when the following