STAT 330 Final Exam with 100%
Correct Solutions
Which of the following is not a comment in SAS?
a. /* I am not a comment */
b. * I am not a comment ;
c. /* * I am not a comment ; */
d. All of the above are valid comments - ANSWER-d. All of the above are valid
comments
Which statement does not indicate the end of a DATA or PROC step?
Select one:
a. STOP
b. QUIT
c. END
d. RUN - ANSWER-c. END
By default, SAS will execute the DATA step one time each for which of the following?
Select one:
a. Variable
b. Observation
c. Data set
d. Procedure - ANSWER-b. Observation
The data in the following program are an example of what type of data?
DATA readme;
INPUT Place $ Code $;
DATALINES;
AG 5678
SLO 1234
PB 3456;
RUN;
Select one:
a. Character
b. Instream
c. Internal raw data
d. All of the above - ANSWER-d. All of the above
, Which statement is synonymous with a DATALINES statement?
Select one:
a. DATA
b. INFILE
c. CARDS
d. INPUT - ANSWER-c. CARDS
What is the main difference in the naming convention for SAS librefs versus SAS
variables?
Select one:
a. Librefs can contain special characters such as $, % and #
b. Variable names are case sensitive
c. Librefs can only be up to 8 characters long
d. Variable names can contain underscores - ANSWER-c. Librefs can only be up to 8
characters long
What is a SAS library?
Select one:
a. A folder that can contain SAS data sets
b. A location where the SAS log messages are stored
c. The location of the SAS online Help
d. All of the above - ANSWER-a. A folder that can contain SAS data sets
Which of the following is a valid libref name that can be used to create a permanent
SAS data set?
Select one:
a. working
b. 365days
c. permanent
d. All of the above - ANSWER-a. working
Which PROC PRINT will print a permanent SAS data set called DOGS assuming that
all SAS libraries have been properly defined?
Select one:
a. PROC PRINT DATA = dogs.sas7bdat; RUN;
b. PROC PRINT DATA = dogs; RUN;
c. PROC PRINT DATA = sasdata.dogs; RUN;
d. None of the above - ANSWER-c. PROC PRINT DATA = sasdata.dogs; RUN;
When using the following direct reference to create a permanent SAS data set in the
Windows operating environment, what does the name dogs refer to?
Correct Solutions
Which of the following is not a comment in SAS?
a. /* I am not a comment */
b. * I am not a comment ;
c. /* * I am not a comment ; */
d. All of the above are valid comments - ANSWER-d. All of the above are valid
comments
Which statement does not indicate the end of a DATA or PROC step?
Select one:
a. STOP
b. QUIT
c. END
d. RUN - ANSWER-c. END
By default, SAS will execute the DATA step one time each for which of the following?
Select one:
a. Variable
b. Observation
c. Data set
d. Procedure - ANSWER-b. Observation
The data in the following program are an example of what type of data?
DATA readme;
INPUT Place $ Code $;
DATALINES;
AG 5678
SLO 1234
PB 3456;
RUN;
Select one:
a. Character
b. Instream
c. Internal raw data
d. All of the above - ANSWER-d. All of the above
, Which statement is synonymous with a DATALINES statement?
Select one:
a. DATA
b. INFILE
c. CARDS
d. INPUT - ANSWER-c. CARDS
What is the main difference in the naming convention for SAS librefs versus SAS
variables?
Select one:
a. Librefs can contain special characters such as $, % and #
b. Variable names are case sensitive
c. Librefs can only be up to 8 characters long
d. Variable names can contain underscores - ANSWER-c. Librefs can only be up to 8
characters long
What is a SAS library?
Select one:
a. A folder that can contain SAS data sets
b. A location where the SAS log messages are stored
c. The location of the SAS online Help
d. All of the above - ANSWER-a. A folder that can contain SAS data sets
Which of the following is a valid libref name that can be used to create a permanent
SAS data set?
Select one:
a. working
b. 365days
c. permanent
d. All of the above - ANSWER-a. working
Which PROC PRINT will print a permanent SAS data set called DOGS assuming that
all SAS libraries have been properly defined?
Select one:
a. PROC PRINT DATA = dogs.sas7bdat; RUN;
b. PROC PRINT DATA = dogs; RUN;
c. PROC PRINT DATA = sasdata.dogs; RUN;
d. None of the above - ANSWER-c. PROC PRINT DATA = sasdata.dogs; RUN;
When using the following direct reference to create a permanent SAS data set in the
Windows operating environment, what does the name dogs refer to?