Examlex

Solved

What Is the Output of This Loop

question 104

Multiple Choice

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++;
}


Definitions:

Behavioral Intention

A person's predisposition towards performing a certain action, influenced by personal attitudes and societal norms.

Theory of Planned Behavior

A psychological theory that predicts an individual's intention to engage in a behavior at a specific time and place, based on their attitude, subjective norms, and perceived behavioral control.

Attitude-Behavior Consistency

The extent to which an individual's behaviors or actions mirror their feelings and beliefs.

Effort Justification

A phenomenon where people attribute a greater value to an outcome they had to put effort into achieving, often to reduce cognitive dissonance.

Related Questions