study the following
01 A PIC 99V0 VALUE 5
01 B PIC 9V9 VALUE 6
01 C PIC 99V9 VALUE 2.5
01 D PIC 99 VALUE 3
COMPUTE A ROUNDED B C = A+B*C/D
ON SIZE ERROR PERFORM PRINT-ERROR
the comments of A.B.C after execution of the above
statement are
a.A=10 B=0 C=10
b.A=10 B=9.9 C=9.9
c.A=10 B=0 C=9.9
d.A=10 B=6 C=10
Answer Posted / kamesh
5+6*2.5 div 3=10 so a=10,b=0 bcz truncated 1.and c= 10.
Is This Answer Correct ? | 8 Yes | 2 No |
Post New Answer View All Answers
Explain what you understand by passing by value.
What is the difference between Call and a Link?
how do you reference the ksds vsam file formats from cobol programs
which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad
What are different data types in cobol?
What are the access modes of START statement?
What are 77 levels used for?
)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?
What is difference between static and dynamic call in cobol?
What are literals?
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that
What guidelines should be followed to write a structured cobol prgm?
How do u write test cases?
What is cobol?