Examlex

Solved

What Will Be Displayed After the Following Code Is Executed

question 41

Multiple Choice

What will be displayed after the following code is executed?
String str = "abc456";
For (int i = 0; i < str.length() ; i++)
{
Char chr = str.CharAt(i) ;
If (!Character.isLetter(chr) )
System.out.print(Character.toUpperCase(chr) ) ;
}


Definitions:

Choanoflagellates

Aquatic microorganisms thought to be the closest living relatives of animals, characterized by their flagellum and collar structure.

Foraminiferans

Marine protozoans characterized by their porous shells, or tests, through which pseudopodia extend for feeding and locomotion.

Rhizarians

A group of mostly unicellular eukaryotes, characterized by their production of pseudopods, which are extensions used for movement and feeding.

Freshwater Algae

Simple, often microscopic, plant-like organisms that live in fresh water and are capable of photosynthesis.

Related Questions