Given the following declarations, what result is stored in each of the listed assignment statements?

```
int iResult, num1 = 25, num2 = 40, num3 = 17, num4 = 5;
double fResult, val1 = 17.0, val2 = 12.78;
```
a. iResult = num1 / num4;
b. fResult = num1 / num4;
c. iResult = num3 / num4;
d. fResult = num3 / num4;
e. fResult = val1 / num4;
f. fResult = val1 / val2;
g. iResult = num1 / num2;
h. fResult = (double) num1 / num2;
i. fResult = num1 / (double) num2;
j. fResult = (double) (num1 / num2);
k. iResult = (int) (val1 / num4);
l. fResult = (int) (val1 / num4);
m. fResult = (int) ((double) num1 / num2);
n. iResult = num3 % num4;
o. iResult = num 2 % num3;
p. iResult = num3 % num2;
q. iResult = num2 % num4;


a. iResult is assigned 5
b. fResult is assigned 5.0
c. iResult is assigned 3
d. fResult is assigned 3.0
e. fResult is assigned 3.4
f. fResult is assigned 1.3302034...
g. iResult is assigned 0
h. fResult is assigned 0.625
i. ofResult is assigned 0.625
j. fResult is assigned 0.0
k. iResult is assigned 3
l. fResult is assigned 3.0
m. fResult is assigned 0.0
n. iResult is assigned 2
o. iResult is assigned 6
p. iResult is assigned 17
q. iResult is assigned 0

Computer Science & Information Technology

You might also like to view...

Match each of the following programs or tools to its description:

I. WinZip and StuffIt II. Task Manager III. Magnifier IV. Ease of Access V. Task Scheduler A. allows you to exit out of nonresponsive programs B. centralized location for assistive technology C. an accessibility feature D. allows you to run utilities automatically at predetermined times E. file compression programs

Computer Science & Information Technology

The Background Eraser samples the color in the center of the mouse pointer, which is called the ____.

a. color spot . b. swatch c. sampling spot d. hot spot

Computer Science & Information Technology

A ____ confirms that a document is authentic and has not been altered.

A. digital signature B. password C. template D. user name

Computer Science & Information Technology

You can protect a website image by inserting it as a table, cell, or CSS block background and then placing a transparent image on top of it.

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

Computer Science & Information Technology