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 / guna

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, so para will not be executed

so para is executed for 9 times.

Is This Answer Correct ?    7 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you please let me know the centre name of INS certification in Kolkata.

2181


For rewrite, why is it mandatory that file needs to be opened?

1065


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

1144


What is the LINKAGE SECTION used in COBOL?

1469


What are literals?

1075


what happens if parmparameter passes zero bytes to the program

2083


What rules are followed by the search verb.

1050


What is perform what is varying?

1111


What are all the divisions of a COBOL program?

1148


In COBOL programming, what is PERFORM? What is VARYING?

1089


Write down the divisions of cobol program?

1155


Which mode is used to operate the sequential file?

1152


IF I mention stop run in CICS what happens?

2304


how to access the file from prodution from changeman tool and to submit a file to production

7442


Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.

2397