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

what is level 66 means??

7 Answers  


how you will define variables length in cobol.

3 Answers   Temenos,


01 a pic s9(5) value -12345, if we disply a , the sign will overpunched with last digit but i need to get the miuns sign in the result?

7 Answers  


Consider the following COBOL entries 05 X PIC 99 VALUE 10. ADD 40 X TO X. COMPUTE X = 3 * X - 40. The result in X is

12 Answers   TCS,


Q:what is the difference between the variable length and fixed lenght.how it varies in the cobol.

12 Answers   CTS, Wipro,






How do you fetch current date in normal cobol pgm and in cobol-db2 pgm?

3 Answers   Cap Gemini, CTS,


How is sign stored in Packed Decimal fields and Zoned Decimal fields?

6 Answers   ABC, HCL, TCS,


level number 77 is used to define a)group data b)elementary data c)redefine d)none

8 Answers   TCS,


) How do u handle errors in BMS macro

0 Answers   IBM,


i have a requrement in A as viswa!@#$%&^**reddy i need to move viswareddy in B without junk values pls say how to do ths reply fast

4 Answers   L&T,


how can count the number of character in feild ?? suppose for instance i have a feild with value ' rajesh sarkar' then how can v count the number of characters whitout spaces...........

4 Answers   Wipro,


How many maximum number of procedures can we write in one COBOL program?

6 Answers  


Categories