以下是我今天所考到的题目:
填空题:
1. %put _Global_
2. HashAlpha
3. outer union corr
4. avg(6,8)=7
63题:
2.
3
4.
5.
9. 没有group by,答案选A
select rep, min(cost+ship)
from work.transact
order by Rep
;
10. 变型题. 原来题目里面的9变成了11, 答案选B. 2
11. 题目变了, 可是概念一样. 答案还是B.
12.
13.
14.
15. 题目改了, dataset给的是一样的,但加了group by,答案是
JONES 200
SIMTH 1200
19.
21.
22.
23.
25. 变型题 %HIGHWAY(Belt=no) 答案选: B. 2
27.
30.
31.
32.
37.
38. 变型题. 原题目中的4跟10的位置对调, 答案是A. Result is 0.
39. 变型题. SAS Program 第一句statement改成 %let Mv=bicycles
40.
41.
43. 变型题. Output给出的是:
Rep Average
JONES 100
答案选C. 即组内平均小于总体平均
44.
45. 变型题. 选项全变了, 变成一些具体的code, 还有technique的顺序也有变化. 考试的时候顺序是这样的:
Technique1 : proc SORT with NODUPKEY and OUT=
Technique2: proc SQL with the SELECT DISTINCT statement
Technique3: data step with IF FIRST.Customer_ID=1
答案选: only technique1 and technique2
46. 变型题. output变成了,答案选intersect
Name
Patel
47.
48.
49.
51. 变型题. by Id; 这句statement 被放进了源程序里面, 题目问执行这段程序会有怎么样. 选
generate an outputwithout a problem
53. 变型题. 题目问使用SASFILE对系统有什么影响, 选择increase memory
54.
55. 变型题. 题目给出了left join的output, 所以答案选 A. Left Join
YEAR QTR SALES BUDGET
2001 4 300 500
2001 4 300 400
. . . 350
58.
60. 变型题 答案是: PROC PRINT only
61.
62. 变型题. 答案还是B.
!!! in macro WORK.NEW SASHELP.CLASS;
!!! out macro &NEWNAME &SETNAME;
63. 变型题. 选项D的code已在题目给出, 问report里面有哪些variables.
选 Weight Height Name Age
其他题:
1. compress=yes 选择题
2.cmplib变为选择题;
3.two years after this year is 2013+1+1
1;
4.keep=option in set statement;
5.array multi{1:2,2}(1,2); 答案
ij output
11 1
12 2
21 .
22 .; (选择题)
6.page side info哪个可以看,答案proc contents;
7.proc sort data= out= (drop=) nodupkey, by var; run;
8.proc means一个view 答案data=finance.newdata; (和用普通dataset一样);
9.call symputx('Num', California)迷惑选项没有call;
10.fmtsearch=(mylib,library);
11.sum(profit)=400;
12.idxname;
13.Two dataset用except,答案Charlie, Omar;
15.need 20% of observations. 答案Where;
16.which macro definition should be used.答案title %nrstr("");
17.Ask why program failed,答案order by statementcann't be used inside of an in-line view;
我考到所有的题目都是机经里面出现过的,没有一个新题。下面是我看的sas advance pre guide的书,还有63题,我自己整理的2016年6月至今所有比较详细的机经和米粮最强机经。