Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

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 ..

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 ..

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 ..

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 ..

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 ..

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 ..

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 ..

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 ..

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

More COBOL Interview Questions

RENAME clause takes new SPACE in memory.TRUE or FALSE? a)TRUE 2)FALSE

why we are using picture clause in the cobol programs?

How do you compile cobol program..?

COBOL program to read the string ' BOMBAY' in reverse order as 'YABMOB'

what happens if parmparameter passes zero bytes to the program

How can we know that cobol program is using report file or simple file....?

What is the difference between PIC 9.99 and 9v99?

What is wrong with the following data declaration? 01 W-DATE PIC X(6). 05 DD PIC 99. 05 MM PIC 99. 05 YY PIC 99. (a) Nothing is wrong. (b) Under W-DATE all level 05 items are having a PIC 99 but level 01 has PIC X(6). (c) PIC can't be specified for a group item. (d) DD, MM, and YY are invalid datanames.

If there are two files one with 100 records and other with 101 records. we have to find out the one record that is the odd man out . What are the steps to do it

What is an in line PERFORM? When would you use it? Anything else to say about it?

TYPES OF SORTINGS. which is more prefarable.

what is the purpose of linkage section?

Categories