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.
Answers were Sorted based on User's Feedback
Answer / abinand shetty
re c is the correct one as maximum numerical declaration
can be 9(18) .so above will result in compilation error
| Is This Answer Correct ? | 13 Yes | 0 No |
Answer / anu
c. since maximum digits for numeric data type is 18 only.
| Is This Answer Correct ? | 10 Yes | 0 No |
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 |
01 var1 pic x(10) 01 var2 redefines var1 pic 9(10). then in procedure division move 'abcde' to var1 then waht is the value of var1 and var2
What is COMP SYNC?
explain sorting techniques in cobol program?
What is SQL Code -904 and -903 in DB2 And how to handle it?
what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.
Consider the following: 77 W-NUM PIC 9 VALUE 0 ------ MOVE 1 TO W-NUM PERFORM PARA-X UNTIL W-NUM > 9. ------ PARA-X ADD 1 TO W-NUM How many times PARA-X is executed ?
What is an in-line perform ?
I need to compare two VSAM files, both having 'number' as key. If there is a matching record, write the data into another VSAM file. How will it be possible.
Which mode is used to operate the sequential file?
What is diff between vsam and db2?what is advantage of db2 over vsam?which is best suited one?
Can printer files (having 133 characters) be of variable length?
How can we find out wether to declare the data items like Integer, Char,Comp? If comp types how can we decide wether it is Comp and Comp3.How it is? Please Explain... Cheers.