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 / suputhru
Gaayathri is right!!!
para1 will be performed only 5 times
J is 5+(5*5) equals 30
correct answer is c) 30
Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What are INPUT PROCEDURE and OUTPUT PROCEDURE?
can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech
What is the utilization of copybook in cobol? Could we utilize a similar copybook?
What is a report item?
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
State the various causes of s0c1, s0c5 and s0c7.
write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc
How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?
Difference between array and sub-script ?
Explain how to differentiate call by context by comparing it to other calls?
Why did you choose to work with ibm mainframe cobol programming?
How do you get the data to code the BMS macro?
When is inspect verb is used in cobol?
here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?
i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc