Sample Sas Questions
Sample Sas Questions
The following sample questions are not inclusive and do not necessarily represent all of the types of
questions that comprise the exams. The questions are not designed to assess an individual's readiness to
take a certification exam.
Answer: Slipper
Answer: Pacific
Project 2:
Run the program, then use additional SAS procedures to answer the following questions:
Question 3: How many observations are classified into the “Lower” group?
Answer: 288
Question 4: What is the mean value of observations in the “Middle” group? Round your answer to the
nearest whole number.
Answer: 135127
Project 3:
• Divide the observations of sashelp.heart into three data sets, work.highchol, work.lowchol, and
work.misschol
• Only observations with cholesterol below 200 should be in the work.lowchol data set.
• Only Observations with cholesterol that is 200 and above should be in the work.highchol data
set.
• Observations with missing cholesterol values should only be in the work.misschol data set.
Fix the errors in the above program. There may be multiple errors in the program. Errors may be syntax
errors, program structure errors, or logic errors. In the case of logic errors, the program may not
produce an error in the log.
After fixing all of the errors in the program, answer the following questions:
Answer: 3652
Answer: 1405
Standard Questions:
Question 7:
data WORK.TEMP;
Char1='0123456789';
Char2=substr(Char1,3,4);
run;
What is the value of Char2?
A. 23
B. 34
C. 345
D. 2345
Answer: D
Question 8:
proc format;
value score 1 - 50 = 'Fail'
51 - 100 = 'Pass';
run;
Which one of the following PRINT procedure steps correctly applies the format?
Answer: B
Question 9:
data WORK.TWO;
set WORK.ONE;
Total=sum(of Rev:);
run;
Answer: C
Question 10:
Var1 Var2
------ -------
A one
A two
B three
C four
A five
Answer: 8