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
Explain the configuration section of a cobol program with examples of syntax.
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
How to remove 2 duplicate records and copy only one using job control language?
Hi pls anybody tell me about " ANALYSIS DOCUMENT PREPARATION AND ESTIMATION OF TASK " (in real time project)."I want to update a sequential file in my project" for that purpose i need both structures i mean analysis document and estimation of task.
What is the difference between comp and comp-3?
What is cobol?
Write some characteristics of cobol as means of business language.
2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic
How do get the result of your program directly on your pc?
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
What are the different types of condition in cobol and write their forms.
Which is not true about evaluate statement
What is Pic 9v99 Indicates in COBOL?
What is report-item in COBOL?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?