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
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 |
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 |
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 |
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 |
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 |
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 |
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 |
What guidelines should be followed to write a structured Cobol program?
What are the access modes of START statement?
can we use the two 01 level in file discription ?
What are the different rules of SORT operation?
can we use reference modification an arry.
given the following: 77 A PIC 9V9 VALUE 9.5 77 B PIC 9 VALUE 9. 77 C PIC V9 VALUE 0.8 77 D PIC 9 77 E PIC 9 77 F PIC 9V999 what are the contenta of D E nad F after the following statements are executed: COMPUTE F ROUNDED=A+C/B MULTIPLY A BY C GIVING E ADD B C A GIVING D ROUNDED a.F=9.589 E=8 D=1 b.F=9.589 E=8 D=9 c.F=9.589 E=7 D=9 d.F=9.589 E=7 D=1
What is difference between com and com3? Eg. s9(4) so what is the memory it will occupy com and com3.
what is search and searchall?what is the diffrence between them?give an best example?
Can you please let me know the centre name of INS certification in Kolkata.
What is static and dynamic call in cobol?
I have one column say 'X' defined as VARCHAR Can anyone tell me What are the different ways to update this column thru COBOL-DB2 program?
How can you pass values from COBOL program to non-COBOL programs?