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

Describe the cobol database components?

1125


Are you comfortable in cobol or jcl?

988


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.

2394


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

1256


How do you reference the following file formats from cobol programs?

1119


What is cobol?

1189


Which is not true about evaluate statement

2391


) what is the difference between AID and HANDLE AID?

2099


what is amode(24), amode(31), rmode(24) and rmode(any)?

1090


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

1141


What is length is cobol?

1052


What are all the divisions of a COBOL program?

1145


Write the code implementing the perform … varying.

1011


System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..

2011


Explain about different table spaces.

1044