Examlex

Solved

What Is the Output of This Code Snippet? String Str

question 33

Multiple Choice

What is the output of this code snippet? String str = "ABCabc";
Char ch;
Int i = 0;
While (i < str.length() )
{
Ch = str.charAt(i) ;
If (Character.isLowerCase(ch) )
{
System.out.print(i + " ") ;
}
Else
{
I++;
}
}


Definitions:

Consumption Function

An economic formula that represents the relationship between total consumption and gross national income.

Annual Consumption

The total amount of goods and services used or consumed by individuals or groups within a one-year period.

Disposable Income

Disposable income refers to the amount of money that households have available for spending and saving after income taxes have been accounted for.

Aggregate Household Wealth

The total net worth held by the households in an economy, combining all assets minus liabilities.

Related Questions