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 external and global variables in COBOL?

0 Answers   Winsol Solutions,


Our issue is there seems to be a disconnect, or no link, between our SELECT statement and our SD. We had SELECT SORT-FILE and SELECT SORT-FILE ASSIGN TO SORTWRK. ASSIGN TO SORTWRK1 SORTWRK2 SORTWRK3 SORTWRK4. with SD SORT_FILE RECORD CONTAINS 7833 CHARACTERS. In either case, at run time, the system ignored our SORTWRK# DD statements and allocated 16 sort works with the SORTWK## naming convention. Any ideas why the system does not recognize the connection? We do not even need the SORTWRK DD statements. Thanks

0 Answers  


how do you reference the rrds file formats from cobol programs

0 Answers  


can we display comp-3 variables. if we want to display what we have to do . give me one example

6 Answers   CGI, Deloitte,


In which area will you utilize 88 level items in cobol?

0 Answers  






hai friends ,i have HSBc exam on this sunday,my platform is Mainframe,i have 1 year exp,pls any one send me placement papers of Hsbc and technical questions on mainframe

6 Answers   Citi Bank, CitiGroup, HSBC, iNautix, Wipro,


How do you get the data to code the BMS macro?

0 Answers   IBM,


Name the divisions in a COBOL program ?

7 Answers  


i have variable record in the 5th, i want to sort from 5th filed ? how ?

2 Answers   TCS,


What will happen if a variable is declared as below.. Explain with an example? Working storage section:- 01 WS-VARX PIC X(10) VALUE 'ABCDEFGHIJ'. 01 WS-VARN REDEFINES WS-VARX PIC 9(5) VALUE '12345'. What will happen I want Display WS-VARX and WS-VARN?

3 Answers   Xansa,


i have mainprogram and subgram...if i compile mainprogram without stop run..what will u get in compilation time?

5 Answers   HCL,


What is the difference between CALL BY VALUE and CALL BY CONTENT?

7 Answers  


Categories