How many times will the following code print out the message?

```
S t r i n g message = ” I w i l l be good ! ” ;
f o r ( i n t i = 0 ; i < 5 ; i ++) {
f o r ( i n t j = 0 ; j < 1 0 ; j ++) {
System . out . p r i n t l n ( message ) ;
}
}
```


It will print out the message 50 times. The outer loop executes 5 times with i changing from 0 to 4 and the inner loop executes 10 times with the j changing from 0 to 9. So the total is 5 * 10 = 50.

Computer Science & Information Technology

You might also like to view...

After checking the script syntax, if no errors are displayed in the ____ Errors panel, the script is correct.

A. Compiler B. List C. Check D. Fix

Computer Science & Information Technology

You can press ____ to open the Convert to Symbol dialog box.

A. [F7] B. [F8] C. [Esc] D. [Ctrl]

Computer Science & Information Technology

When you enter data in the last cell of a row, the cell selector moves down to the first cell in the next row

Indicate whether the statement is true or false

Computer Science & Information Technology

The Chart Styles group contains predefined styles that control the range of the data and the numbers in the chart

Indicate whether the statement is true or false

Computer Science & Information Technology