Examlex

Solved

What Is the Output of the Code Fragment Given Below

question 121

Multiple Choice

What is the output of the code fragment given below?
Int i = 0;
Int j = 0;
While (i < 125)
{
I = i + 2;
J++;
}
System.out.println(j) ;


Definitions:

Character Constant

A fixed value representing a specific character in programming, usually enclosed in single quotes, such as 'a' or '3'.

Significant Digits

The number of digits in a number that contribute to its accuracy, usually starting from the first non-zero digit.

Double Variable

A type of variable in programming that can hold a double-precision 64-bit IEEE 754 floating point.

Equivalent

Describes entities that are equal in value, function, or meaning even if they are not the same object or instance.

Related Questions