TEZPUR 2025 — Computer PYQ
TEZPUR | Computer | 2025When dealing with floating-point arithmetic, which of the following is a common source of error?
Choose the correct answer:
- A.
Integer overflow
- B.
Rounding errors
(Correct Answer) - C.
Stack overflow
- D.
Type mismatch errors
Rounding errors
Explanation
The correct answer is (b) Rounding errors.
Floating-point numbers are used to represent real numbers in computers. Because computers have finite memory, they can only store a limited number of bits for the significand (fractional part) and the exponent. This leads to the fundamental limitation of representing infinite real numbers with finite precision.
Floating-Point Representation: Most systems follow the IEEE 754 standard. When a number cannot be represented exactly in binary form (like 0.1), the system must round it to the nearest representable value.
Cumulative Error: In long chains of calculations, these small rounding errors can accumulate, leading to significant inaccuracies.
Mathematically, if x is the true value and fl(x) is the floating-point representation, the relative error δ is:
δ=xx−fl(x)
When performing an arithmetic operation ⊙ (where ⊙∈{+,−,×,÷}), the machine result is:
fl(x⊙y)=(x⊙y)(1+ϵ)

