Consider the following:
77 A PIC 9(10)
77 B PIC 9(10)
77 C PIC 9(19)
MULTIPLY AB BY B GIVING C
Which of the following is true ?
(a) The execution of the above may result in size error.
(b) The execution of the above will result in size error.
(c) The definition of C is invalid resulting in compilation
error.
(d) No error will be thee and the program would proceed
correctly.
Answer Posted / prasanna
A and B are two different variables and there is no
variable declared as AB. Do COBOL has enough knowledge to
identify and multiply the vaiable A and the variable B,
then by B giving the result in C. I don't think so.
Kindly correct me if I am wrong..
| Is This Answer Correct ? | 7 Yes | 1 No |
Post New Answer View All Answers
Why did you choose to work with ibm mainframe cobol programming?
Explain how you can characterize tables in cobol?
Whats the difference between search & search ALL?
How do you get the data to code the BMS macro?
)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?
what are decleratives in cobol?
) what is the difference between AID and HANDLE AID?
What is a report item?
What is report-item in COBOL?
What is inspect in cobol ?
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
What is the difference between Global and External Variables?
if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need
What are the different types of condition in cobol and write their forms.
State the various causes of s0c1, s0c5 and s0c7.