How many times is the println statement executed?

```
for (int i = 0; i < 10; i++)
for (int j = 0; j < 10; j++)
System.out.println(i * j);
```
a. 100
b. 20
c. 10
d. 45


a. 100
The outer loop is executed 10 times for i from 0 to 9 and the inner loop is executed 10 times from j from 0 to 9. So the print statement is executed 100 times. The correct answer is A.

Computer Science & Information Technology

You might also like to view...

A ________ file uses characters such as tabs, spaces, or commas to separate each field

A) bordered B) terminated C) bounded D) delimited

Computer Science & Information Technology

Which Draw Borders option allows you to merge cells?

A) Remove Cell B) Sketch C) Eraser D) Draw Table

Computer Science & Information Technology

To fix the validation problems with the following text, you would use a ____ element.This line contains italicized text and
a line break.

A. closing B. pre-defined C. deprecated D. block-level

Computer Science & Information Technology

After you set a first-line indent in one paragraph, all subsequent paragraphs you type will have the same first-line indent.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology