The effect of the following program segment can best be described as __________.

```
if (x > y)
z = x;
if (x == y)
z = 0;
if (x < y)
z = y;
```
a. The smaller of x and y is stored in z.
b. The larger of x and y is stored in z.
c. The larger of x and y is stored in z unless x and y are equal, in which case z is assigned zero.
d. The larger of x and y is stored in z unless x and y are not equal, in which case z is assigned zero.
e. none of the above

C

Computer Science & Information Technology

You might also like to view...

In the Goal Seek dialog box of Excel, you must have a cell address entered in the To Value box

Indicate whether the statement is true or false

Computer Science & Information Technology

What is the definition of the principle of least privilege?

A. Users are assigned minimal privileges sufficient to accomplish job responsibilities. B. All users are assigned the same privilege level. C. Users determine their own privilege level. D. No users are assigned sufficient privilege.

Computer Science & Information Technology