刚刚考完SAS Base 9 Certification Exam, 其实考完就已经忘了很多题,为答谢论坛里很多前人的奉献,为此拼命回想具体都有哪些题。
很多题之前的帖子都有提到,有个别几题我之前在论坛里没有看到或者了解有限,在此列出,
1.
yearcutoff=1970;
Date='01jan60';
Year=year(date);
问:what is the value of Year? 选项有 1960, 2060, ... 我选了2060
2.
Proc contents data=work._all_; run;
Several statemens are listed for selection. 我选了D, ...list all the data set files in Work library and each file's metadata.
3.
x y
5 2
1 3
5 6
题目改成了,
if x=5 then output one;
if y lt 5 then output two;
else output other;
How many observations in each dataset?
答案是 2 for one, 2 for two, 1 for other.
4.
原来dataset中numeric变量Ship_date表示如 17 Mar 1999(这里日期随便写的, 格式是一样的),问以下哪个语句将Ship_date改成如 March 17 1999这样的字符数据。答案应该是 Ship_date_char=put (Ship_date, worddate20.);
5.
填空题,给出find(‘US-Austrilia....', 'US', 'i', 5) 的具体数值,答案是填 5
6.
填空题,给出含有IDNumber和Expenses两个变量的dataset, 写出code 要求ascending Expenses within ascending IDNumber.
答案是 by IDNumer Expenses (题目将结尾;在空白后面已给出)
我的复习主要是做70+123, 考前一天看了Crackman的详解和论坛里近期考过的朋友的总结。
希望以上对即将要考的朋友有所帮助。