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 / gayathri
The para1 will be performed only 5 times for the values of
I = 10, 8, 6, 4, and 2 respectively. Para1 can not be
executed for the value I = 0 as it uses Perform until
condition.
so the value of J is 5+(5*5) equals 30
correct answer is c) 30
Please correct me if I am wrong.
| Is This Answer Correct ? | 13 Yes | 1 No |
Post New Answer View All Answers
What the difference is between continue and next sentence?
Describe the cobol database components?
I have a File that has duplicate records. I need only those records that occur more than thrice.?
What are the pertinent COBOL
In COBOL programming, what is PERFORM? What is VARYING?
Give some examples of command terminators?
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?
what is the difference between COBOL2 AND COBOL390?
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?
) what is the difference between AID and HANDLE AID?
What is the compute verb? How is it used?
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
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
how do you reference the fixed unblock file formats from cobol programs