Move Zeroes to I
move 5 to j
perform para1 varying I from 10 by -2 until I = 0
display j.
para1.
Add 5 to j.
What’ll be the value after execution of display stmt.
A) 35
B) 40
C) 30
D) 25
please explain how?
Answer Posted / avi
The value of J before the Para call is 5.
Now,the loop executes for 6 times, so 5*6 is added to the
existing value of J.
J=5+(5*6)
=35.
The correct option is 35.
| Is This Answer Correct ? | 7 Yes | 12 No |
Post New Answer View All Answers
Can you please let me know the centre name of INS certification in Kolkata.
what is search and searchall?what is the diffrence between them?give an best example?
What are the different rules of SORT operation?
EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?
Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
1.give the details about WHEN OTHER. 2. how many form are available in evaluate.
What is the difference between a binary search and a sequential search what are the pertinent cobol?
) how do u code after getting data?
Explain the configuration section of a cobol program with examples of syntax.
I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?
if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.
what is the use of outrecord?
What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?
Name the sections present in data division.