Use MAP to produce a listing of the items defined in the

  1. (a) Identification division

  2. (b) Data division

  3. (c) Environment division

  4. (d) Program division


Correct Option: B

AI Explanation

To answer this question, we need to understand the different divisions in a typical COBOL program and the purpose of each division.

A COBOL program is divided into four divisions, each serving a specific purpose:

(a) Identification Division: This division contains information about the program, such as its name, author, date, and purpose. It does not define any items.

(b) Data Division: This division defines the data items used in the program, including variables, files, and records. It is the division responsible for declaring and describing the data used in the program.

(c) Environment Division: This division contains information about the environment in which the program will be executed, such as file names, device names, and system-dependent features. It does not define any items.

(d) Procedure Division: This division contains the actual program logic and instructions that perform the desired processing. It does not define any items.

From the given options, we are asked to use MAP to produce a listing of the items defined in the divisions. The only division that defines items is the Data Division (option B).

Therefore, the correct answer is B) (b) Data Division. This option is correct because the Data Division is responsible for defining the data items used in the program.

Find more quizzes: