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 / sudeshna majumdar

Correct answer is c) 30.

The para1 will be performed 6 times where the values of I
will be 10, 8, 6, 4, 2, and 0 respectively.
After each processing of para1, value of J will be
incremented by 5 and value of I will be decremented by 2.
Now, the para1 is called starting from I = 10 and ends when
I = 0. Thus, after 6 time para1 processing,J value will be
5*6 = 30.

Is This Answer Correct ?    10 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of intialize verb?

1262


) How do u handle errors in BMS macro

2061


what is the difference between COBOL2 AND COBOL390?

3070


i want a program using by if, evaluate , string, unstring, perform, occurs?

4733


Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?

1120


which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad

1510


How do define dynamic array in cobol.

1146


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

1228


Write a program to explain size error.

1204


How you can read the file from bottom?

1162


How arrays can be defined in COBOL?

1230


Define static linking and dynamic linking.

1205


What are the cobol coding sheets?

1285


HOw can I get the negative sign while deduct high value from low value

2261


How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that

3234