Examlex

Solved

What Is the Output of This Code Snippet

question 70

Multiple Choice

What is the output of this code snippet?
Int s = 1;
Int n = 1;
Do
{
S = s + n;
System.out.print(s + " ") ;
N++;
}
While (s < 3 * n) ;


Definitions:

Voting

The act of making a choice or decision in an election or other formal decision-making process, typically through casting a ballot.

Suffrage

The right to vote in political elections.

Race

A social construct used to categorize humans into large and distinct groups by cultural, historical, physical, and social characteristics.

Political Freedom

The freedom to participate in the political process of one's country or society, including the rights to free speech, assembly, to vote, and to run for office.

Related Questions