KyaPoocha.com

Huge Collection of Interview Questions


‘Cobol Interview Questions’ - KyaPoocha.com

How can I tell if a module is being called DYNAMICALLY or STATICALLY ? 

The ONLY way is to look at the output of the linkage editor (IEWL)or the load module itself. If the module is being called DYNAMICALLY then it will not exist in... Read more »

What is the point of the REPLACING option of a copy statement ? 

REPLACING allows for the same copy to be used more than once in the same code by changing the replace value.  Read more »

What is the difference between a binary search and a sequential search ? What are the pertinent COBOL commands ? 

In a binary search the table element key values must be in ascending or descending sequence. The table is ‘halved’ to search for equal to, greater than... Read more »

What is LENGTH in COBOL II ? 

LENGTH acts like a special register to tell the length of a group or elementary item.  Read more »

What is SET TO TRUE all about, anyway ? 

In COBOL II the 88 levels can be set rather than moving their associated values to the related data item. (Web note: This change is not one of COBOL II’s better... Read more »

What is the default value(s) for an INITIALIZE and what keyword allows for an override of the default. ? 

INITIALIZE moves spaces to alphabetic fields and zeros to alphanumeric fields. The REPLACING option can be used to override these defaults.  Read more »

In an EVALUTE statement is the order of the WHEN clauses significant ? 

Absolutely. Evaluation of the WHEN clauses proceeds from top to bottom and their sequence can determine results.  Read more »

what is the difference between interrupt service routine and subroutine ? 

Subroutine are the part of executing processes(like any process can call a subroutine for achieve task),while the interrupt subroutine never be the part.interrupt... Read more »

In a COBOL II PERFORM statement, when is the conditional tested, before or after the perform execution ? 

In COBOL II the optional clause WITH TEST BEFORE or WITH TEST AFTER can be added to all perform statements. By default the test is performed before the perform.  Read more »

When is a scope terminator mandatory ? 

Scope terminators are mandatory for in-line PERFORMS and EVALUATE statements. For readability, it’s recommended coding practice to always make scope terminators... Read more »

Explain the difference between an internal and an external sort, the pros and cons, internal sort syntax etc. ? 

An external sort is not COBOL; it is performed through JCL and PGM=SORT. It is understandable without any code reference. An internal sort can use two different... Read more »

If you were passing a table via linkage, which is preferable - a subscript or an index ? 

Wake up - you haven’t been paying attention! It’s not possible to pass an index via linkage. The index is not part of the calling programs working storage.... Read more »

What is the difference between a subscript and an index in a table definition ? 

A subscript is a working storage data definition item, typically a PIC (999) where a value must be moved to the subscript and then incremented or decrements by ADD... Read more »

What is the linkage section ? 

The linkage section is part of a called program that ‘links’ or maps to data items in the calling program’s working storage. It is the part of... Read more »

Explain call by context by comparing it to other calls. ? 

The parameters passed in a call by context are protected from modification by the called program. In a normal call they are able to be modified.  Read more »

Page 3 of 12«12345»...Last »