When calling a procedure we can change - in different ways - this procedure. Which is the most complete statement?

  1. We can override parameters on EXEC statements and add DD statements.

  2. We can override, nullify and add parameters on all statements and add DD and/or OUTPUT statements.

  3. We can add and override parameters to all statements, but can only nullify parameters to DD and OUTPUT statements.

  4. We can nullify, override and add parameters to all statements, but can only add DD statements.


Correct Option: B

AI Explanation

To answer this question, let's go through each option to understand why it is correct or incorrect:

Option A) We can override parameters on EXEC statements and add DD statements. This option is incorrect because it only mentions overriding parameters on EXEC statements and adding DD statements. It does not mention nullifying parameters or adding parameters to other statements.

Option B) We can override, nullify and add parameters on all statements and add DD and/or OUTPUT statements. This option is the most complete statement because it mentions that we can override, nullify, and add parameters on all statements. It also mentions that we can add DD and/or OUTPUT statements. This option covers all possible ways to change a procedure.

Option C) We can add and override parameters to all statements, but can only nullify parameters to DD and OUTPUT statements. This option is incorrect because it limits nullifying parameters to only DD and OUTPUT statements. It does not mention that we can nullify parameters in other statements.

Option D) We can nullify, override and add parameters to all statements, but can only add DD statements. This option is incorrect because it limits adding parameters to only DD statements. It does not mention that we can add parameters in other statements.

The correct answer is B. This option is correct because it mentions that we can override, nullify, and add parameters on all statements. It also mentions that we can add DD and/or OUTPUT statements. This option covers all possible ways to change a procedure.

Find more quizzes: