---
title: "21 Tricky COBOL Interview Questions You Need"
description: "Q1. What are the differences between COBOL and COBOL II? A1. There are at least five differences: COBOL II supports structured programming by using inline PERFORM s and explicit scope terminators ; it..."
url: https://srinimf.com/2016/09/07/21-exclusive-cobol-2-questions-for-advanced-developers/
date: 2016-09-07
modified: 2026-10-24
author: "Srini"
image: https://i0.wp.com/srinimf.com/wp-content/uploads/2016/09/pexels-photo-7034388.jpeg?fit=1880%2C1253&ssl=1
categories: ["COBOL"]
tags: ["COBOL Tips and Tricks", "Interview Questions"]
type: post
lang: en
---

# 21 Tricky COBOL Interview Questions You Need

**Q1. **What are the differences between COBOL and COBOL II?

**A1. **There are at least five differences: COBOL II supports structured programming by using **inline PERFORM**s and explicit **scope terminators**; it introduces new features (EVALUATE, SET .. TO TRUE, CALL .. BY CONTEXT, etc.); it permits programs to be loaded and addressed **above the 16 megabyte line**; it does not support many old features (READY TRACE, REPORT-WRITER, ISAM, etc.); and it offers enhanced CICS support.

Related[COBOL: Nested PERFORM VARYING](https://srinimf.com/2011/11/30/cobolnestedperform/)

**Q2. **What is an explicit **scope terminator?**

**A2. **A **scope terminator** brackets its preceding verb, eg., IF… END-IF, so that all statements between the verb and its scope terminator are grouped together. Other common COBOL II verbs are READ, PERFORM, EVALUATE, SEARCH and STRING.

**Q3. **What is an **inline PERFORM**? When would you use it? Anything else to say about it?

**A3. **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 work as long as there are no internal GO TOs, not even to an exit. The inline PERFORM for readability should not exceed a page length; often it will reference other PERFORM paragraphs.

**Q4. **What is the difference between NEXT SENTENCE and CONTINUE?

**A4. **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 of COBOL II’s finer implementations). It’s safest to use CONTINUE rather than NEXT SENTENCE in COBOL II.

**Q5. **What COBOL construct is the COBOL II EVALUATE meant to replace?

**A5. **EVALUATE can be used in place of tested IF THEN ELSE statements.

**Q6. **What is the significance of ‘**above the line**‘ and ‘**below the line**‘?

**A6. **Before IBM introduced MVS/XA architecture in the 1980s, a program’s virtual storage was limited to 16 megs. Programs compiled with a 24-bit mode can only address 16 Mb of space, as though they were kept under an imaginary storage line. With COBOL II, a program compiled with a 31-bit mode can be ‘above the 16 Mb line’. (This ‘**below the line**‘, ‘**above the line**‘ imagery confuses most mainframe programmers, who tend to be a literal-minded group.)

**Q7. **What was removed from COBOL in the COBOL II implementation?

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

**Q8. **Explain **call by context **by comparing it to other calls.

**A8. **The parameters passed in a **call by context **are protected from modification by the called program. In a normal call, they can be modified.

**Q9. **What is the **linkage section?**

**A9. **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 the called program where these shared items are defined.

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

**A10.** 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 decremented by ADD TO and SUBTRACT FROM statements. An index is a register item that exists outside the program’s working storage. You SET an index to a value and SET it UP BY value and DOWN BY value.

[Continue…](https://srinimf.com/2014/03/21/cobol-interview-questions-on-files/)

### Share this:

-
- [Tweet](https://twitter.com/share)
- [![](https://i0.wp.com/assets.pinterest.com/images/pidgets/pinit_fg_en_rect_gray_20.png)](https://www.pinterest.com/pin/create/link/?url=https%3A%2F%2Fsrinimf.com%2F2016%2F09%2F07%2F21-exclusive-cobol-2-questions-for-advanced-developers%2F&media=https%3A%2F%2Fi0.wp.com%2Fsrinimf.com%2Fwp-content%2Fuploads%2F2016%2F09%2Fpexels-photo-7034388.jpeg%3Ffit%3D1200%252C800%26ssl%3D1&description=21%20Tricky%20COBOL%20Interview%20Questions%20You%20Need)
-
- [Share on Tumblr](https://www.tumblr.com/share)
- [Share on WhatsApp (Opens in new window) WhatsApp](https://srinimf.com/2016/09/07/21-exclusive-cobol-2-questions-for-advanced-developers/?share=jetpack-whatsapp)
- [More](#)
-

- [Print (Opens in new window) Print](https://srinimf.com/2016/09/07/21-exclusive-cobol-2-questions-for-advanced-developers/?share=print)
- [Share on Reddit (Opens in new window) Reddit](https://srinimf.com/2016/09/07/21-exclusive-cobol-2-questions-for-advanced-developers/?share=reddit)
- [Share on Telegram (Opens in new window) Telegram](https://srinimf.com/2016/09/07/21-exclusive-cobol-2-questions-for-advanced-developers/?share=telegram)
- [Email a link to a friend (Opens in new window) Email](mailto:?subject=%5BShared%20Post%5D%2021%20Tricky%20COBOL%20Interview%20Questions%20You%20Need&body=https%3A%2F%2Fsrinimf.com%2F2016%2F09%2F07%2F21-exclusive-cobol-2-questions-for-advanced-developers%2F&share=email)
-

### Like this:

Like Loading…
