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

how do you reference the fixed unblock file formats from cobol programs

1305


Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?

1393


If you are current on the owner of a set, what is the difference between obtain next and obtain first?

1441


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

1231


Can we change the password using ALTER? anyone tried and changed?

2077


how we sort two input files based on a common column and giving one o/p file please send me the coding logic?

2186


What is the utilization of copybook in cobol?

1273


What is the LINKAGE SECTION used in COBOL?

1599


IF I mention stop run in CICS what happens?

2427


What are the different rules to perform a Search?

1139


Write the code to count the sum of n natural numbers.

1258


What are literals?

1183


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

1152


Define static linking and dynamic linking.

1271


How many bytes S(8) comp field occupy and its maximum value?

2190