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:

Merchandise On Hand

The inventory of goods that a retailer has available for sale at any given time.

Trade Discounts

Reductions from the list price of goods or services provided by a seller to a buyer in a commercial transaction.

Wholesaler

An entity that buys goods in large quantities from manufacturers or distributors and sells them to retailers or other businesses.

Retailer

A business that sells goods to the public in relatively small quantities for use or consumption rather than for resale.

Related Questions