Examlex

Solved

How Many Times Does the Following Loop Run

question 14

Multiple Choice

How many times does the following loop run?
Int i = 0;
Int j = 1;
Do
{
System.out.println("" + i + ";" + j) ;
I++;
If (i % 3 == 0)
{
J--;
}
}
While (j >= 1) ;


Definitions:

World War II

A global conflict that occurred from 1939 to 1945, involving most of the world's nations, including all the great powers, organized into two opposing military alliances.

Scientific Approach

A method of inquiry based on empirical or measurable evidence subject to the principles of reasoning, experimentation, and observation.

Human Subjectivity

The quality of experiences, thoughts, and feelings that are inherently personal and influenced by individual perceptions and emotions.

Lecture Notes

Written or typed summaries and records of key points and information presented during a lecture, intended for study and review purposes.

Related Questions