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
You might also like to view...
Answer the following questions true (T) or false (F)
1. True/False: ACallstatement transfers program control to the first line of the submodule that is called. 2. True/False: Variable names must be created before a program can be designed. 3. True/False: A violation of a programming languageās rules for creating valid statements is considered a logic error.
A shortcut menu displays when you right-click on a screen object, and it displays commands and options specifically related to the object you right-clicked
Indicate whether the statement is true or false
Identify and describe the three types of sparklines you can add to a worksheet.
What will be an ideal response?
If you are designing your site for a mobile device, use ____ to preview your pages on a variety of mobile devices.
a. BrowserLab b. Check Page c. Code view d. Device Central