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
What are the different data types in cobol?
How to remove 2 duplicate records and copy only one using job control language?
how can i see junk values in dclgen or in hostvariable of comp ?
How can you get the ksds file records into your cobol program?
how do you reference the variable unblock file formats from cobol programs
what happens if parmparameter passes zero bytes to the program
What is the difference between PIC 9.99 and PIC9v99?
How do get the result of your program directly on your pc?
what is the difference between COBOL2 AND COBOL390?
What is the difference between next sentence and continue in cobol programing language?
how do you define single dimensional array and multidimensional array in your cobol?
how do you reference the ksds vsam file formats from cobol programs
What is the difference between perform … with test after and perform … with test before?
what is the use of outrecord?
how do you reference the fixed unblock file formats from cobol programs