Given the following: 77 A PIC 9V9 VALUE 9.5 77 B PIC 9 VALUE 9. 77 C PIC V9 VALUE 0.8 77 D PIC 9 77 E PIC 9 77 F PIC 9V999 what are the contents of D E and F after the following statements are executed: COMPUTE F ROUNDED=A+C/B MULTIPLY A BY C GIVING E ADD B C A GIVING D ROUNDED a.F=9.589 E=8 D=1 b.F=9.589 E=8 D=9 c.F=9.589 E=7 D=9 d.F=9.589 E=7 D=1

This question is related to TCS Interview

Showing Answers 1 - 1 of 1 Answers

Guest

  • Jan 5th, 2007
 

ans- d

f=9.5+(.8/9)=9.589

e=9.5*.8=76.9 because of pic 9 it takes m.s.b(i.e 7)

hence e=1

d=9.5+9+.8=19.3      hence 1

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions