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

```
for (i = 0; i < 5; i = i + 1)
for (j = 0; j < i; j = j + 1)
printf("%d %d\n", i, j);
```
a. 0
b. 5
c. 9
d. 10
e. 20


D

Computer Science & Information Technology

You might also like to view...

You can apply 3D properties to ____ instances.

A. graphic B. text C. movie clip D. all of the above

Computer Science & Information Technology

Ruby is the name of the scripting language and not just a clever acronym.

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

Computer Science & Information Technology

Trust and authentication generally have an inverse relationship

a. true b. false

Computer Science & Information Technology

Given the following pseudocode, what value of GRADE will be output if 60 is input?

``` Start Read GRADENUM CASENTRY GRADENUM CASE 61 ? GRADENUM ? 80 GRADE = “A” CASE 59 ? GRADENUM ? 60 GRADE = “B” CASE 50 ? GRADENUM < 60 GRADE = “C” CASE other GRADE = “No Grade” ENDCASE Write GRADE Stop ``` a) A b) B c) C d) No Grade

Computer Science & Information Technology