Multiple choice technology mainframe

COMP is a binary storage format while COMP-3 is packed decimal format.

  1. True

  2. False

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

In COBOL, USAGE IS COMP (Computational) specifies binary format storage for numeric variables, which is highly efficient for arithmetic. USAGE IS COMP-3 defines packed decimal format, where each digit is packed into a half-byte (nibble) with the sign in the last nibble.