Solved

Which of the Following Code Snippets Displays the Output Exactly

Question 98

Multiple Choice

Which of the following code snippets displays the output exactly 10 times?


A) int i = 0;
While (i < 10) ;
{
System.out.println("This is example 1.") ;
I++;
}
B) int i = 0;
While (i < 10)
{
System.out.println("This is example 2.") ;
I++;
}
C) int i = 0;
While (i < 10)
{
System.out.println("This is example 3.") ;
}
D) int i = 1;
While (i < 10)
{
System.out.println("This is example 4.") ;
I++;

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions