Examlex

Solved

What Will Be Printed After the Following Code Is Executed

question 14

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:

Morpheme

The smallest grammatical unit in a language, incapable of further division, that carries meaning; examples include root words, prefixes, and suffixes.

Syntax

The set of rules, principles, and processes that govern the structure of sentences in a given language, including word order and sentence organization.

Phoneme

A Phoneme is the smallest unit of sound in a language that can distinguish meaning between words.

Preference

A greater liking for one alternative over another or others.

Related Questions