| Other COBOL Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| What does the INITIALIZE verb do? | | 1 |
| How to read records from flat file in reverse order through
COBOL program? | Polaris | 4 |
| COMPUTE X = A * B - C * D and
COMPUTE X = (A * B) - (C * D)
(a) Are not the same
(b) Are same
(c) Syntactically wrong
(d) Will yield a run time error
| TCS | 1 |
| .How to add one input & one Out file in existing cobol
program.
how approach tell me step by step.
| Syntel | 2 |
| PERFORM ACCUMULATE-TOTALS
VARYING A FROM 1 BY 2 UNTIL A >2
AFTER B FROM1 BY 1 UNTIL B>2
AFTER C FROM 2 BY -1 UNTIL C<2
How many times the paragraph ACCUMULATE-TOTALS would be
exicuted?
| TCS | 4 |
| How to covert given string into ASCII value in COBOL/MF
COBOL | IBM | 3 |
| What will happen if a variable is declared as below..
Explain with an example?
Working storage section:-
01 WS-VARX PIC X(9) VALUE SPACES.
01 WS-VARN REDEFINES WS-VARX PIC 9(9). | | 7 |
| I have 2 dimensional array with having 100 elements. So how
to find the 11th item in an array? | IBM | 3 |
| How is sign stored in Packed Decimal fields and Zoned
Decimal fields? | TCS | 1 |
| What will happen if we move SPACES to numeric field and
ZEROES to alphabetic field? | | 1 |
| What will happen if you code GO BACK instead of STOP RUN in
a stand-alone COBOL program i.e. a program which is not
calling any other program ? | | 1 |
| How many bytes will be allocated for the following record
description
entries?
01 REC-A.
05 A PIC S9(4).
05 B PIC XXXBXXX.
05 C PIC ____9.99.
05 D PIC S9(5) COMP-3.
05 E PIC 9(3) COMP.
| TCS | 10 |
| how to submit a jcl by cobol program.
clear me with an example. | HCL | 1 |
| How will you find the currepted records in a file | | 1 |
| Have you code any new programs in COBOL ? What is the
functionality of the programs? | Xansa | 2 |
| What is the file organization clause ? | | 2 |
| What are the differences between COBOL and COBOL II? | CSC | 1 |
| Can you call an OS VS COBOL pgm from a VS COBOL II pgm ? | Microsoft | 3 |
| The maximum number of dimensions that an array can have in
COBOL-85 is ? | | 7 |
| there is a file whose ORGANISATION is INDEXED.you want to
read the records
from the file in RANDOM fashion as well as
sequentially.then which of the
access mode would you specify?
a.SEQUENTIAL
b.RANDOM
c.DYNAMIC
D.ACCESS MODE has nothing to do with it
| TCS | 3 |
| |
| For more COBOL Interview Questions Click Here |