Move Zeroes to I
move 5 to j
perform para1 varying I from 10 by -2 until I = 0
display j.
para1.
Add 5 to j.
What’ll be the value after execution of display stmt.
A) 35
B) 40
C) 30
D) 25
please explain how?
Answer Posted / avi
The value of J before the Para call is 5.
Now,the loop executes for 6 times, so 5*6 is added to the
existing value of J.
J=5+(5*6)
=35.
The correct option is 35.
| Is This Answer Correct ? | 7 Yes | 12 No |
Post New Answer View All Answers
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?
what are decleratives in cobol?
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 is static and dynamic call in cobol?
1.Is it possible to move the data from 99.99 to 99v99? 2.What is the CICS-vsam Compilation process? 3.In My GDG 5 generation will be there GDG3 got an abend what will happen? 4.In my GDG first generation is +1 And I want to add the new generation what will happen previous generation? 5.How can you give the PIC clause below conditions A). s9 (reddy), B). s9 (5) occurs 5 times? 6.How override the proc from a particular step? and what is symbolic and override Procs?
example for sub strings ? and refernce modifications whit output pls
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
What is an in line perform? When would you use it? Anything else you wish to say about it.
how do you reference the fixed unblock file formats from cobol programs
How do you differentiate between cobol and cobol-ii?
What is the Purpose of Pointer in the string?
Name the sections present in data division.
What is redefines clause in COBOL?
What is the local-storage section?
write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc