C- Floating Point Issues MCQ Questions and Answers
Practice ModeShowing 10 of 28 questions
Q21
Which technique helps reduce floating-point errors in summation operations?
Answer: Option B
Explanation: Kahan summation uses compensation to track and correct lost low-order bits during addition.
Q22
What is the "unit in the last place" (ULP) error?
Answer: Option B
Explanation: ULP measures the spacing between floating-point numbers, representing the worst-case rounding error.
Q23
Which of these values represents positive infinity in IEEE 754?
Answer: Option D
Explanation: Positive infinity is represented by a specific bit pattern with all exponent bits set to 1 and mantissa to 0.
Q24
What is "gradual underflow" in floating-point systems?
Answer: Option B
Explanation: Gradual underflow uses denormalized numbers to provide a smooth transition to zero.
Q25
Which operation is generally safe from catastrophic cancellation?
Answer: Option C
Explanation: Multiplication of numbers with similar magnitudes doesn't suffer from the same cancellation issues as subtraction.
Q26
What does the "sticky bit" help with in floating-point rounding?
Answer: Option B
Explanation: The sticky bit preserves information about trailing bits beyond what can be represented, improving rounding accuracy.
Q27
In floating-point comparison, why should direct equality checks be avoided?
Answer: Option C
Explanation: Direct equality fails due to accumulated rounding errors making exactly equal results unlikely.
Q28
What is the "hidden bit" in IEEE 754 normalized numbers?
Answer: Option B
Explanation: The hidden bit is an implied leading 1 in the mantissa that isn't stored explicitly, providing extra precision.