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 contenta of D E nad 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

Answer Posted / amaranatha reddy

this is AMAR(amaran.akg@gmail.com)9043264468

the correct ans: " C "
we 've 4 options, in that no need to check "f" value

next,about "E"

E pic 9(1)
A*C=E
9.5*0.8=7.6[9(1)=7]
hence E=7

now we go C&D for our solution

about "D":
---------

D=B+C+A=9+0.8+9.5=19.3

according to question

"D" i rounded
as per our answer data trunk-ed occur

for numeric literals data assigning is from right to left
-------------
(for integer positions)&left to right(for decimal positions)
------------------------------------------------------------

so Value of "D"=9

--------
hence solution is\ ""C"" \
----------

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.

5668


What is the local-storage section?

675


What is the utilization of copybook in cobol? Could we utilize a similar copybook?

704


How are the next sentence and continue different from each other?

756


i want a program using by if, evaluate , string, unstring, perform, occurs?

4039






) How do u handle errors in BMS macro

1500


how do you reference the esds vsam file formats from cobol programs

625


If you are current on the owner of a set, what is the difference between obtain next and obtain first?

635


What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?

670


What are declaratives and what are their uses in cobol?

702


what is amode(24), amode(31), rmode(24) and rmode(any)?

688


how we sort two input files based on a common column and giving one o/p file please send me the coding logic?

1642


What is the difference between comp and comp-3?

692


how do you reference the fixed unblock file formats from cobol programs

700


What are the different rules for performing sort operation?

754