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
You might also like to view...
How does watermark text usually display in a document?
A) As very light, washed-out text B) In the header or footer C) As bright bold text D) As text around the perimeter of the document
What is the name of the address that is used by a router (at Layer 3 ) to identify specific devices?
A) MAC B) IP C) LLC D) ARP