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 is the difference between perform … with test after and perform … with test before?
how do you reference the fixed unblock file formats from cobol programs
Define cobol?
example for sub strings ? and refernce modifications whit output pls
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.
What is redefines clause in COBOL?
Name the divisions, which are available in a cobol program?
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
What is report-item in COBOL?
Hi pls anybody tell me about " ANALYSIS DOCUMENT PREPARATION AND ESTIMATION OF TASK " (in real time project)."I want to update a sequential file in my project" for that purpose i need both structures i mean analysis document and estimation of task.
What is perform what is varying?
How do you reference the following file formats from cobol programs?
how to convert the recors form vsam file to db2 table tru file aid
which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad