Question: After which of the following assignment statements will the variable answer ALWAYS-- for any int value of numl hold an integer value without any fractional

After which of the following assignment statements will the variable answer ALWAYS-- for any int value of numl hold an integer value without any fractional digits? By integer, here, we don't care whether it is stored in an int type, like -3, 240, or a float type, like -3.000 or 240.0. All those are considered integers. If there is no fractional digits to the right of the decimal place after the computation, it's an integer Check all that will always result in answer having an integer value, regardless of what num1 is. There will be HELPFUL HINT: You are not looking for the most accurate answer here, but the opposite: CHECK only the expressions that will always give an integer anwer. floatC (num1+1) // 100) answer answer - int (numl 1 3.3) answer - int( (num1 + 1.5) / 99.9999) / 5 answer num1 3.3 answer float( int (num1/ 3.3)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
