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 / dsfd
a=10,b=6 and c= 10
| Is This Answer Correct ? | 2 Yes | 3 No |
Post New Answer View All Answers
A table has two indexes defined. Which one will be used by the SEARCH?
Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc
How you can read the file from bottom?
Explain about different table spaces.
Difference between array and sub-script ?
What are the different data types in cobol?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
Why would you use find and get rather than to obtain?
what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.
Explain the configuration section of a cobol program with examples of syntax.
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
What are literals?
Are you comfortable in cobol or jcl?
What is length is cobol?
How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.