Multiple choice technology programming languages

Given the following PROC FORMAT step, how is the value 70 displayed when the AGEGRP. format is applied? proc format; picture agegrp 1-<13=’00 Youth’ 13-<20=’00 Teen’ 20-<70=’00 Adult’ 70-high=’000 Senior’; run;

  1. 000 Senior

  2. 70 Adult

  3. 70 Senior

  4. 070 Senior

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

The value 70 falls in the '70-high' range, which uses the '000 Senior' picture format. The 70 replaces the first two zeros, resulting in '70' with 'Senior' label. The format directive specifies 3 digits before the label, so 70 is displayed as '70' (not padded) followed by 'Senior'.