How can the effect of the following program segment best be described?

```
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 0.
d. The larger of x and y is stored in z, unless x and y are not equal, in which case z is assigned 0.
e. None of the above.


c. The larger of x and y is stored in z, unless x and y are equal, in which case z is assigned 0.

Computer Science & Information Technology

You might also like to view...

Which of the following does not describe an event where the user interacts with the GUI?

a) booting up a machine b) scrolling through a document c) closing a window d) clicking on a file

Computer Science & Information Technology

A(n) ________ is a way of retrieving information from one or more tables that defines a particular subset of data

A) field constraint B) validation rule C) enquiry D) query

Computer Science & Information Technology

To organize data for a Web page, you should create a layout table.

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

Computer Science & Information Technology

A refresh rate that is too high will cause visible flickering on the screen

Indicate whether the statement is true or false

Computer Science & Information Technology