# SAS Chapter 9 Producing Descriptive Statistics

10 Questions | Total Attempts: 306  Settings  Practice for the SAS basic certification exam.

• 1.
The default statistics produced by the MEANS procedure are n-count, mean, minimum, maximum, and ...
• A.

Median

• B.

Range

• C.

Standard deviation

• D.

Standard error of the mean

• 2.
Which statement will limit a PROC MEANS analysis to the variables Boarded, Transfer, and Deplane?
• A.

By boarded transfer deplane;

• B.

Class boarded transfer deplane;

• C.

Output boarded transfer deplane;

• D.

Var boarded transfer deplane;

• 3.
The data set Survey.Health includes the following variables.  Which is a poor candidate for PROC MEANS analysis?
• A.

IDnum

• B.

Age

• C.

Height

• D.

Weight

• 4.
Which of the following statements is true regarding BY group processing?
• A.

BY variables must be either indexed or sorted.

• B.

Summary statistics are computed for BY variables.

• C.

BY group processing is preferred when you are categorizing data that contains few variables.

• D.

BY group processing overwrites your data set with newly grouped observations.

• 5.
Which group processing statement produced the PROC MEANS output shown below?
• A.

Class sex survive;

• B.

Class survive sex;

• C.

By sex survive;

• D.

By survive sex;

• 6.
Which program can be used to create the following output?
• A.

Proc means data=clinic.diabetes;     var age height weight;     class sex;     output out=work.sum_gender        mean=AvgAge AvgHeight AvgWeight; run;

• B.

Proc summary data=clinic.diabetes print;    var age height weight; class sex;    output out=work.sum_gender       mean=AvgAge AvgHeight AvgWeight; run;

• C.

Proc means data=clinic.diabetes noprint;    var age height weight;    class sex;    output out=work.sum_gender       mean=AvgAge AvgHeight AvgWeight; run;

• D.

Both a and b.

• 7.
By default, PROC FREQ creates a table of frequencies and percentages for which data set variables?
• A.

Character variables

• B.

Numeric variables

• C.

Both character and numeric variables

• D.

None: variables must always be specified

• 8.
Frequency distributions work best with variables that contain
• A.

Continuous values.

• B.

Numeric values.

• C.

Categorical values.

• D.

Unique values.

• 9.
Which PROC FREQ step produced this two-way table?
• A.

Proc freq data=clinic.diabetes;    tables height weight;    format height htfmt. weight wtfmt.; run;

• B.

Proc freq data-clinic.diabetes;    tables weight height;    format weight wtfmt. height htfmt.; run;

• C.

Proc freq data=clinic.diabetes;    tables height*weight;    format height htfmt. weight wtfmt.; run;

• D.

Proc freq data=clinic.diabetes;    tables weight*height;    format weight wtfmt. height htfmt.; run;

• 10.
Which PROC FREQ step produced this table?
• A.

Proc freq data=clinic.diabetes;    tables sex weight / list;    format weight wtfmt.; run;

• B.

Proc freq data=clinic.diabetes;    tables sex*weight / nocol;    format weight wtfmt.; run;

• C.

Proc freq data=clinic.diabetes;    tables sex weight / norow nocol;    format weight wtfmt.; run;

• D.

Proc freq data=clinic.diabetes;    tables sex*weight / nofreq norow nocol;    format weight wtfmt.; run;

Related Topics Back to top