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
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.
What is the local-storage section?
What is the utilization of copybook in cobol? Could we utilize a similar copybook?
How are the next sentence and continue different from each other?
i want a program using by if, evaluate , string, unstring, perform, occurs?
) How do u handle errors in BMS macro
how do you reference the esds vsam file formats from cobol programs
If you are current on the owner of a set, what is the difference between obtain next and obtain first?
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
What are declaratives and what are their uses in cobol?
what is amode(24), amode(31), rmode(24) and rmode(any)?
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
What is the difference between comp and comp-3?
how do you reference the fixed unblock file formats from cobol programs
What are the different rules for performing sort operation?