| Other COBOL Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| in how many mode we can open a file ? | | 3 |
| What guidelines should be followed to write a structured
Cobol program? | | 1 |
| If you were passing a table via linkage, which is
preferable - a subscript or an index? | TCS | 3 |
| Can a REDEFINES clause be used along with an OCCURS clause?
if yes,
01 WS-TABLE.
03 WS-TABLE-EL OCCURS 5 TIMES PIC X(1) VALUE 'A'.
03 WS-EX REDEFINES WS-TABLE-EL PIC X(5). What can you
expect?
if no,why?
| | 2 |
| In a COBOL II PERFORM statement, when is the conditional
tested, before or after the perform execution? | | 3 |
| consider the following two IF statements:
IF X AND NOT Y MOVE A TO B
IF Z=1 OR 9 MOVE A TO B
select one of the following data divusion entries which
gives identical
results for both the above IF statements
a.01 Z PIC 9
88 X VALUE 1.9
88 Y VALUE 0.2 THRU 8
b.01 Z PIC 9
88 X VALUE 0.2 THRU 8
Y VALUE 1.9
c.01 Z PIC 9
88 X VALUE 1.9
88 NOT-Y VALUE 0.2 THRU 1.9
d.none of yhe above
| TCS | 2 |
| 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
| TCS | 3 |
| what do you mean by copybook? and what is the difference
between the copybook which we are using in working storage
and procedure division. | TCS | 2 |
| What does the INITIALIZE verb do? | | 1 |
| I have 2 dimensional array with having 100 elements. So how
to find the 11th item in an array? | IBM | 3 |
| Wat is the difference between NEXT and CONTINUE statement in
cobol,can any one explain with example. | | 6 |
| The maximum number of dimensions that an array can have in
COBOL-85 is ? | | 7 |
| What are differences between Static Call and Dynamic Call? | IBM | 6 |
| 1)what is the maximum limit for occurs?
Eg: 01 A PIC X(10) OCCURS N TIME.
What is the max value for N? | Wipro | 8 |
| What is an explicit scope terminator? | | 1 |
| What is file status 92? | | 1 |
| Re: 01 NAME1 PIC X(13) VALUE "COBOL PROGRAMMING". 01 NAME2
PIC X(13). now I want to display the value of NAME1 in
reverse order i.e value should be displayed as "GNIMMARGORP
LOBOC" HOW can I do that ??? please let me know if any one
knows it. | IBM | 2 |
| Can you REWRITE a record in an ESDS file? Can you DELETE a
record from it? | ABC | 3 |
| How to find How Many Lines in Sysin DD * Parameter Thru
Cobol Coding?
If any one knows the Answer Please Reply .....Thanks From
Shree | Merrill-Lynch | 1 |
| ZEROES and SPACES are _______ constants
(a) Figurative
(b) Numeric
(c) Non-numeric
(d) Alphabete
| TCS | 3 |
| |
| For more COBOL Interview Questions Click Here |