COBOL Flashcards

(15 cards)

1
Q

The specific text format COBOL uses which requires explaining zones or areas.

A

Fixed Text Format (specifically mentioning zones/areas)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

The category of keywords used in COBOL to improve readability without affecting the
logic (e.g., “IS”).

A

Noise Words (keywords used for readability like “IS”)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

The type of program used to translate COBOL source code into machine-readable
format.

A

Compiler

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

The data structure used to handle ordered lists of data, often defined in the Data
Division.

A

Arrays

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

The section of the manuscript that covers hardware implementations like IBM or VAX.

A

Hardware Implementation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

COBOL is considered a “Free Format” language where indentation and
zones do not matter.

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

A COBOL manuscript must include a table of contents and a cover page.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

COBOL supports complex data structures such as Trees and Graphs.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

“Implicit” and “Explicit” are two ways to declare constants and variables
in a programming language.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Parallel processes and Coroutines are types of control-level structures.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

If you need to store a person’s name that is exactly 20 characters long, what “Data-Level
Structure” would you use (e.g., Array, String, or Record)?

A

Strings (or Records/Arrays depending on how the alphanumeric data is grouped).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

In an expression like IF AGE > 18 AND STATUS = ‘ACTIVE’, identify the Boolean
Operators being used.

A

AND (Boolean Operator).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Look at the following snippet: ADD 1 TO COUNTER. Identify the Action Keyword and
the Identifier.

A

Action Keyword: ADD; Identifier: COUNTER.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

You want a program to repeat a calculation until a user types ‘QUIT’. Which iteration type
from the outline is best suited for this (Pre-test or Post-test)?

A

Iteration (Post-test) – Typically used when the loop must run at least once before
checking the “QUIT” condition.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

If a large COBOL program is broken down into smaller, manageable parts to hide
complex information, what “Program Abstraction” principle is being applied?

A

Information Hiding (or Modular Decomposition

How well did you know this?
1
Not at all
2
3
4
5
Perfectly