What does this program segment do?

```
s = 0;
i = 1;
do
{
s += i;
i++;
} while (i < n);
```
a. Adds all the integers from 1 to n.
b. Adds all the integers from 1 to n-1.
c. Adds the even integers from 1 to n.
d. Adds the odd integers from 1 to n.
e. None of the above.


b. Adds all the integers from 1 to n-1.

Computer Science & Information Technology

You might also like to view...

_______ is not a reference type.

a. A class type b. An interface type c. An array type d. A primitive type

Computer Science & Information Technology

The Brush Presets panel displays the brush tip shape and lets you modify all of the following settings EXCEPT ____.

a. size b. angle c. circumference d. roundness

Computer Science & Information Technology

Multibiometric systems are categorized into three system architectures according to the strategies used for information fusion. These include fusion at the feature extraction level, matching score level, and decision level.

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

Computer Science & Information Technology

A layer style can only be applied to a type layer.

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

Computer Science & Information Technology