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
IF I mention stop run in CICS what happens?
How you can characterize tables in cobol?
How to use the same COBOL program in Batch and CICS on lines? explain with an example
) what is the difference between AID and HANDLE AID?
Write the code implementing the perform … varying.
What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps
How to print 10 to 1 if the input have only 10 digit number?
Describe the cobol database components?
What is the difference between perform … with test after and perform … with test before?
What is the difference between PIC 9.99 and PIC9v99?
What is a scope terminator give example?
How you can read the file from bottom?
System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..
A table has two indexes defined. Which one will be used by the SEARCH?