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


Please Help Members By Posting Answers For Below Questions

What are INPUT PROCEDURE and OUTPUT PROCEDURE?

691


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

1961


What is the utilization of copybook in cobol? Could we utilize a similar copybook?

720


What is a report item?

741


How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)

2725






State the various causes of s0c1, s0c5 and s0c7.

665


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

712


How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?

1949


Difference between array and sub-script ?

1169


Explain how to differentiate call by context by comparing it to other calls?

689


Why did you choose to work with ibm mainframe cobol programming?

631


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

1476


When is inspect verb is used in cobol?

679


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?

6837


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

2107