LINKAGE SECTION of the calling program contains?

  1. (1) All data-names which have been used in program

  2. (2) The description of the department code that is passed, using the USING clause of the CALL statement

  3. (3) Address of the deparment code that is passed ,using the USING clause of the CALL statement

  4. (4) All the above


Correct Option: B

AI Explanation

To answer this question, we need to understand the purpose of the LINKAGE SECTION in a calling program.

The LINKAGE SECTION is used to define the parameters or arguments that are passed to a called program or subroutine using the CALL statement. It defines the data items that are passed from the calling program to the called program.

Let's go through each option to understand why it is correct or incorrect:

Option A) (1) All data-names which have been used in the program - This option is incorrect. The LINKAGE SECTION only contains the data items that are passed to the called program, not all the data-names used in the program.

Option B) (2) The description of the department code that is passed, using the USING clause of the CALL statement - This option is correct. The LINKAGE SECTION contains the description of the department code that is passed to the called program using the USING clause of the CALL statement.

Option C) (3) Address of the department code that is passed, using the USING clause of the CALL statement - This option is incorrect. The LINKAGE SECTION does not contain the address of the data items passed, but rather the description or definition of the data items.

Option D) (4) All the above - This option is incorrect. Option A is incorrect because the LINKAGE SECTION does not contain all the data-names used in the program. Option C is incorrect because the LINKAGE SECTION does not contain the address of the data items passed.

Therefore, the correct answer is B) (2) The description of the department code that is passed, using the USING clause of the CALL statement. This option is correct because the LINKAGE SECTION contains the description of the department code that is passed to the called program using the USING clause of the CALL statement.

Find more quizzes: