Multiple choice technology programming languages

What is the maximum length of a field you can define using COMP-3?

  1. S9(18) COMP-3

  2. S9(20) COMP-3

  3. S9(80) COMP-3

  4. None of the above

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

COMP-3 (packed decimal) format can store up to 18 decimal digits plus a sign, making S9(18) COMP-3 the maximum valid specification. Each digit occupies half a byte (nibble), with the last nibble holding the sign. S9(20) exceeds the 18-digit limit, and S9(80) is not valid for COMP-3.