Multiple choice technology mainframe

Indicate what is not correct in a REXX program.

  1. A REXX clause can be coded in uppercase, lowercase or mixed case.

  2. Multiple instructions can be coded on 1 line, as long as they are separated by a ','

  3. A REXX program should start with a comment clause /* REXX */

  4. Continuation of REXX instructions is achieved by using a ',' as a continuation indicator

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

In REXX, multiple instructions on the same line must be separated by semicolons (;), not commas. This is a fundamental syntax rule in REXX - the semicolon is the instruction terminator. Option B correctly identifies that commas are NOT proper separators. The other options are correct: REXX is case-insensitive (A false), programs conventionally start with /* REXX */ comment (C false), and commas are continuation indicators (D false). REXX's simple syntax makes it popular, but the semicolon rule for multi-line instructions is strict.

AI explanation

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

Option A) A REXX clause can be coded in uppercase, lowercase, or mixed case. - This option is correct. In REXX, the case of the keywords does not matter, so it can be coded in uppercase, lowercase, or mixed case.

Option B) Multiple instructions can be coded on 1 line, as long as they are separated by a ',' - This option is incorrect. In REXX, multiple instructions are typically coded on separate lines, and not on the same line separated by a comma.

Option C) A REXX program should start with a comment clause /* REXX */ - This option is correct. It is good practice to start a REXX program with a comment clause to indicate that it is a REXX program.

Option D) Continuation of REXX instructions is achieved by using a ',' as a continuation indicator - This option is correct. In REXX, when an instruction is too long to fit on a single line, a comma (",") can be used as a continuation indicator to continue the instruction on the next line.

The correct answer is B. Multiple instructions cannot be coded on 1 line in REXX.