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
Can you please let me know the centre name of INS certification in Kolkata.
For rewrite, why is it mandatory that file needs to be opened?
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?
What is the LINKAGE SECTION used in COBOL?
What are literals?
what happens if parmparameter passes zero bytes to the program
What rules are followed by the search verb.
What is perform what is varying?
What are all the divisions of a COBOL program?
In COBOL programming, what is PERFORM? What is VARYING?
Write down the divisions of cobol program?
Which mode is used to operate the sequential file?
IF I mention stop run in CICS what happens?
how to access the file from prodution from changeman tool and to submit a file to production
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.