Select the best answer
for each question. Check your answers using the answer key in the
appendix.
-
How many observations
and variables does the data set below contain?
-
3 observations, 4 variables
-
3 observations, 3 variables
-
4 observations, 3 variables
-
cannot tell because
some values are missing
-
How many program steps
are executed when the program below is processed?
data user.tables;
infile jobs;
input date yyddmm8. name $ job $;
run;
proc sort data=user.tables;
by name;
run;
proc print data=user.tables;
run;
-
What type of variable
is the variable AcctNum in the data set below?
-
-
-
can be either character
or numeric
-
cannot tell from the
data shown
-
What type of variable
is the variable Wear in the data set below?
-
-
-
can be either character
or numeric
-
cannot tell from the
data shown
-
With the system option
VALIDVARNAME=ANY, which of the following variable names is valid?
-
Which of the following
files is a permanent SAS file?
-
In a DATA step, how
can you reference a temporary SAS data set named Forecast?
-
-
-
Sales.Forecast (after
assigning the libref Sales)
-
-
What is the default
length for the numeric variable Balance?
-
How many statements
does the following SAS program contain?
proc print data=clinic.admit
label double;
var ID Name Sex Age; where Sex=F;
label Sex='Gender'; run;
-
What is a SAS library?
-
collection of SAS files,
such as SAS data sets and catalogs
-
in some operating environments,
a physical collection of SAS files
-
a group of SAS files
in the same folder or directory
-