Multiple choice technology programming languages

The output required from proc means is min, max and nmiss.Also the decimal values should be aligned to 2 digits.Which proc statement satisfies the requirement

  1. proc means; ( min max nmiss maxdec=2);

  2. proc means; var x /min max nmiss maxdec=2;

  3. proc means min max nmiss maxdec=2;

  4. proc means; var x ( min max nmiss maxdec=2);

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

The correct syntax is 'proc means min max nmiss maxdec=2;' with statistics and options listed directly after 'proc means'. Option A incorrectly uses parentheses, option B incorrectly places options in a VAR statement, and option D incorrectly uses parentheses in the VAR statement. The PROC statement should directly specify the statistics and options.