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


Answer: C

Computer Science & Information Technology

You might also like to view...

________ enable(s) you to define the parts of an image that are important to display

A) Heading style B) Smart Lookup C) Focus Points D) Outline view

Computer Science & Information Technology

The ________ function rounds down any decimal values associated with a number to the nearest whole integer

Fill in the blank(s) with correct word

Computer Science & Information Technology

The Show Table dialog box can be moved to view the tables more easily as they are added to the Relationships window.

a. true b. false

Computer Science & Information Technology

In January 2004, the U.S. ____ law went into effect.?

A. ?CAN-SPAM B. ?END-SPAM C. ?CRAM-SPAM D. ?SCRAM

Computer Science & Information Technology