Examlex

Solved

What Will Be Printed After the Following Code Is Executed

question 15

Multiple Choice

What will be printed after the following code is executed?
String str = "abc456";
Int m = 0;
While ( m < 6 )
{
If (!Character.isLetter(str.charAt(m) ) )
System.out.print(
Character.toUpperCase(str.charAt(m) ) ) ;
M++;
}


Definitions:

Thiol Proton

The hydrogen atom attached to the sulfur atom in a thiol group, characterized by its ability to be acidic and participate in hydrogen bonding.

Acidity

A measure of the concentration of hydrogen ions in a solution, often associated with the degree to which a substance is able to donate a proton.

Phenol

An aromatic compound consisting of a benzene ring bonded to a hydroxyl group (-OH).

Ethanol

A volatile, flammable, clear liquid also known as alcohol, used as a solvent, in the manufacture of various chemicals, and as an intoxicant.

Related Questions