Multiple choice technology programming languages

How can an in-stream dataset be terminated?

  1. //

  2. //*

  3. /*

  4. //**

  5. none of the above

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

In-stream data is terminated with /* in JCL. This delimiter marks the end of data following a SYSIN * or SYSUT1 * DD statement. // starts JCL statements, //* is for comments, and //** is not valid JCL syntax.

AI explanation

To answer this question, you need to understand how to terminate an in-stream dataset in programming.

Option A) // - This option is incorrect because the double forward slash (//) is typically used for single-line comments and does not terminate an in-stream dataset.

Option B) //* - This option is incorrect because the combination of double forward slash followed by an asterisk (//*) is also used for commenting out multiple lines of code and does not terminate an in-stream dataset.

Option C) /* - This option is correct because the forward slash followed by an asterisk (/*) is typically used to begin a comment block and can also be used to terminate an in-stream dataset.

Option D) //** - This option is incorrect because the combination of double forward slash followed by two asterisks (//**) is not a standard way to terminate an in-stream dataset.

Option E) none of the above - This option is incorrect because option C, /*, is the correct answer as it is a commonly used way to terminate an in-stream dataset.

Therefore, the correct answer is option C. This option is correct because using /* is the standard way to terminate an in-stream dataset in programming.