This topic contains 0 replies, has 0 voices, and was last updated by  EduGorilla 1 year, 10 months ago.

  • Author
    Posts
  • #727577 Reply
     EduGorilla 
    Keymaster
    Select Question Language :


    Consider the values A = 20 × 1030, B = -20 × 1030, C = 1.0 × 1030. Assume, that the floating point numbers are represented with 32 bits. What are the values of X and Y, when the following sequence of operations are executed on a computer?

    X = A + B
    Y = A + C

    X = X + C
    Y = Y + B

    Options :-

    1. X = 1. 0, Y = 1.0
    2. X = 1.0, Y = 0.0
    3. X = 0, 0, Y = 1, 0
    4. X = 0.0, Y = 0.0
    Post your Training /Course Enquiry
    Are You looking institutes / coaching center for
    • IIT-JEE, NEET, CAT
    • Bank PO, SSC, Railways
    • Study Abroad
    Select your Training / Study category
Reply To: Consider the values A = 20 × 1030, B = -20 × 1030, C = 1.0 × 1030. Assume, that the floating poin….
Your information:




GET UPTO 50%    OFF!
Verify Yourself




Log in with your credentials

or    

Forgot your details?

Create Account