EZ Study

Actuarial Biology Chemistry Economics Calculators Confucius Engineer
Physics
C.S.

SAS Programing Certification Exam
Practice Questions & Answer set-49

Practice Question 233

The following SAS program is submitted:
libname rawdata1 'location of SAS data library';
filename rawdata2 'location of raw data file';
data work.testdata;
infile input sales1 sales2;
run;
Which one of the following is needed to complete the program correctly?
A. rawdata1     B. rawdata2     C. 'rawdata1'     D. 'rawdata2'

Answer is B.

Practice Question 234

A raw data record is listed below:
--------10-------20-------30
son,Travis,
The following output is desired:
relation firstname
son Travis
Which one of the following SAS programs reads the data correctly?
A. data family / dlm = ',';
infile 'file-specification';
input relation $ firstname $;
run;
B. options dlm = ',';
data family;
infile 'file-specification';
input relation $ firstname $;
run;
C. data family;
infile 'file-specification' dlm = ',';
input relation $ firstname $;
run;
D. data family;
infile 'file-specification';
input relation $ firstname $ / dlm = ',';
run;

Answer is C

Practice Question 235

The contents of the raw data file TYPECOLOR are listed below:
---------10--------20--------30
daisyyellow
The following SAS program is submitted:
data flowers;
infile 'typecolor';
input type $ 1-5 +1 color $;
run;

Which one of the following represents the values of the variables TYPE and COLOR?
A. type color
daisy yellow
B. type color
daisy ellow
C. type color
daisyyellow (missing character value)
D. No values are stored as the program fails to execute due to syntax errors.

Answer is B

Practice Question 236

The following SAS program is submitted:
proc print data = sasuser.houses;
run;
proc means data = sasuser.shoes;
run;
Which one of the following OPTIONS statements resets the page number to 1 for the second report?
A. options pageno = 1;
B. options pagenum = 1;
C. options reset pageno = 1;
D. options reset pagenum = 1; Answer is A.

Practice Question 237

The following SAS program is submitted:
data work.sets;
do until (prod gt 6);

prod + 1;     end;
run;
Which one of the following is the value of the variable PROD in the output data set?
A. 5     B. 6     C. 7     D. 8

Answer is C.
Related links:

Continue to SAS Practice Exam Question Answer Set-50   SAS interview Questions Answers
Back to SAS Practice Exam Question Answer Set-48   SAS Tutorial   Statistics Tutorial