KyaPoocha.com

Huge Collection of Interview Questions


‘Cobol Interview Questions’ - KyaPoocha.com

What was removed from COBOL in the COBOL II implementation ? 

Partial list: REMARKS, NOMINAL KEY, PAGE-COUNTER, CURRENT-DAY, TIME-OF-DAY, STATE, FLOW, COUNT, EXAMINE, EXHIBIT, READY TRACE and RESET TRACE.  Read more »

What is the significance of ‘above the line’ and ‘below the line’ ? 

Before IBM introduced MVS/XA architecture in the 1980’s a program’s virtual storage was limited to 16 megs. Programs compiled with a 24 bit mode can... Read more »

What is the difference between NEXT SENTENCE and CONTINUE ? 

NEXT SENTENCE gives control to the verb following the next period. CONTINUE gives control to the next verb after the explicit scope terminator. (This is not one... Read more »

What is an in line PERFORM ? When would you use it ? Anything else to say about it ? 

The PERFORM and END-PERFORM statements bracket all COBOL II statements between them. The COBOL equivalent is to PERFORM or PERFORM THRU a paragraph. In line PERFORMs... Read more »

What is an explicit scope terminator ? 

A scope terminator brackets its preceding verb, e.g. IF .. END-IF, so that all statements between the verb and its scope terminator are grouped together. Other common... Read more »

What are the differences between COBOL and COBOL II ? 

There are at least five differences: COBOL II supports structured programming by using in line Performs and explicit scope terminators, It introduces new features... Read more »

How do you reference the following file formats from COBOL programs: ? 

Fixed Block File - Use ORGANISATION IS SEQUENTIAL. Use RECORDING MODE IS F, BLOCK CONTAINS 0 . Fixed Unblocked - Use ORGANISATION IS SEQUENTIAL. Use RECORDING MODE... Read more »

What is COMP SYNC ? 

Causes the item to be aligned on natural boundaries. Can be SYNCHRONIZED LEFT or RIGHT. For binary data items, the address resolution is faster if they are located... Read more »

How many bytes does a S9(7) COMP-3 field occupy ? 

Will take 4 bytes. Sign is stored as hex value in the last nibble. General formula is INT((n/2) + 1)), where n=7 in this example.  Read more »

How do you define a variable of COMP-1 ? COMP-2 ? 

No picture clause to be given. Example 01 WS-VAR USAGE COMP-1.  Read more »

What is COMP-1 ? COMP-2 ? 

COMP-1 - Single precision floating point. Uses 4 bytes. COMP-2 - Double precision floating point. Uses 8 bytes.  Read more »

What is the difference between COMP & COMP-3 ? 

COMP is a binary storage format while COMP-3 is packed decimal format.  Read more »

How is sign stored in a COMP field ? 

In the most significant bit. Bit is ON if -ve, OFF if +ve.  Read more »

How is sign stored in a comp-3 field ? 

It is stored in the last nibble. For example if your number is +100, it stores hex 0C in the last byte, hex 1C if your number is 101, hex 2C if your number is 102,... Read more »

How is sign stored in Packed Decimal fields and Zoned Decimal fields ? 

Packed Decimal fields: Sign is stored as a hex value in the last nibble (4 bits ) of the storage. Zoned Decimal fields: As a default, sign is over punched with the... Read more »

Page 4 of 12« First...«23456»...Last »