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


Please Help Members By Posting Answers For Below Questions

Explain the configuration section of a cobol program with examples of syntax.

660


How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?

710


How to remove 2 duplicate records and copy only one using job control language?

754


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.

1701


What is the difference between comp and comp-3?

704






What is cobol?

748


Write some characteristics of cobol as means of business language.

619


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

2120


How do get the result of your program directly on your pc?

1885


Why is it necessary that file needs to be opened in I-O mode for REWRITE?

748


What are the different types of condition in cobol and write their forms.

659


Which is not true about evaluate statement

1586


What is Pic 9v99 Indicates in COBOL?

729


What is report-item in COBOL?

711


How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?

710