SASInstitute SAS Advanced Programming Exam for SAS 9 - A00-212 模擬練習

Given the non-indexed SAS data set TEMP:
TEMP
X Y
--
P 52
P 45
A 13
A 56
R 34
R 12
R 78
The following SAS program is submitted:
Proc print data=temp;
<insert BY statement here>
run;
Which BY statement completes the program, creates a listing report that is grouped by X and completes without
errors?

正解: C
The following SAS program is submitted:
% let a=cat;
% macro animal(a=frog);
% let a=bird;
% mend;
% animal(a=pig)
% put a is &a;
What is written to the SAS log?

正解: D
Which title statement would always display current date?

正解: A
In which one of the following SAS programs is the SAS data set index named CHAR1 always used?

正解: C
Given the SAS dataset ONE
ONE
SALARY
200
205
523
The following SAS program is submitted
Proc sql;
Select * from one
<Insert Where expression here>;
quit;
The following output is desired:
SALARY
200
205
523
Which WHERE expression completes the program and generates the desired output?

正解: C
Which one of the following programs contains a syntax error?

正解: B
The following SAS program is submitted:

What is written to the SAS log?

正解: D
Given the following SAS program:

What will be the output from the PRINT Procedure?

正解: B
Which one of the following is true regarding the KEEP statement?

正解: D
The following SAS program is submitted:
% macro execute;
<insert statement here>
proc print data = sasuser.houses;
run;
% end;
% mend;
Which of the following completes the above program so that it executes on Tuesday?

正解: B
Which one of the following SAS procedures changes a permanent format of a variable stored in a SAS data set?

正解: A
The following SAS program is submitted:
proc contents data = testdata.one;
run;
Which one of the following SQL statements produces similar information about the column attributes as the above
CONTENTS procedure?

正解: C