Chapter Quiz 6
Chapter Quiz 6
Chapter Quiz 6
Select the best answer for each question. Check your answers using the answer key in
the appendix.
1. Which PROC PRINT step below creates the sample output with the labels and
variables being displayed? Hint: PROC CONTENTS output is shown first to assist
you.
where on>=160;
run;
b. proc print data=cert.laguardia;
where changed>3;
run;
id date;
where flight='219';
run;
id date;
where flight='219';
run;
2. Which of the following PROC PRINT steps is correct if labels are not stored with the
data set?
run;
run;
run;
3. Which of the following statements selects from a data set only those observations for
4. If you want to sort your data and create a temporary data set named Calc to store the
run;
by account;
run;
by account;
run;
by account;
run;
5. Which of the following statements can you use in a PROC PRINT step to create this
Output?
b. var month;
run;
where sex='F';
run;
a. The PROC PRINT step runs successfully, printing observations in their sorted
order.
b. The PROC SORT step permanently sorts the input data set.
c. The PROC SORT step generates errors and stops processing, but the PROC
order.
d. The PROC SORT step runs successfully, but the PROC PRINT step generates
by months amount;
run;
A, preguntar él porque
8. Which statement below selects rows that satisfy both these conditions?
or rate = 0.095;
a. PROC PRINT does not create a default report; you must specify the rows and
columns to be displayed.
b. PROC PRINT displays all observations and variables in the data set. If you want
c. PROC PRINT displays columns in the following order: a column for observation
d. PROC PRINT displays all observations and variables in the data set, a column
for observation numbers on the far left, and variables in the order in which they