What is the maximum length of a field you can define using COMP-1?
-
10
-
18
-
17
-
12
COMP-1 in COBOL is an internal (short) floating-point item, per the IBM/Micro Focus COBOL language reference. Unlike COMP or COMP-3 items, a COMP-1 field is NOT given a length via a PICTURE clause at all — PICTURE clauses are explicitly disallowed for COMP-1/COMP-2 items because their storage format and size are fixed by the floating-point standard itself: COMP-1 is always exactly 4 bytes, holding roughly 6-7 significant decimal digits of precision (COMP-2 is 8 bytes, double precision). So there is no "maximum length you can define" for COMP-1 — you cannot define a length for it at all, making the question's premise invalid. The 18-decimal-digit maximum some sources cite applies to COMP/COMP-3 (binary/packed-decimal) numeric items with a PICTURE clause, not to floating-point COMP-1. None of the offered numeric options (10, 18, 17, 12) correctly answers a well-posed question about COMP-1.