How many times will the following loop display "Hello world!"?

for (int i = 0; i < 20; i++)
cout << "Hello world!" << endl;

a. 20
b. 19
c. 21
d. an infinite number of times


a. 20

Computer Science & Information Technology

You might also like to view...

In a table of data, each column in the data source is called a(n) ________

Fill in the blank(s) with correct word

Computer Science & Information Technology

A program written in a(n) procedural language consists of sequences of statements that manipulate data items. _________________________

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

Computer Science & Information Technology

Firewalls are not usually a combination of hardware and software.

a. true b. false

Computer Science & Information Technology

Which statement is not true? A batch control record

A. contains a transaction code B. records the record count C. contains a hash total D. control figures in the record may be adjusted during processing E. All the above are true

Computer Science & Information Technology