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. 10

Computer Science & Information Technology

You might also like to view...

A(n) ________ is a set of formatting characteristics that you can apply to selected text

Fill in the blank(s) with correct word

Computer Science & Information Technology

Click the ________ button to reapply a filter created previously

A) Refresh B) View C) Toggle Filter D) Filter

Computer Science & Information Technology

Which option is not a commonly accepted definition for a script kiddie?

A. A hacker that uses scripts or tools to create a text B. A highly skilled attacker C. A young unskilled hacker D. A young inexperienced hacker

Computer Science & Information Technology

Some systems analysts find it better to start with a decision table, and then construct a decision tree. Others believe it is easier to do it in the reverse order. Which do you prefer? Why?

What will be an ideal response?

Computer Science & Information Technology