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

Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?

0 Answers  


Is it possible that the redefines clause has different picture clauses compared to the one it redefined?

0 Answers  


Write a cobol program making use of the redefine clause.

0 Answers  


which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad

0 Answers  


IDENTIFICATION DIVISION. PROGRAM-ID. MOVEPGM. DATA DIVISION. WORKING-STORAGE SECTION. 01 WS-I PIC 9(2). PROCEDURE DIVISION. A1000-MAIN-PARA. PERFORM PARA-X WITH TEST BEFORE UNTIL WS-I= 5 STOP RUN. PARA-X. DISPLAY "BEST2". I m getting error s722,while executing the program, seems getting in loop, can anybody tell me why

3 Answers  






What is file status 39 ?

10 Answers   JPMorgan Chase,


Why did you choose to work with ibm mainframe cobol programming?

0 Answers  


What is the file organization clause ?

2 Answers  


Explain fixed length record in cobol? with suitable example

1 Answers   IBM,


I have two sequential files, FILE-1 and FILE-2. FILE-1 contains 2 columns(A,B) and FILE-2 contains 3 columns (C,D,E).I want an output file, FILE-3 which has all five columns with duplicates eliminated from column A.

3 Answers  


What are subroutines ? and how do we pass data to the sub routines?

2 Answers   Xansa,


01 ws-p pic 9(2). 01 ws-q pic 9(2) value 01. 01 ws-r pic 9(2) value 99. p.d. compute p = q + r what will be result of p ans(00) but my question is that how i got 10 on the place of 00. (truncation will ocuure on right side not left). please tell me ?

6 Answers   L&T,


Categories