Select the best answer
for each question. Check your answers using the answer key in the
appendix.
-
What kind of data does
the raw data file that is referenced by the fileref Students contain?
-
Which input style should
be used to read the values in the raw data file that is referenced
by the fileref Students?
-
Which SAS program was
used to create the raw data file Teamdat from the SAS data set Work.Scores?
-
data _null_;
set work.scores;
file 'c:data eamdat' dlm=',';
put name highscore team;
run;
-
data _null_;
set work.scores;
file 'c:data eamdat' dlm=' ';
put name highscore team;
run;
-
data _null_;
set work.scores;
file 'c:data eamdat' dsd;
put name highscore team;
run;
-
data _null_;
set work.scores;
file 'c:data eamdat';
put name highscore team;
run;
-
Which SAS statement
reads the raw data values in order and assigns them to the variables
that are shown below?
Variables: FirstName
(character), LastName (character), Age (numeric), School (character),
Class (numeric)
-
input FirstName $ LastName $ Age School $ Class;
-
input FirstName LastName Age School Class;
-
input FirstName $ 1-4 LastName $ 6-12 Age 14-15
School $ 17-19 Class 21;
-
input FirstName 1-4 LastName 6-12 Age 14-15
School 17-19 Class 21;
-
Which SAS statement
should be used to read the raw data file that is referenced by the
fileref Salesrep?
-
Which of the following
raw data files can be read by using the MISSOVER option in the INFILE
statement? Spaces for missing values are highlighted with shaded blocks.
-
Which SAS program correctly
reads the data in the raw data file that is referenced by the fileref
Volunteer?
-
data sasuser.contest;
infile volunteer;
input FirstName $ LastName $ Age
School $ Class;
run;
-
data sasuser.contest;
infile volunteer;
length LastName $ 11;
input FirstName $ lastname $ Age
School $ Class;
run;
-
data sasuser.contest;
infile volunteer;
input FirstName $ lastname $ Age
School $ Class; length LastName $ 11;
run;
-
data sasuser.contest;
infile volunteer;
input FirstName $ LastName $ 11. Age
School $ Class;
run;
-
Which type of input
should be used to read the values in the raw data file that is referenced
by the fileref University?
-
Which SAS statement
correctly reads the values for Flavor and Quantity? Make sure the
length of each variable can accommodate the values that are shown.
-
input Flavor & $9. Quantity : comma.;
-
input Flavor & $14. Quantity : comma.;
-
input Flavor : $14. Quantity & comma.;
-
input Flavor $14. Quantity : comma.;
-
Which SAS statement
correctly reads the raw data values in order and assigns them to these
corresponding variables: Year (numeric), School (character), Enrolled
(numeric)?
-
input Year School & $27.
Enrolled : comma.;
-
input Year 1-4 School & $27.
Enrolled : comma.;
-
input @1 Year 4. +1 School & $27.
Enrolled : comma.;
-