How many lines of output will be displayed by the following program fragment?

```
for (int i = 0; i< 5; ++i)
for (int j = 0; j < i; ++j)
cout << i << j << endl;
```

a. 5
b. 9
c. 10
d. 20


c. 10

Computer Science & Information Technology

You might also like to view...

You use a ____ selection structure when more than one decision must be made before the appropriate action can be taken.

A. shell B. nested C. logical D. split

Computer Science & Information Technology

Researchers have discovered ways to make computer chips interact with various areas of the body and brain in order to help those that suffer from conditions such as Parkinson's or blindness.

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

Computer Science & Information Technology

Click the _____ button list arrow to take advantage of more crop options.

A. Picture B. Insert C. Crop D. None of the answers are correct.

Computer Science & Information Technology

Which cybersecurity term is defined as the potential for an attack on a resource?

A. Impact B. Vulnerability C. Risk D. Threat

Computer Science & Information Technology