Multiple choice technology mainframe

What are the different data types available in COBOL?

  1. Alpha-numeric (X), alphabetic (A) and numeric(9).

  2. Alpha-numeric (X) and numeric(9).

  3. Alpha-numeric (X), alphabetic (A), String (S) and numeric(9)

  4. None of the above

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

COBOL has three fundamental data types specified by picture clauses: Alphabetic (A) for letters only, Alphanumeric (X) for letters, numbers, and special characters, and Numeric (9) for digits only. Option C incorrectly includes 'String (S)' which is not a COBOL picture clause - the 'S' in picture clauses indicates a signed number, not a separate data type. The basic three types are A, X, and 9.