Multiple Choice
What is the output of the following code: for (loop = 1; loop <3; ++loop)
System.out.print(1) ;
for (loop2 = 1; loop2< 3; ++loop2)
System.out.print(2) ;
A) 112222
B) 1232212322
C) 122122
D) 122212221222
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q46: while(10 > 1) <br>{ <br> System.out.println("This prints
Q47: In order to improve loop performance, it's
Q48: Match each term with the correct statement
Q49: What is the output of the following
Q50: Match each term with the correct statement
Q52: Match each term with the correct statement
Q53: How are nested loops implemented in a
Q54: A loop controlled by the user is
Q55: The _ loop checks the value of
Q56: One execution of any loop is called