consider the following progrm statements
MOVE 0 TO SW.NO.OF.REC
PERFORM PRI-OUT UNTIL SW=1
DISPALY NO.OF.REC
STOP RUN
PRE-OUT
READ IN-FILE AT END
MOVE 1 TO SW
WRITE OUO-REC FROM IN-REC
ADD 1 TO NO.OF REC
if the IN-FILE contains 1000 records what value will be
displayedafter the
PERFORM is over?assume that N0.OF.REC has PIC 9(4)
a.1000
b.1001
c.1
d.none of the above since there is a syntex error
Answer Posted / divakar
correct ans is D.
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
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
What is the difference between PIC 9.99 and 9v99 in COBOL?
I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue
Name the divisions, which are available in a cobol program?
When is inspect verb is used in cobol?
What is a scope terminator give example?
What are the pertinent COBOL
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
What is the LINKAGE SECTION used in COBOL?
EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?
what are decleratives in cobol?
How do we get current date from system with century in COBOL?
What is the difference between PIC 9.99 and PIC9v99?
What is the difference between next sentence and continue in cobol programing language?
Write a cobol program making use of the redefine clause.