77 I pic 99 value 5
Perorm para-A I times.

Para -A.
move 10 to I.

How many times the para-A will be executed.?

Answers were Sorted based on User's Feedback



77 I pic 99 value 5 Perorm para-A I times. Para -A. move 10 to I. How many times the para-A ..

Answer / rana

Only 5 Times as it won't take the 10 which is intialized in
Para-A.

Is This Answer Correct ?    16 Yes 4 No

77 I pic 99 value 5 Perorm para-A I times. Para -A. move 10 to I. How many times the para-A ..

Answer / raghunathareddy

perform para-1 5 times

Is This Answer Correct ?    3 Yes 2 No

77 I pic 99 value 5 Perorm para-A I times. Para -A. move 10 to I. How many times the para-A ..

Answer / sivaram

It goes into loop since the variable takes the 10 in it
every time when it performs.Generally the variable should be
decremented by 1 for correct results.

Is This Answer Correct ?    4 Yes 4 No

77 I pic 99 value 5 Perorm para-A I times. Para -A. move 10 to I. How many times the para-A ..

Answer / prasanna

5 times

Is This Answer Correct ?    1 Yes 1 No

77 I pic 99 value 5 Perorm para-A I times. Para -A. move 10 to I. How many times the para-A ..

Answer / kiran

5 times

why bcoze once para-A I times executed,initially the value
of i=5;

5 time para -A executed

Is This Answer Correct ?    0 Yes 0 No

77 I pic 99 value 5 Perorm para-A I times. Para -A. move 10 to I. How many times the para-A ..

Answer / gowtham

Hi, I have executed above code and it performed 6 times. SO the answer is 6 times.

Is This Answer Correct ?    0 Yes 0 No

77 I pic 99 value 5 Perorm para-A I times. Para -A. move 10 to I. How many times the para-A ..

Answer / chinna

Please confirm which ans is correct ?
why it wont take I = 10?
can any one give explanation ?

Thanks ,

Is This Answer Correct ?    1 Yes 2 No

77 I pic 99 value 5 Perorm para-A I times. Para -A. move 10 to I. How many times the para-A ..

Answer / suputhru

Para -A.
move 10 to I.
display I.

it will move 10 to I upto 5 times.
10 20 30 40 50.

it will execute 5 times only.

Is This Answer Correct ?    3 Yes 4 No

77 I pic 99 value 5 Perorm para-A I times. Para -A. move 10 to I. How many times the para-A ..

Answer / prachi

when it will execute perform statement for the first time,
the value in i is 5..Then it is moving 10 to i ..So when it
will execute the perform 2nd time...that time the value of
i is 10..so Para-A will be performed 11 times...
Please let me know my ans is correct or not...

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More COBOL Interview Questions

What is the difference between binary search and sequential search?

0 Answers  


how would you resolve sb37 and SE37?

2 Answers   Hewitt,


What rules are followed by the search verb.

0 Answers  


How to find whether a Flat file is empty or not without Reading a file in COBOL Program. (not using JCL)

9 Answers   Bank Of America,


How many times the loop runs here 01 a pic 9(2) value 10. perform para1 a times stop run. para1: move 20 to a.

3 Answers  






) How do u handle errors in BMS macro

0 Answers   IBM,


In a COBOL II PERFORM statement, when is the conditional tested, before or after the perform execution?

3 Answers  


Explain call by context by comparing it to other calls.

1 Answers  


WORKING-STORAGE SECTION. 01 A PIC X(3) VALUE 'ABC' 01 B PIC 9(3). PROCEDURE DIVISION. MOVE A TO B. STOP RUN. OUTPUT IS: AB3 WHY AND HOW THIS IS HAPPENING.

4 Answers   Atos Origin,


What type of SDLC u followed? Why?

0 Answers   IBM,


can I copy book which contain db2 statment in procedure divion?

2 Answers   Bank Of America,


How to know whether the module is dynamical or statistical?

0 Answers  


Categories