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 / mr.perfect

9 times.
Initially, W-Num value will be 1.
1>9, so para will be executed. - 1 time
2>9, so para will be executed. - 2 times
3>9, so para will be executed. - 3 times
4>9, so para will be executed. - 4 times
5>9, so para will be executed. - 5 times
6>9, so para will be executed. - 6 times
7>9, so para will be executed. - 7 times
8>9, so para will be executed. - 8 times
9>9, so para will be executed. - 9 times
10>9, this will go to 0 because , the PIC at WOrking
storage section is 9. so that 10 becomes 0
W-NNum = 0 . THe loop again start from 0> 9
this will execute Infinite loop.

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many sections are there in data division in COBOL?

1184


i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc

2639


what is s000 u4087 error? please give the all error codes in cobol,jcl.

17930


please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?

2536


Which Search verb is equivalent to PERFORM…VARYING?

1106


1.give the details about WHEN OTHER. 2. how many form are available in evaluate.

2167


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

1246


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

1396


What are INPUT PROCEDURE and OUTPUT PROCEDURE?

1367


Write the code implementing the perform … varying.

1122


How do you differentiate between cobol and cobol-ii?

1284


What guidelines should be followed to write a structured cobol prgm?

1215


what is the use of outrecord?

2275


What is the utilization of copybook in cobol? Could we utilize a similar copybook?

1275


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

1151