| Other COBOL Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| What is Alternate Index ? How is it different from regular
index ? | | 2 |
| How to delete a front spaces in a data-name/variable in
cobol
Example:-
01 data-name-1 PIC x(20) value " cobol language".
01 data-name-2 PIC x(20).
MOVE data-name-1 to data-name-2.
would like the value of data-name-2 is "cobol language". | | 2 |
| 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 can you submit a job from COBOL programs? | ITC-Infotech | 2 |
| what is the difference between external and global
variables? | | 1 |
| How we copy a program from production region to development
region.What is the process & syntax ? | | 3 |
| What is wrong with the following data declaration?
01 W-DATE PIC X(6).
05 DD PIC 99.
05 MM PIC 99.
05 YY PIC 99.
(a) Nothing is wrong.
(b) Under W-DATE all level 05 items are having a PIC 99 but
level
01 has PIC X(6).
(c) PIC can't be specified for a group item.
(d) DD, MM, and YY are invalid datanames.
| TCS | 4 |
| What are different file OPEN modes available in COBOL? | Sun-Life | 2 |
| ZEROES and SPACES are _______ constants
(a) Figurative
(b) Numeric
(c) Non-numeric
(d) Alphabete
| TCS | 3 |
| What is the maximum length of a field you can define using
COMP-3? | | 2 |
| given the following:
77 A PIC 9V9 VALUE 9.5
77 B PIC 9 VALUE 9.
77 C PIC V9 VALUE 0.8
77 D PIC 9
77 E PIC 9
77 F PIC 9V999
what are the contenta of D E nad F after the following
statements are
executed:
COMPUTE F ROUNDED=A+C/B
MULTIPLY A BY C GIVING E
ADD B C A GIVING D ROUNDED
a.F=9.589 E=8 D=1
b.F=9.589 E=8 D=9
c.F=9.589 E=7 D=9
d.F=9.589 E=7 D=1
| TCS | 4 |
| I want ALL ERROR codes in VSAM | TCS | 2 |
| how will u find out 3rd week's 2nd day using occurs ? | L&T | 3 |
| which generation language is cobol | Kanbay | 3 |
| for an INITIALIZE and what keyword allows for an override
of the default. | | 1 |
| What is binary search? | | 2 |
| consider the following piece of code
01 GROUP-ITEM
05 AMOUNT-1 PIC 99V9 USAGE COMP VALUE 50
05 AMOUNT-2 PIC 9(4)V99 USAGE COMP
MOVE ZERO TO GROUP-ITEM
ADD 50 TO AMOUNT-1
what will be the content of AMOUNT-1?
a.50
b.100
c.0
d.unpredictable
| TCS | 2 |
| period is missing in the cobol program which error we
getting | Tesco | 4 |
| What is SSRANGE, NOSSRANGE ? | | 3 |
| Can JUSTIFIED be used for all the data types? | | 1 |
| |
| For more COBOL Interview Questions Click Here |