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 / ulhas

Its 100 % 'd' only.
Third statement 'ADD B C A GIVING D ROUNDED' gives
19.3 but as D is declared as pic 9. it will have only 1.

Is This Answer Correct ?    1 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What type of SDLC u followed? Why?

1516


What are various search techniques in cobol? Explain.

641


Why occurs cannot be used in 01 level in COBOL?

709


How to remove the spaces at the end of each record in the output file of variable length, via cobol program?

670


What is the problem of ordered sequential files access?

692






Which mode is used to operate the sequential file?

658


Define cobol?

856


How do we get current date from system with century in COBOL?

796


how do you reference the rrds file formats from cobol programs

792


What is the default value(s) for an initialize? What keyword will allow for an override of the default?

652


Which is not true about evaluate statement

1566


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

652


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

688


HOw can I get the negative sign while deduct high value from low value

1783


What guidelines should be followed to write a structured cobol prgm?

665