Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What is the difference between structured cobol programming and object alternativelyiented cobol?

1234


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

1141


What rules are to be followed while using the corresponding options?

1051


What rules are followed by the search verb.

1093


What is the default value(s) for an initialize and what keyword allows for an override of the default?

1186


What are the different rules for performing sort operation?

1204


How can you get the ksds file records into your cobol program?

1084


How do you get the data to code the BMS macro?

1955


How you can characterize tables in cobol?

1178


What is the problem of ordered sequential files access?

1143


How arrays can be defined in COBOL?

1193


How to traceback if I am getting SOC7 or SOC4 abend? List down the steps

5360


Have you used comp and comp-3 in your project? And how?

2461


How many sections are there in data division in COBOL?

1115


Which Search verb is equivalent to PERFORM…VARYING?

1026