Multiple choice technology mainframe

What is COMP-2?

  1. COMP-2 - Single precision floating point. Uses 4 bytes.

  2. COMP-2 - Double precision floating point. Uses 8 bytes.

  3. COMP-2 - Single precision floating point. Uses 8 bytes.

  4. COMP-2 - Double precision floating point. Uses 4 bytes.

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

In COBOL, COMP-1 represents single precision floating-point data and uses 4 bytes, while COMP-2 represents double precision floating-point data and uses 8 bytes. Thus, option B accurately describes COMP-2.