Multiple choice technology mainframe

How do I get contents of variables A, B displayed on the same output line using 2 DISPLAY statements

  1. DISPLAY A,DISPLAY B

  2. DISPLAY A DISPLAY B

  3. DISPLAY A DISPLAY B WITH NO ADVANCING

  4. DISPLAY A WITH NO ADVANCING DISPLAY B

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

To display two variables on the same line using separate DISPLAY statements, use WITH NO ADVANCING after the first DISPLAY statement. This prevents the cursor from moving to the next line after displaying A, so B appears on the same line. Without NO ADVANCING, each DISPLAY statement outputs on a new line. The correct syntax is 'DISPLAY A WITH NO ADVANCING' followed by 'DISPLAY B'.