Professional Documents
Culture Documents
Following is a list of COBOL interview questions with answers for mainframe professionals
looking for a Job change. These are job interview questions for mainframe professionals
with COBOL skills. These frequently asked interview questions for COBOL and will help
you brush up your basic cobol skills
The answers to interview questions are also provided just below the interview questions.
There more sample interview questions on this website.
MOVE 1 TO VAR1
MOVE 2 TO VAR2
EVALUATE TRUE
WHEN VAR1=1
PERFORM PARA-1
WHEN VAR2=2
http://mainframewizard.com/content/cobol-interview-questions-answers 1/7
3/12/2018 COBOL INTERVIEW QUESTIONS WITH ANSWERS
PERFORM PARA-2
WHEN OTHER
NEXT SENTENCE
END-EVALUATE.
A) var-var1
B) data1
C) two
D) all
MOVE 1 TO VAR1
MOVE 2 TO VAR2
EVALUATE TRUE
WHEN VAR1=1
PERFORM PARA-1
WHEN VAR2=2
PERFORM PARA-2
WHEN OTHER
DISPLAY VAR1
END-EVALUATE.
A) +
B) $
http://mainframewizard.com/content/cobol-interview-questions-answers 2/7
3/12/2018 COBOL INTERVIEW QUESTIONS WITH ANSWERS
C) S
D) -
MOVE 0 TO VAR1
EVALUATE TRUE
WHEN VAR1=1
PERFORM PARA-1
WHEN VAR1=2
PERFORM PARA-2
WHEN OTHER
PERFORM PARA-3
END-EVALUATE.
A) A-1
B) 999
C) A+1
D) ZZ9
MOVE 0 TO VAR1
EVALUATE TRUE
WHEN VAR1=1
PERFORM PARA-1
WHEN VAR1=2
PERFORM PARA-2
END-EVALUATE.
http://mainframewizard.com/content/cobol-interview-questions-answers 3/7
3/12/2018 COBOL INTERVIEW QUESTIONS WITH ANSWERS
A) 8-16
B) 8-11
C) 12-72
D) 8-10
05 CALENDAR-DATE.
08 CALENDAR-DAY PIC 99.
08 CALENDAR-MON PIC 99.
08 CALENDAR-YEAR PIC 99.
05 FILLER PIC X(5).
05 VAR1 PIC XX.
05 VAR2 PIC X.
05 END-DATE.
10 FILLER PIC X(4).
10 END-YEAR PIC 99.
A) 3
B) 6
C) 4
D) 5
A) 8-16
http://mainframewizard.com/content/cobol-interview-questions-answers 4/7
3/12/2018 COBOL INTERVIEW QUESTIONS WITH ANSWERS
B) 8-11
C) 12-72
D) 8-10
A) True
B) False
WRITE MASTER-REC
This suggests that the OPEN statement for this file
must NOT be
A) OPEN INPUT
B) OPEN EXTEND
C) OPEN INPUT-OUTPUT
D) OPEN OUTPUT
Program-id is compulsory?
A) True
B) False
A) True
B) False
A) True
B) False
A) 10
B) 160
C) 18
D) 32
http://mainframewizard.com/content/cobol-interview-questions-answers 5/7
3/12/2018 COBOL INTERVIEW QUESTIONS WITH ANSWERS
A Non Numeric literal in COBOL can have at most how many digits?
A) 10
B) 160
C) 18
D) 32
A) True
B) False
Please note there are more interview question and answers on mainframewizard. If you
have some unanswered cobol interview questions then you can post these on the COBOL
forum available on the website's front page.
Comments
Anonymous thanks
Sun, 11/13/2011
- 19:12 simply superb
permalink
Anonymous
http://mainframewizard.com/content/cobol-interview-questions-answers 6/7
3/12/2018 COBOL INTERVIEW QUESTIONS WITH ANSWERS
Sun, 10/21/2012
- 09:11 i knew only two elementary
permalink
i knew only two elementary items
01 A pic ((20).
01 rec1.
this is my opinion .
Thanks &Regards
prasadmalleboina
http://mainframewizard.com/content/cobol-interview-questions-answers 7/7