Multiple choice technology mainframe

In PIC zzz9, What does z means?

  1. zero comp digit

  2. zero suppressed digit

  3. zero edited digit

  4. zero packed digit

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

In a COBOL Picture clause, the symbol 'Z' represents a zero-suppressed numeric digit. When formatting output data, leading zeros in the positions marked by 'Z' are replaced by spaces instead of being printed. Distractors mentioning comp, edited, or packed digits do not define this symbol's formatting purpose.

AI explanation

To answer this question, you need to understand the format specifier "zzz9" in PIC (Picture) clause used in COBOL programming.

In PIC zzz9, the "z" represents a zero suppressed digit.

Option A) Zero comp digit - This option is incorrect because "z" does not stand for zero comp digit. Zero comp digit is represented by "9" in COBOL. Option B) Zero suppressed digit - This option is correct because "z" in PIC zzz9 represents a zero suppressed digit. Option C) Zero edited digit - This option is incorrect because "z" does not stand for zero edited digit. Option D) Zero packed digit - This option is incorrect because "z" does not stand for zero packed digit.

The correct answer is B) Zero suppressed digit. This option is correct because "z" in PIC zzz9 represents a zero suppressed digit.