STT 305 Test 1 Questions and Correct
Answers
How many observations and variables does the dataset below
contain?(table with 6 rows(1 with labels) and 4 columns)
a. 5 observations and 4 variables
b. 4 observations and 5 variables
c. 6 observations and 4 variables
d. 11 observations and 5 variables Ans: a. 5 observations and 4
variables
How many program steps are executed when the program below is
processed?
data admit;
set sasuser.admit;
run;
proc means data=admit;
var age fee;
run;
© 2025 All rights reserved
, 2 | Page
proc contents data=admit; run;
proc means data=admit;
var fee;
class sex Actlevel;
run;
a. 13
b.14
c.5
d.6 Ans: c.5
What type of variable is the variable "Yours" in the data set below?
id Yours
101 6.2
103 6.0
109
110 5.9
111 5.6
a. categorical
© 2025 All rights reserved
, 3 | Page
b.character
c.numeric
d.discrete Ans: b.character
What type of variable is the variable "Yours" in the data set below?
id Yours
101 Senior
103 Fresh
109
110 Junior
111 Junior
a. numeric
b.categorical
c.character
d.string Ans: c.character
which of the following variable names is valid in SAS?
a.$bitcoin
b._9Bit4c
© 2025 All rights reserved