Consider the code fragment (assumed to be in a program in which all variables are legally defined): int num1; double num2; double answer; // program gets num1 and num2 from user, and values received // are always non-zero numbers between +1 and +100 (code not shown) ... // compute precise quotient: answer = (double) ( num1 / num2 );After the assignment statement the variable answer, will hold the most precise quotient possible, accurate to several digits to the right of the decimal point ... A. ... NEVER, regardless of what values num1 and num2 hold. B. ... SOMETIMES, i.e., for some, but not all, values of num1 and num2. C. ... ALWAYS, regardless of what values num1 and num2 hold (as long as they are in the stated range).

Viewed 570 times, submitted by Guest.

Consider the code fragment (assumed to be in a program in which all variables are legally defined):
int num1;
double num2;
double answer;
// program gets num1 and num2 from user, and values received
// are always non-zero numbers between +1 and +100 (code not shown)
...
// compute precise quotient:
answer = (double) ( num1 / num2 );
After the assignment statement the variable answer, will hold the most precise quotient possible, accurate to several digits to the right of the decimal point ...
A. ... NEVER, regardless of what values num1 and num2 hold.
B. ... SOMETIMES, i.e., for some, but not all, values of num1 and num2.
C. ... ALWAYS, regardless of what values num1 and num2 hold (as long as they are in the stated range).