Which of the following is equivalent to this code segment?

```
int total = 0;

for (int i = 0; i <= 20; i += 2)
total += i;
```

a. int total = 0;
for (int i = 20; i < 0; i += 1)
total += i;
b. int total = 0;
for (int i = 0; i <= 20; total += i, i += 2);
c. int total = 0;
for (int i = 0, i <= 20, total += i; i += 2);
d. int total = 0;
for (int i = 2; i < 20; total += i, i += 2);


b. int total = 0;
for (int i = 0; i <= 20; total += i, i += 2);

Computer Science & Information Technology

You might also like to view...

To change the width of a column like the one in the accompanying figure, hold down the ____ key while dragging markers on the ruler.

A. SHIFT B. CONTROL C. OPTION D. F2

Computer Science & Information Technology

The information that appears in the Insights task pane is generated by the Google search engine.?____________________

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

Computer Science & Information Technology

?The process of concentrating on what is said in an interview and noticing any nonverbal communication that takes place is called _____.

A. ?brainstorming B. ?sampling C. ?engaged listening D. ?fact-finding

Computer Science & Information Technology

? A _____, such as that illustrated in the accompanying figure, has a central networking device that manages the network.?

A. ?hierarchical network B. ?star network C. ?bus network D. ?ring network

Computer Science & Information Technology