100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

SAS PRACTICE EXAM QUESTIONS AND ANSWERS

Rating
-
Sold
-
Pages
12
Grade
A+
Uploaded on
13-11-2025
Written in
2025/2026

SAS PRACTICE EXAM QUESTIONS AND ANSWERS For observation 16, what is the value of VAR3? Enter your numeric answer in the space below: - answer- Answer: 80136 SAS code that could be used to solve this project: data t04; set 04; var3=round(var1,1)*round(var2,1); var20=sum(of var12-var19); run; proc print data=t04 (obs=16 firstobs=16); var var3 var20; run; For observation 16, what is the value of VAR20? Enter your numeric answer in the space below. Round your answer to the nearest whole number.Save your program as in C:certprograms before continuing with the next project. - answer- Answer: 3175. (3174 also scored as correct.) SAS code that could be used to solve this project: data t04; set 04; var3=round(var1,1)*round(var2,1); var20=sum(of var12-var19); run;proc print data=t04 (obs=16 firstobs=16); var var3 var20; run; How many observations (rows) are in 08? - answer- Answer: 1200 SAS code that could be used to solve this project: proc sort data=08a out=08a; by ID; run;proc sort data=08b out=08b; by ID; run;data 08 ch08 (drop=ex: ); merge 08a (in=a) 08b (in=b); by ID; if a and b then output 08; else output ch08; run;proc contents data=08; run;proc contents data=ch08; run; How many variables (columns) are in 08? - answer- Answer: 117 SAS code that could be used to solve this project: proc sort data=08a out=08a; by ID; run;proc sort data=08b out=08b; by ID; run;data 08 ch08 (drop=ex: ); merge 08a (in=a) 08b (in=b); by ID; if a and b then output 08; else output ch08; run;proc contents data=08; run;proc contents data=ch08; run; How many observations (rows) are in ch08? - answer- Answer: 2 SAS code that could be used to solve this project: proc sort data=08a out=08a; by ID; run;proc sort data=08b out=08b; by ID; run;data 08 ch08 (drop=ex: ); merge 08a (in=a) 08b (in=b); by ID; if a and b then output 08; else output ch08; run;proc contents data=08; run;proc contents data=ch08; run; How many variables (columns) are in ch08? Enter your numeric answer in the space below: Save your program as in folder C:certprograms before continuing with the next project. - answer- Answer: 5 SAS code that could be used to solve this project: proc sort data=08a out=08a; by ID; run;proc sort data=08b out=08b; by ID; run;data 08 ch08 (drop=ex: ); merge 08a (in=a) 08b (in=b); by ID; if a and b then output 08; else output ch08; run;proc contents data=08; run;proc contents data=ch08; run; What is the maximum salary that is less than $500,000? Enter your numeric answer in the space below (Round your answer to the nearest integer) What is the value of year when the above salary occurs? Enter your numeric answer in the space below. Save your program as in folder C:certprograms before continuing with the next project. - answer- Answer 1: 498737. (498736 also scored as correct). Answer 2: 2027 SAS code that could be used to solve this project: data t12; set 12; do until (salary gt 500000); salary=salary*1.0565; year+1; output; end; run;proc print data=t12; run; What is the value of Chdate for observation 52? - answer- Answer: 30DEC1992 SAS code that could be used to solve this project: data t13; set 13; Chdate=put(date1,date9.); num1=input(Charnum,dollar7.); run;proc print data=t13 (firstobs=52 obs=52); run; What is the average (mean) of the num1 variable for the entire data set? Enter your numeric answer in the space below (Round your answer to the nearest integer). Save your program as in folder C:certprograms before continuing with the next project. - answer- Answer: 51763 (51762 also scored as c

Show more Read less
Institution
SAS
Course
SAS









Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
SAS
Course
SAS

Document information

Uploaded on
November 13, 2025
Number of pages
12
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

SAS PRACTICE EXAM QUESTIONS
AND ANSWERS
For observation 16, what is the value of VAR3? Enter your numeric answer in the
space below: - answer- Answer: 80136

SAS code that could be used to solve this project:

data results.output04;
set cert.input04;
var3=round(var1,1)*round(var2,1);
var20=sum(of var12-var19);
run;
proc print data=results.output04 (obs=16 firstobs=16);
var var3 var20;
run;

For observation 16, what is the value of VAR20? Enter your numeric answer in the
space below. Round your answer to the nearest whole number.Save your program
as program04.sas in C:\cert\programs before continuing with the next project. -
answer- Answer: 3175. (3174 also scored as correct.)
SAS code that could be used to solve this project:

data results.output04; set cert.input04; var3=round(var1,1)*round(var2,1);
var20=sum(of var12-var19); run;proc print data=results.output04 (obs=16
firstobs=16); var var3 var20; run;

How many observations (rows) are in results.match08? - answer- Answer: 1200
SAS code that could be used to solve this project:

proc sort data=cert.input08a out=work.input08a; by ID; run;proc sort
data=cert.input08b out=work.input08b; by ID; run;data results.match08
results.nomatch08 (drop=ex: ); merge work.input08a (in=a) work.input08b (in=b); by
ID; if a and b then output results.match08; else output results.nomatch08; run;proc
contents data=results.match08; run;proc contents data=results.nomatch08; run;

How many variables (columns) are in results.match08? - answer- Answer: 117

SAS code that could be used to solve this project:

proc sort data=cert.input08a out=work.input08a; by ID; run;proc sort
data=cert.input08b out=work.input08b; by ID; run;data results.match08
results.nomatch08 (drop=ex: ); merge work.input08a (in=a) work.input08b (in=b); by
ID; if a and b then output results.match08; else output results.nomatch08; run;proc
contents data=results.match08; run;proc contents data=results.nomatch08; run;

How many observations (rows) are in results.nomatch08? - answer- Answer: 2

, SAS code that could be used to solve this project:

proc sort data=cert.input08a out=work.input08a; by ID; run;proc sort
data=cert.input08b out=work.input08b; by ID; run;data results.match08
results.nomatch08 (drop=ex: ); merge work.input08a (in=a) work.input08b (in=b); by
ID; if a and b then output results.match08; else output results.nomatch08; run;proc
contents data=results.match08; run;proc contents data=results.nomatch08; run;

How many variables (columns) are in results.nomatch08?

Enter your numeric answer in the space below:

Save your program as program08.sas in folder C:\cert\programs before continuing
with the next project. - answer- Answer: 5
SAS code that could be used to solve this project:

proc sort data=cert.input08a out=work.input08a; by ID; run;proc sort
data=cert.input08b out=work.input08b; by ID; run;data results.match08
results.nomatch08 (drop=ex: ); merge work.input08a (in=a) work.input08b (in=b); by
ID; if a and b then output results.match08; else output results.nomatch08; run;proc
contents data=results.match08; run;proc contents data=results.nomatch08; run;

What is the maximum salary that is less than $500,000? Enter your numeric answer
in the space below (Round your answer to the nearest integer)

What is the value of year when the above salary occurs? Enter your numeric answer
in the space below.

Save your program as program12.sas in folder C:\cert\programs before continuing
with the next project. - answer- Answer 1: 498737. (498736 also scored as correct).

Answer 2: 2027

SAS code that could be used to solve this project:

data results.output12; set cert.input12; do until (salary gt 500000);
salary=salary*1.0565; year+1; output; end; run;proc print data=results.output12; run;

What is the value of Chdate for observation 52? - answer- Answer: 30DEC1992

SAS code that could be used to solve this project:

data results.output13; set cert.input13; Chdate=put(date1,date9.);
num1=input(Charnum,dollar7.); run;proc print data=results.output13 (firstobs=52
obs=52); run;

What is the average (mean) of the num1 variable for the entire data set?

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Freshy Oxford University
View profile
Follow You need to be logged in order to follow users or courses
Sold
47
Member since
1 year
Number of followers
4
Documents
6784
Last sold
3 days ago

3.6

9 reviews

5
3
4
3
3
1
2
0
1
2

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions