| Other COBOL Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| what are the limitations of Inline Perform? | Zensar | 1 |
| I have a source program compiled with Cobol-2. The output
file has a record length of 100 defined in the program but
a record of 60 bytes getting written into it. i.e. The rest
of 40 bytes I am not Writing anything. But it by default
puts some values into the last 40 bytes. However it does
not impact anything. But when Compiled the module with
Enterprise Cobol the last 40 bytes were spaces as fillers.
Can anyone explain? | Cognizent | 4 |
| 01 b pic +9(4)
How many bytes it will take for storage???
| | 1 |
| SIGN TRAILING SEPARATE field occupy ? | | 2 |
| What is the difference between PIC 9.99 and 9v99? | | 4 |
| 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 |
| What is COMP-1? COMP-2? | CitiGroup | 1 |
| what is the difference between external and global
variables? | | 1 |
| In an EVALUTE statement is the order of the WHEN clauses
significant? | | 1 |
| how to resolve the file status 47....... | | 1 |
| COMP-3 field occupy ? | | 4 |
| 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 |
| can we use variable picture clause as xx.99 in cobol. | | 2 |
| Can we use redefine clause in occurs clause? | | 7 |
| In a COBOL II PERFORM statement, when is the conditional
tested, before or after the perform execution? | | 3 |
| How would the number +1234 be stored if a PIC clause of
PICTUREs9(4) comp-3 were used? | | 5 |
| what is the minimum number of lines a Cobol program should
have to successfully compile and run | ABC | 7 |
| How do you sort in a COBOL program? Give sort file
definition, sort statement syntax and meaning. | | 3 |
| WORKING-STORAGE SECTION.
01 VAR1 COMP-2 VALUE 0.
PROCEDURE DIVISION.
MOVE 10.2115 TO VAR1.
DISPLAY 'VAR1 =' VAR1.
GOBACK.
10.2115 is stored as .10211499999999996E 02 in OS VS Cobol
10.2115 is stored as .10211500000000000E 02 in ecobol.
Any reason why?
| TCS | 1 |
| How to pass return codes from cobol to jcl? | | 2 |
| |
| For more COBOL Interview Questions Click Here |