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

What will be an ideal response?


```
String message = " I wi l l be good ! " ;
for ( int i = 0 ; i < 5 ; i++) {
for ( int 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...

What happens if a DHCP server is not available?

a. The client issues a global broadcast to search for an available DHCP server. b. The host computer issues a unicast packet to the 169.254.1.1 address and then obtains an IP address. c. A DHCP client uses a self-assigned IP address known as Automatic Private IP Addressing (APIPA). d. The ipconfig/redo command is automatically issued to establish connectivity.

Computer Science & Information Technology

Under MVS, the __________ is the dispatcher.

a. master scheduler b. job entry subsystem c. supervisor d. initiator

Computer Science & Information Technology

Demonstrate that all logic circuits can be constructed from NOR gates by building an inverter, an and gate, and an or gate from one or more nor gates.

What will be an ideal response?

Computer Science & Information Technology

Select the computing device that uses a limited version of an operating system and uses a web browser with an integrated media player.

A. tablet B. notebook C. netbook D. web-based

Computer Science & Information Technology