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...

Consider the following:

77 W-NUM PIC 9 VALUE 0
------
MOVE 1 TO W-NUM
PERFORM PARA-X UNTIL W-NUM > 9.
------
PARA-X
ADD 1 TO W-NUM

How many times PARA-X is executed ?

Answer Posted / gaurav

Rahul's answer is correct.

Please note that the W-NUM is defined as PIC 9, hence it
can contain only a single digit numberic number i.e from
number 0 to number 9. Thus when the PARA-X is executed 9
times when W-NUM contains 9. It will not be able to add
further 1 to W-NUM, thus it will go in a infinite loop.

Hope this clear things.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

1249


What is the difference between Global and External Variables?

1378


Explain about different table spaces.

1108


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

1240


i need a small 3d program using inline and outline.

2213


what are decleratives in cobol?

2264


what is difference between cobol and cobol/400

22929


Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?

1153


how do you reference the ksds vsam file formats from cobol programs

1193


Explain what you understand by passing by value.

1157


How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.

4173


Define cobol?

1408


What is the difference between binary search and sequential search?

1092


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

1329


Difference between array and sub-script ?

1667