Question 65

Computer Awareness Number representations Medium

Which of the following statement is true about IEEE754 representation of +0 and -0?

(A) have the same sign bit, but different mantissa bits.
(B) differ only in the sign bit; their exponent and mantissa bits are identical.
(C) have the same representation because they are mathematically equivalent.
(D) differ in both their exponent and mantissa bits.
✓ Correct Answer: Option B Verified Solution

📘 Step-by-Step Solution & Detailed Explanation:

Question

Which of the following statement is true about IEEE-754 representation of +0 and -0?

Answer

(B) differ only in the sign bit; their exponent and mantissa bits are identical.

Explanation

  1. In IEEE-754 floating point (both single and double precision) zero is encoded with all exponent bits = 0 and all fraction (mantissa) bits = 0. The only bit that can differ is the sign bit:
    • +0 : sign = 0, exponent = 0…0, fraction = 0…0
    • -0 : sign = 1, exponent = 0…0, fraction = 0…0
    e.g. in 32-bit single precision (hex): +0 = 0x00000000, -0 = 0x80000000.
  2. Although they have different bit patterns, most numerical comparisons treat them as equal: \[ +0 == -0 \quad\text{is true (per IEEE-754 equality).} \] However some operations are sensitive to the sign:
    • \(1/(+0) = +\infty\)
    • \(1/(-0) = -\infty\)
    So the sign bit can affect the result of certain signed operations (notably division and some functions that inspect the sign).
  3. Therefore statements that claim they differ in exponent or mantissa, or that they have identical representations, are incorrect. The precise correct statement is that they differ only in the sign bit.

Note: This signed-zero feature is intentional — it preserves directional information (sign) even at zero and makes certain limits and functions behave consistently in numerical computing.

Practice Similar Number representations Questions

Reinforce your conceptual grasp with related questions from CUET-MCA 2025:

Q56 Perform the arithmetic addition of the two decimal numbers given in List-I...
Solve →
Q72 What is the result of the following operation defined by IEEE754. (NaN ==...
Solve →
Q1 Match List-I with List-II |c|l| List-I & List-II \\ (A)\ Seek Time & (I)\...
Solve →
Q4 In case of Binary search tree which of the following procedure's running...
Solve →
Q7 External fragmentation occurs
Solve →
Full-Length Test Series

Prepare for CUET-MCA Under Real Exam Conditions

Take timed full-length mock tests with authentic question distributions, negative marking (+12/-3 in Math), and instant All India Rank calculation.

Start Free Mock Test Series →