Multiple choice technology mainframe

Size occupied by a data item having COMP-1 usage

  1. 1 word

  2. 2 word

  3. depends on value passed

  4. Usage can't be COMP-1

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

In COBOL, COMP-1 specifies a single-precision floating-point data item, which occupies 1 word (4 bytes) of storage. COMP-2 is used for double-precision floating-point items, which occupy 2 words (8 bytes).

AI explanation

To answer this question, we need to understand the usage of COMP-1 in COBOL.

In COBOL, the COMP-1 data type is used to represent single-precision floating-point numbers. It occupies 4 bytes or 1 word of storage.

Therefore, the correct answer is option A) 1 word. The size occupied by a data item having COMP-1 usage is 1 word.