WHICH OF THE FOLLOWING IS USED TO DEFINE ALL INPUT, OUTPUT AND WORKING STORAGE FIELDS USED IN THE PROGRAM

  1. ENVIRONMENT SECTION

  2. ACTIVITY SETCION

  3. LIBRARY SECTION

  4. NONE OF THE ABOVE


Correct Option: C

AI Explanation

To answer this question, you need to understand the different sections of a programming language that are used to define various components of a program.

Option A) ENVIRONMENT SECTION - This option is incorrect because the ENVIRONMENT SECTION is used to define the characteristics of the computing environment in which the program will run, such as hardware and operating system requirements.

Option B) ACTIVITY SECTION - This option is incorrect because the ACTIVITY SECTION (also known as the PROCEDURE DIVISION) is used to define the logic and sequence of the program's operations, including the execution of instructions.

Option C) LIBRARY SECTION - This option is correct because the LIBRARY SECTION (also known as the DATA DIVISION) is used to define all input, output, and working storage fields used in the program. It is where you define variables, data structures, and records that will be used in the program.

Option D) NONE OF THE ABOVE - This option is incorrect because the correct answer is Option C, the LIBRARY SECTION.

Find more quizzes: