GATE Exam  >  GATE Questions  >  Consider the values of A = 2.0 × 1030, ... Start Learning for Free
Consider the values of A = 2.0 × 1030, B = -2.0 × 1030, C = 1.0, and the sequence
X: = A + B Y:= A + c
X: = X + C Y:= Y + B
Executed on a computer where floating point numbers are represented with 32 bits. The values for X and Y will be
  • a)
    X = 1.0, Y = 1.0
  • b)
    X = 1.0, Y = 0.0
  • c)
    X = 0.0, Y = 1.0
  • d)
    X = 0.0, Y = 1.0
Correct answer is option 'B'. Can you explain this answer?
Most Upvoted Answer
Consider the values of A = 2.0 × 1030, B = -2.0 × 1030, C ...
The given input is a 32-bit representation. The maximum precision value will be 32 bits. It has 10 digits.
A = 2.0 × 1030
B = -2.0 × 1030
C = 1.0,
If we add the value A and C means we will get 31st digit to 1, which will go outside the level of A. This addition’s result will return the A value which is assigned to Y. Y+B result is 0.0. X+C result will return 1.0. So option B is the Solution.
Free Test
Community Answer
Consider the values of A = 2.0 × 1030, B = -2.0 × 1030, C ...
The value of A is 2.0.
Explore Courses for GATE exam
Consider the values of A = 2.0 × 1030, B = -2.0 × 1030, C = 1.0, and the sequenceX: = A + B Y:= A + cX: = X + C Y:= Y + BExecuted on a computer where floating point numbers are represented with 32 bits. The values for X and Y will bea)X = 1.0, Y = 1.0b)X = 1.0, Y = 0.0c)X = 0.0, Y = 1.0d)X = 0.0, Y = 1.0Correct answer is option 'B'. Can you explain this answer?
Question Description
Consider the values of A = 2.0 × 1030, B = -2.0 × 1030, C = 1.0, and the sequenceX: = A + B Y:= A + cX: = X + C Y:= Y + BExecuted on a computer where floating point numbers are represented with 32 bits. The values for X and Y will bea)X = 1.0, Y = 1.0b)X = 1.0, Y = 0.0c)X = 0.0, Y = 1.0d)X = 0.0, Y = 1.0Correct answer is option 'B'. Can you explain this answer? for GATE 2025 is part of GATE preparation. The Question and answers have been prepared according to the GATE exam syllabus. Information about Consider the values of A = 2.0 × 1030, B = -2.0 × 1030, C = 1.0, and the sequenceX: = A + B Y:= A + cX: = X + C Y:= Y + BExecuted on a computer where floating point numbers are represented with 32 bits. The values for X and Y will bea)X = 1.0, Y = 1.0b)X = 1.0, Y = 0.0c)X = 0.0, Y = 1.0d)X = 0.0, Y = 1.0Correct answer is option 'B'. Can you explain this answer? covers all topics & solutions for GATE 2025 Exam. Find important definitions, questions, meanings, examples, exercises and tests below for Consider the values of A = 2.0 × 1030, B = -2.0 × 1030, C = 1.0, and the sequenceX: = A + B Y:= A + cX: = X + C Y:= Y + BExecuted on a computer where floating point numbers are represented with 32 bits. The values for X and Y will bea)X = 1.0, Y = 1.0b)X = 1.0, Y = 0.0c)X = 0.0, Y = 1.0d)X = 0.0, Y = 1.0Correct answer is option 'B'. Can you explain this answer?.
Solutions for Consider the values of A = 2.0 × 1030, B = -2.0 × 1030, C = 1.0, and the sequenceX: = A + B Y:= A + cX: = X + C Y:= Y + BExecuted on a computer where floating point numbers are represented with 32 bits. The values for X and Y will bea)X = 1.0, Y = 1.0b)X = 1.0, Y = 0.0c)X = 0.0, Y = 1.0d)X = 0.0, Y = 1.0Correct answer is option 'B'. Can you explain this answer? in English & in Hindi are available as part of our courses for GATE. Download more important topics, notes, lectures and mock test series for GATE Exam by signing up for free.
Here you can find the meaning of Consider the values of A = 2.0 × 1030, B = -2.0 × 1030, C = 1.0, and the sequenceX: = A + B Y:= A + cX: = X + C Y:= Y + BExecuted on a computer where floating point numbers are represented with 32 bits. The values for X and Y will bea)X = 1.0, Y = 1.0b)X = 1.0, Y = 0.0c)X = 0.0, Y = 1.0d)X = 0.0, Y = 1.0Correct answer is option 'B'. Can you explain this answer? defined & explained in the simplest way possible. Besides giving the explanation of Consider the values of A = 2.0 × 1030, B = -2.0 × 1030, C = 1.0, and the sequenceX: = A + B Y:= A + cX: = X + C Y:= Y + BExecuted on a computer where floating point numbers are represented with 32 bits. The values for X and Y will bea)X = 1.0, Y = 1.0b)X = 1.0, Y = 0.0c)X = 0.0, Y = 1.0d)X = 0.0, Y = 1.0Correct answer is option 'B'. Can you explain this answer?, a detailed solution for Consider the values of A = 2.0 × 1030, B = -2.0 × 1030, C = 1.0, and the sequenceX: = A + B Y:= A + cX: = X + C Y:= Y + BExecuted on a computer where floating point numbers are represented with 32 bits. The values for X and Y will bea)X = 1.0, Y = 1.0b)X = 1.0, Y = 0.0c)X = 0.0, Y = 1.0d)X = 0.0, Y = 1.0Correct answer is option 'B'. Can you explain this answer? has been provided alongside types of Consider the values of A = 2.0 × 1030, B = -2.0 × 1030, C = 1.0, and the sequenceX: = A + B Y:= A + cX: = X + C Y:= Y + BExecuted on a computer where floating point numbers are represented with 32 bits. The values for X and Y will bea)X = 1.0, Y = 1.0b)X = 1.0, Y = 0.0c)X = 0.0, Y = 1.0d)X = 0.0, Y = 1.0Correct answer is option 'B'. Can you explain this answer? theory, EduRev gives you an ample number of questions to practice Consider the values of A = 2.0 × 1030, B = -2.0 × 1030, C = 1.0, and the sequenceX: = A + B Y:= A + cX: = X + C Y:= Y + BExecuted on a computer where floating point numbers are represented with 32 bits. The values for X and Y will bea)X = 1.0, Y = 1.0b)X = 1.0, Y = 0.0c)X = 0.0, Y = 1.0d)X = 0.0, Y = 1.0Correct answer is option 'B'. Can you explain this answer? tests, examples and also practice GATE tests.
Explore Courses for GATE exam
Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev