Which is not a valid keyword parameter for EXEC?

  1. PARM

  2. PERFORM

  3. TIME

  4. ADDRSPC

  5. None


Correct Option: E

AI Explanation

To answer this question, we need to understand the valid keyword parameters for the EXEC statement.

The EXEC statement is used in various programming languages, such as COBOL, to execute a program or a procedure. It can take several keyword parameters to customize the execution of the program.

Let's go through each option to determine which one is not a valid keyword parameter for the EXEC statement:

Option A) PARM - This option is a valid keyword parameter for the EXEC statement. It is used to pass parameters to the executed program.

Option B) PERFORM - This option is not a valid keyword parameter for the EXEC statement. The PERFORM keyword is typically used in COBOL to initiate a section of code or a paragraph.

Option C) TIME - This option is a valid keyword parameter for the EXEC statement. It is used to specify the time limit for the execution of the program.

Option D) ADDRSPC - This option is a valid keyword parameter for the EXEC statement. It is used to specify the address space in which the program is executed.

Option E) None - This option is not a valid keyword parameter for the EXEC statement. It is not a keyword parameter at all.

Therefore, the correct answer is E) None. This option is not a valid keyword parameter for the EXEC statement.

Find more quizzes: