1. SAS基础

第一周课堂练习

1、单选题:
‍显示SAS程序运行状态的窗口是​
选项:
A: Editor
B: Output
C: Log
D: Explorer
答案: 【 Log

2、单选题:
​SAS程序的每条语句必须以( )符号结束。​
选项:
A: 逗号
B: 分号
C: 点句号
D: 单引号
答案: 【 分号

3、单选题:
‎SAS数据集的种类有()。​‎​
选项:
A: 临时数据集和永久数据集
B: 目录
C: 永久数据集
D: 表
答案: 【 临时数据集和永久数据集

4、单选题:
‎Which is a valid LIBNAME statement?‍
选项:
A: libname  "_ SAS_ data_ library_location_”;
B: sasdata libname  "_ SAS_ data_ library_location_”;
C: libname  sasdata  "_ SAS_ data_ library_location_”;
D: libname  sasdata  sas  "_ SAS_ data_ library_location_”;
答案: 【 libname  sasdata  "_ SAS_ data_ library_location_”;

5、单选题:
​SAS过程步由( )关键词引出。‏
选项:
A: DARA
B: PROC
C: CARDS
D: RUN
答案: 【 PROC

2. SAS语言

第七周课堂练习

1、单选题:
A raw data file is listed below.‍1901 2‍1905 1‍1910 6‍1925 1‍1941 1‍The following SAS program is submitted and references the raw data file above:‍data money;‍infile 'file-specification';‍input year quantity;‍total=total+quantity;‍run;‍What is the value of total when the data step finishes executing?‍​‍
选项:
A: 0
B: 1
C: 11
D: . (missing numeric value)
答案: 【 . (missing numeric value)

2、单选题:
A raw data file is listed below.‌10‌23‌20‌15‌.‌25‌ ‌The following program is submitted:‌‌data all_sales;‌infile 'file-specification';‌input receipts;‌<insert statement(s) here>‌run;‌ ‌Which statement(s) complete(s) the program and produce(s) a running total of the‌Receipts variable?‌‌‌
选项:
A: total+receipts;
B: total 0;sum total;
C: total=total+receipts;
D: total=sum(total,receipts);
答案: 【 total+receipts;

3、单选题:
The following program is submitted:‎‎data test;‎average=mean(6,4,.,2);‎run;‎‎What is the value of average?‎‎‎
选项:
A: 0
B: 3
C: 4
D: . (missing numeric value)
答案: 【 4

4、单选题:
The following SAS program is submitted:‍‍data WORK.DATE_INFO;‍Day="01" ;‍Yr=1960 ;‍X=mdy(Day,01,Yr) ;‍run;‍‍What is the value of the variable X?‍‍‍
选项:
A: the numeric value 0
B: the character value "01011960"
C: a missing value due to syntax errors
D: the step will not compile because of the character argument in the mdy function.
答案: 【 the numeric value 0

5、单选题:
Which statement specifies that records 1 through 10 are to be read from the raw data file customer.txt?‏‌‏
选项:
A: infile 'customer.txt' 1-10;
B: input 'customer.txt' stop@10;
C:  infile 'customer.txt' obs=10;
D: input 'customer.txt' stop=10;
答案: 【  infile 'customer.txt' obs=10;

第三周课堂练习

1、单选题:
‏对日期型数据,在

剩余75%内容付费后可查看

发表评论

电子邮件地址不会被公开。 必填项已用*标注