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

SAS Exam questions with complete solutions

Rating
-
Sold
-
Pages
32
Grade
A+
Uploaded on
20-11-2025
Written in
2025/2026

SAS Exam questions with complete solutions

Institution
SAS
Course
SAS

Content preview

SAS Exam questions with complete
solutions

The following SAS program is submitted:

data work. New;

length word $7;

amount = 7;

if amount = 5 then word 'CAT';

else if amount = 7 then word = 'DOG';

else word = 'NONE!!!';

amount = 5;

run;



Which of the following represents the values of the AMOUNT and WORD variables? - correct
answer ✔✔ amount word

5 DOG



The following SAS program is submitted:

data work.sets

do until (prod gt 6);

prod + 1;

end;

run;



What is the value of the variable PROD in the output data set? - correct answer ✔✔ 7

,The contents of the raw data file PRODUCT are listed below:

----|----10---|----20---|----30

24613$25.31



The following SAS program is submitted:

data inventory;

infile 'product';

input idnum 5. @10 price;

run;

What is the value of the PRICE variable? - correct answer ✔✔ (missing numeric value)



The following SAS program is submitted:

proc print data = sasuser.houses;

run;

<insert OPTIONS statement here>

proc means data = sasuser.shoes;

run;

What OPTIONS statement resets the page number to 1 for the second report? - correct answer
✔✔ options pageno=1;



A raw data record is listed below:

----|----10---|----20---|----30

son,Travis,



The following output is desired:

,relation firstname

son Travis



What SAS program reads the data correctly? - correct answer ✔✔ data.family;

infile 'file-specification' dlm=',',

input relation $ firstname $;

run;



The following SAS program is submitted and reads 100 records from a raw data file:

data work.total;

infile 'file-specification' end = eof;

input name $ salary;

totsal + salary;

<insert IF statement here>

run;



What IF statement writes the last observation to the output data set? - correct answer ✔✔ if
eof = 1



The following SAS DATA step executes Monday, April 25, 2000:

data newstaff;

set staff;

start_date = today();

run;



What is the value of the variables START_DATE in the output data set? - correct answer ✔✔ the
numeric value 124725, representing the SAS date for April 25, 2000

, The following SAS program is submitted:

data revenue;

set year_1;

var1 = mdy(1,15,1960);

run;



What value does the variable named VAR1 contain? - correct answer ✔✔ 14



The SAS data set named COMPANY.PRICES is listed below:



COMPANY.PRICES

prodidpriceproduttype sales returns

K12S 5.10 NETWORK 15 2

B132S 2.34 HARDWARE 300 10

R18KY2 1.29 SOFTWARE 25 5

3KL8BY 6.37 HARDWARE 125 15

DY65DW 5.60 HARDARE 45 5

DGTY 4.55 HARDWARE 67 2



The following SAS program is submitted:



libname company 'SAS-data-library';

data hware inter soft;

set company.prices (keep = producttype price);

if price le 5.00;

Written for

Institution
SAS
Course
SAS

Document information

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

Subjects

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.
StuviaExamHub Havard School
View profile
Follow You need to be logged in order to follow users or courses
Sold
466
Member since
4 year
Number of followers
355
Documents
17806
Last sold
6 days ago
EXAM HUB (LATEST UPDATE)

QUALITY WORK OF ALL KIND OF QUIZ or EXAM WITH GUARANTEE OF AN A+ latest updates Im an expert on major courses especially; psychology,Nursing, Human resource Management &amp; Project writing. Assisting students with quality work is my first priority. I ensure scholarly standards in my documents . I assure a GOOD GRADE if you will use my work. Feel free to purchase n recommend others for 100% pass EXAMS!

3.7

88 reviews

5
41
4
10
3
17
2
7
1
13

Trending documents

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