consider the following two statements
MOVE 10 TO N
PERFORM PARA-X N TIMES
STOP RUN
PARA-X
MOVE 5 TO N
how many times PARA-X willbe exicuted?
a.10
b.5
c.infinate
d.execution error

Answers were Sorted based on User's Feedback



consider the following two statements MOVE 10 TO N PERFORM PARA-X N TIMES STOP RUN PAR..

Answer / guest

10

Is This Answer Correct ?    12 Yes 0 No

consider the following two statements MOVE 10 TO N PERFORM PARA-X N TIMES STOP RUN PAR..

Answer / vineet pasricha

It will execute 10 times

Is This Answer Correct ?    6 Yes 0 No

consider the following two statements MOVE 10 TO N PERFORM PARA-X N TIMES STOP RUN PAR..

Answer / rams

I tried this code. It executed 11 times...

Is This Answer Correct ?    6 Yes 2 No

consider the following two statements MOVE 10 TO N PERFORM PARA-X N TIMES STOP RUN PAR..

Answer / pradeep

It will execute only 10 Times only

See Below Code

IDENTIFICATION DIVISION.
PROGRAM-ID. MOVEPGM.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 WS-COUNT PIC 9(2).
PROCEDURE DIVISION.
A1000-MAIN-PARA.
MOVE 10 TO WS-COUNT
PERFORM PARA-X WS-COUNT TIMES.
STOP RUN.
PARA-X.
DISPLAY "TEST1".
MOVE 5 TO WS-COUNT.

Output Looks like this:

COMMAND INPUT ===>
********************************* TOP OF DATA *****
TEST1
TEST1
TEST1
TEST1
TEST1
TEST1
TEST1
TEST1
TEST1
TEST1
******************************** BOTTOM OF DATA ***

Is This Answer Correct ?    4 Yes 0 No

consider the following two statements MOVE 10 TO N PERFORM PARA-X N TIMES STOP RUN PAR..

Answer / raj

10 times

Is This Answer Correct ?    3 Yes 0 No

consider the following two statements MOVE 10 TO N PERFORM PARA-X N TIMES STOP RUN PAR..

Answer / rehan

I think it'll execute infinite times

Is This Answer Correct ?    1 Yes 2 No

Post New Answer

More COBOL Interview Questions

Explain complete concept of table handling in COBOL with an example?

2 Answers   IBM, TCS, Wipro,


How do u sort the table for Search ALL? Is it only using ASCENDING KEY IS statement in occurs clause? If the data is input in non ascending order, will the ASC KEY IS automatically sort the data? or will it throw compile time error?

1 Answers   CTS,


Can we change the password using ALTER? anyone tried and changed?

0 Answers   IBM,


The hierarchy of the execution of logical operators is (a) NOT AND OR (b) AND OR NOT (c) OR AND NOT (d) OR NOT AND

10 Answers   Huawei, IBM, TCS,


What is CALL statement in COBOL?

4 Answers  






Can we redefine the field of x(200) to less than 200?

0 Answers  


Is It Possible to Update or change in VIEW Mode?

5 Answers   CSC,


What are all the divisions of a COBOL program?

0 Answers  


What is the difference between Global and External Variables?

0 Answers  


which generation language is cobol

4 Answers   Kanbay,


A table has two indexes defined. Which one will be used by the SEARCH?

0 Answers  


Can we access the a[0] in the array ?

6 Answers   DCL, IBM,


Categories