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 = 1 ; i <= 5 ; i ++) {
f o r ( i n t j = 1 0 ; j > 0 ; j ??) {
f o r ( i nt k = 0 ; k < 3 ; k++) {
System . out . p r i n t l n ( message ) ;
}
}
}
```


It will print out the message 150 times. The outside loop executes 5 times with i changing from 1 to 5. The middle loop executes 10 times with the j changing from 10 to 1. The inner loop executes 3 times with k changing from 0 to 2. So the total is 5 * 10 * 3 = 150.

Computer Science & Information Technology

You might also like to view...

____ can help businesses be more efficient and save them money by shifting usage and the consumption of resources, such as servers and programs, from a local environment to the Internet.

A. Cloud computing B. Operating systems C. Applications D. Databases

Computer Science & Information Technology

The combination of typeface and type style is a ________

A) theme B) font C) template D) layout

Computer Science & Information Technology

To use an Access file as a data source for a Word mail merge, you must first retype the Access data into the Word document so it can be used by the Mail Merge Wizard in Word.

a. true b. false

Computer Science & Information Technology

What is burst?mode operation (in the context of a cache memory)?

What will be an ideal response?

Computer Science & Information Technology