Multiple choice technology programming languages

What is the command used for printing in COBOL?

  1. SHOW

  2. PRINT

  3. DISPLAY

  4. DISP

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

DISPLAY is the COBOL verb used to output data to the console or output device. It can be used to show literals, variable values, or formatted output. PRINT is not a standard COBOL verb, SHOW and DISP are also not valid COBOL output statements. DISPLAY is the correct keyword for printing/displaying output in COBOL programs.