Multiple choice technology programming languages

How many bytes does a S9(7) SIGN trailing separate field occupy ?

  1. 1

  2. 4

  3. 2

  4. 8

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

S9(7) SIGN TRAILING SEPARATE is a COBOL numeric format with 7 digits. In 'trailing separate' sign format, each digit occupies one byte, and the sign (+ or -) occupies a separate byte at the end. Therefore, the total storage is 7 bytes for the digits plus 1 byte for the sign, equaling 8 bytes total. This differs from packed or leading separate formats.