COBOL Interview Questions

 
1.
How many sections are there in data division?
2.
What is Redefines clause?
3.
What is the different between index and subscript?
4.
What is the difference between Structured COBOL Programming and Object Alternativelyiented COBOL programming?
5.
What divisions, sections and paragraphs are mandatory for a COBOL program?
6.
What happens when we move a comp-3 field to an edited (say z (9). ZZ-)?
7.
What is the difference between external and global variables?
8.
What is difference between COBOL and VS COBOL II?
9.
Difference between next and continue clause?
10.
What is the Importance of GLOBAL clause According to new standards of COBOL?
11.
What is the Purpose of POINTER Phrase in STRING command?
12.
What is the LINKAGE SECTION used for?
13.
Describe the difference between subscripting and indexing?
14.
Differentiate COBOL and COBOL-II. (Most of our programs are written in COBOLII, so, it is good to know, how, this is different from COBOL)?
15.
Why do we code S9 (4) comp. Inspite of knowing comp-3 will occupy less space ?
16.
How do you code COBOL to access a parameter that has been defined in JCL? And do you code the PARM parameter on the EXEC line in JCL?
17.
What do you feel makes a good program?
18.
What is the difference between static call and Dynamic call?
19.
Give some advantages of REDEFINES clause?
20.
How to execute a set of JCL statements from a COBOL program?
21.
How do you submit JCL via a COBOL program?
22.
What care has to be taken to force program to execute above 16 Meg line?
23.
What is the difference between SEARCH and SEARCH ALL? What is more efficient?
24.
What guidelines should be followed to write a structured COBOL prgm?
25.
What is Pic 9v99 Indicates?
26.
What is the difference between PIC 9.99 and 9v99?
27.
What is the difference between a DYNAMIC and STATIC call in COBOL?
28.
How can I tell if a module is being called DYNAMICALLY or STATICALLY?
29.
What is the point of the REPLACING option of a copy statement?
30.
What is the difference between a binary search and a sequential search? What are the pertinent COBOL commands?
31.
What is LENGTH in COBOL II?
32.
What is SET TO TRUE all about, anyway?
33.
What is the default value(s) for an INITIALIZE and what keyword allows for an override of the default?
34.
In an EVALUTE statement is the order of the WHEN clauses significant?
35.
In a COBOL II PERFORM statement, when is the conditional tested, before or after the perform execution?
36.
When is a scope terminator mandatory?
37.
Explain the difference between an internal and an external sort, the pros and cons, internal sort syntax etc?
38.
If you were passing a table via linkage, which is preferable - a subscript or an index?
39.
What is the difference between a subscript and an index in a table definition?
40.
What is the linkage section?
41.
Explain call by context by comparing it to other calls?
42.
What was removed from COBOL in the COBOL II implementation?
43.
What is the significance of above the line and below the line?
44.
What is the difference between NEXT SENTENCE and CONTINUE?
45.
What is an in line PERFORM? When would you use it? Anything else you wish to say about it.
46.
What is an explicit scope terminator?
47.
What are the differences between COBOL and COBOL II?
48.
How do you reference the following file formats from COBOL programs?
49.
What is COMP SYNC?
50.
How many bytes do a S9 (7) COMP-3 field occupy?
51.
How do you define a variable of COMP-1 and COMP-2?
52.
What is COMP-1 and COMP-2?
53.
What is the difference between COMP and COMP-3?
54.
How is sign stored in a COMP field?
55.
How is sign stored in a comp-3 field?
56.
How is sign stored in Packed Decimal fields and Zoned Decimal fields?
57.
What do you do to resolve SOC-7 error?
58.
Can I redefine an X(100) field with a field of X(200)?
59.
What does EXIT do?
60.
What the difference is between CONTINUE and NEXT SENTENCE?
61.
What is the difference between performing a SECTION and a PARAGRAPH?
62.
How do you define a sort file in JCL that runs the COBOL program?
63.
How do you sort in a COBOL program Give sort file definition, sort statement syntax and meaning?
64.
My program has an array defined to have 10 items. Due to a bug, I find that even if the program access the 11th item in this array, the program does not ABEND. What is wrong with it?
65.
What is binary search?
66.
What should be the sorting order for SEARCH ALL?
67.
What is the difference between SEARCH and SEARCH ALL?
68.
What is the difference between index and subscript?
69.
How do you define a table/array in COBOL?
70.
What does the IS NUMERIC clause establish?
71.
What are 77 levels used for?
72.
What does the INITIALIZE verb do?
73.
What are the different data types available in COBOL?
74.
Name the divisions, which are available in a COBOL program?
75.
What are the types of record locks and how are they set?
76.
How do you set a return code to the JCL from a COBOL program?
77.
What is SSRANGE, NOSSRANGE?
78.
What is AMODE(24), AMODE(31), RMODE(24) and RMODE(ANY) (applicable to only MVSESA Enterprise Server) ?
79.
What is Static and Dynamic linking?
80.
How many bytes does a S9(7) COMP-3 field occupy?
81.
What the difference is between CONTINUE and NEXT SENTENCE ?
82.
When would you use in-line perform?
83.
What is a scope terminator Give example?
84.
How do you come out of an EVALUATE statement?
85.
What is the use of EVALUATE statement?
86.
How are record locks released?
87.
What does a status return code of nn29 mean in relation to record locks?
88.
What is an area sweep and when is it used?
89.
Why would you use find and get rather than to obtain?
90.
What is a bind?
91.
If you are current on the owner of a set, what is the difference between obtain next and obtain first?
92.
How you can read the file from bottom?
93.
Is it possible that the REDEFINES clause has different picture clauses compared to the one it redefined?
94.
What are the different forms of EVALUATE statement?
95.
Why do we code s9 (4) comp In spite of knowing comp-3 will occupy less space?
96.
What is the difference between Structured COBOL Programming and Object Alternativelyiented COBOL?
97.
What is PERFORM what is VARYING?
98.
How do you differentiate between COBOL and COBOL-II?
99.
Why do we code S9 (4) comp. Inspite of knowing comp-3 will occupy less space?
100.
What is the difference between a binary search and a sequential search what are the pertinent COBOL?
101.
What is the default value(s) for an INITIALIZE? What keyword will allow for an override of the default?
102.
What is the difference between comp and comp-3 usage Explain other COBOL usages?
103.
Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc
104.
Explain how to differentiate call by context by comparing it to other calls?
105.
What COBOL construct is the COBOL II EVALUATE meant to replace?
106.
What is an in line PERFORM When would you use it anything else to say about it?
107.
Can you call an OS VS COBOL pgm from a VS COBOL II pgm ?
108.
What are the steps you go through while creating a COBOL program executable?
109.
What are the differences between OS VS COBOL and VS COBOL II?
110.
How can you submit a job from COBOL programs?
111.
How many sections are there in data division?
112.
What is Redefines clause?
113.
What is the different between index and subscript?
114.
What is the difference between Structured COBOL Programming and Object Alternativelyiented COBOL programming?
115.
What divisions, sections and paragraphs are mandatory for a COBOL program?
116.
What happens when we move a comp-3 field to an edited (say z (9). ZZ-)?
117.
What is the difference between external and global variables?
118.
What is difference between COBOL and VS COBOL II?
119.
Difference between next and continue clause?
120.
What is the Importance of GLOBAL clause According to new standards of COBOL?
121.
What is the Purpose of POINTER Phrase in STRING command?
122.
What is the LINKAGE SECTION used for?
123.
Describe the difference between subscripting and indexing?
124.
Differentiate COBOL and COBOL-II. (Most of our programs are written in COBOLII, so, it is good to know, how, this is different from COBOL)?
125.
Why do we code S9 (4) comp. Inspite of knowing comp-3 will occupy less space ?
126.
How do you code COBOL to access a parameter that has been defined in JCL? And do you code the PARM parameter on the EXEC line in JCL?
127.
What do you feel makes a good program?
128.
What is the difference between static call and Dynamic call?
129.
Give some advantages of REDEFINES clause?
130.
How to execute a set of JCL statements from a COBOL program?
131.
How do you submit JCL via a COBOL program?
132.
What care has to be taken to force program to execute above 16 Meg line?
133.
What is the difference between SEARCH and SEARCH ALL? What is more efficient?
134.
What guidelines should be followed to write a structured COBOL prgm?
135.
What is Pic 9v99 Indicates?
136.
What is the difference between PIC 9.99 and 9v99?
137.
What is the difference between a DYNAMIC and STATIC call in COBOL?
138.
How can I tell if a module is being called DYNAMICALLY or STATICALLY?
139.
What is the point of the REPLACING option of a copy statement?
140.
What is the difference between a binary search and a sequential search? What are the pertinent COBOL commands?
141.
What is LENGTH in COBOL II?
142.
What is SET TO TRUE all about, anyway?
143.
What is the default value(s) for an INITIALIZE and what keyword allows for an override of the default?
144.
In an EVALUTE statement is the order of the WHEN clauses significant?
145.
In a COBOL II PERFORM statement, when is the conditional tested, before or after the perform execution?
146.
When is a scope terminator mandatory?
147.
Explain the difference between an internal and an external sort, the pros and cons, internal sort syntax etc?
148.
If you were passing a table via linkage, which is preferable - a subscript or an index?
149.
What is the difference between a subscript and an index in a table definition?
150.
What is the linkage section?
151.
Explain call by context by comparing it to other calls?
152.
What was removed from COBOL in the COBOL II implementation?
153.
What is the significance of above the line and below the line?
154.
What is the difference between NEXT SENTENCE and CONTINUE?
155.
What is an in line PERFORM? When would you use it? Anything else you wish to say about it.
156.
What is an explicit scope terminator?
157.
What are the differences between COBOL and COBOL II?
158.
How do you reference the following file formats from COBOL programs?
159.
What is COMP SYNC?
160.
How many bytes do a S9 (7) COMP-3 field occupy?
161.
How do you define a variable of COMP-1 and COMP-2?
162.
What is COMP-1 and COMP-2?
163.
What is the difference between COMP and COMP-3?
164.
How is sign stored in a COMP field?
165.
How is sign stored in a comp-3 field?
166.
How is sign stored in Packed Decimal fields and Zoned Decimal fields?
167.
What do you do to resolve SOC-7 error?
168.
Can I redefine an X(100) field with a field of X(200)?
169.
What does EXIT do?
170.
What the difference is between CONTINUE and NEXT SENTENCE?
171.
What is the difference between performing a SECTION and a PARAGRAPH?
172.
How do you define a sort file in JCL that runs the COBOL program?
173.
How do you sort in a COBOL program Give sort file definition, sort statement syntax and meaning?
174.
My program has an array defined to have 10 items. Due to a bug, I find that even if the program access the 11th item in this array, the program does not ABEND. What is wrong with it?
175.
What is binary search?
176.
What should be the sorting order for SEARCH ALL?
177.
What is the difference between SEARCH and SEARCH ALL?
178.
What is the difference between index and subscript?
179.
How do you define a table/array in COBOL?
180.
What does the IS NUMERIC clause establish?
181.
What are 77 levels used for?
182.
What does the INITIALIZE verb do?
183.
What are the different data types available in COBOL?
184.
Name the divisions, which are available in a COBOL program?
185.
What are the types of record locks and how are they set?
186.
How do you set a return code to the JCL from a COBOL program?
187.
What is SSRANGE, NOSSRANGE?
188.
What is AMODE(24), AMODE(31), RMODE(24) and RMODE(ANY) (applicable to only MVSESA Enterprise Server) ?
189.
What is Static and Dynamic linking?
190.
How many bytes does a S9(7) COMP-3 field occupy?
191.
What the difference is between CONTINUE and NEXT SENTENCE ?
192.
When would you use in-line perform?
193.
What is a scope terminator Give example?
194.
How do you come out of an EVALUATE statement?
195.
What is the use of EVALUATE statement?
196.
How are record locks released?
197.
What does a status return code of nn29 mean in relation to record locks?
198.
What is an area sweep and when is it used?
199.
Why would you use find and get rather than to obtain?
200.
What is a bind?
201.
If you are current on the owner of a set, what is the difference between obtain next and obtain first?
202.
How you can read the file from bottom?
203.
Is it possible that the REDEFINES clause has different picture clauses compared to the one it redefined?
204.
What are the different forms of EVALUATE statement?
205.
Why do we code s9 (4) comp In spite of knowing comp-3 will occupy less space?
206.
What is the difference between Structured COBOL Programming and Object Alternativelyiented COBOL?
207.
What is PERFORM what is VARYING?
208.
How do you differentiate between COBOL and COBOL-II?
209.
Why do we code S9 (4) comp. Inspite of knowing comp-3 will occupy less space?
210.
What is the difference between a binary search and a sequential search what are the pertinent COBOL?
211.
What is the default value(s) for an INITIALIZE? What keyword will allow for an override of the default?
212.
What is the difference between comp and comp-3 usage Explain other COBOL usages?
213.
Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc
214.
Explain how to differentiate call by context by comparing it to other calls?
215.
What COBOL construct is the COBOL II EVALUATE meant to replace?
216.
What is an in line PERFORM When would you use it anything else to say about it?
217.
Can you call an OS VS COBOL pgm from a VS COBOL II pgm ?
218.
What are the steps you go through while creating a COBOL program executable?
219.
What are the differences between OS VS COBOL and VS COBOL II?
220.
How can you submit a job from COBOL programs?