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
Can we redefine the field of x(200) to less than 200?
What type of SDLC u followed? Why?
What are the pertinent COBOL
How do you reference the fixed block file formats from cobol programs
How do define dynamic array in cobol.
If you are current on the owner of a set, what is the difference between an obtain next and obtain first? Actually in which topic will we use dis???Plz explain it clearly
if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?
How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.
What is amode(24)?
What is link edit in cobol?
How do you define a variable of comp-1 and comp-2?
What is length is cobol?
i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this
What is the local-storage section?