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. The larger of x and y is stored in z unless x and y are equal, in which case z is assigned zero.

Computer Science & Information Technology

You might also like to view...

Which of the following is a correct statement about Generation 1 and Generation 2 virtual machines?

A. Generation 1 virtual machines can boot to a SCSI virtual disk; Generation 2 virtual machines can only boot to IDE virtual disks B. Generation 1 virtual machines use BIOS-based firmware; Generation 2 virtual machines use UEFI-based firmware C. Generation 1 virtual machines support secure boot; Generation 2 virtual machines do not support secure boot D. Generation 1 virtual machines support USB disks; Generation 2 virtual machines support floppy disks

Computer Science & Information Technology

If you are using a Mac and accidentally delete a file from the hard drive and need to recover it, look in the Recycle Bin.

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

Computer Science & Information Technology