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
What is report-item in COBOL?
What is the difference between binary search and sequential search?
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?
What are the rules of the move verb?
Why occurs cannot be used in 01 level in COBOL?
How do define dynamic array in cobol.
i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc
What are different data types in cobol?
can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech
How many bytes S(8) comp field occupy and its maximum value?
What are the access modes of START statement?
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
What is Pic 9v99 Indicates in COBOL?
What is the local-storage section?
What is link edit in cobol?