全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
3738 6
2010-01-07
1.Which statement is true concerning the SAS automatic variable _ERROR_?

A.It cannot be used in an if/then condition.


B.It cannot be used in an assignment statement.


C.It can be put into a keep statement or keep= option.


D.It is automatically dropped.


(选D??)



2.The following SAS program is sumbitted:


data WORK.INFO;


infile 'DATAFILE.TXT';


input @1 Company $20. @25 State $2. @;


if State=' ' then input @30 Year;


else input @30 City Year;


input NumEmployees;


run;


How many raw data records are read during each iteration of the DATA step?


A.1          B.2          C.3           D.4




3.You're attempting to read a raw data file and you see the following messages displayed in the SAS Log:


NOTE: Invalid data for Salary in line 4 15-23.



RULE:
----+----1----+----2----+----3----+----4----+----5--


4 120104 F 46#30 11MAY1954 33


Employee_Id=120104 employee_gender=F Salary=. birth_date=-2061 _ERROR_=1 _N_=4


NOTE: 20 records were read from the infile 'c:\employees.dat'.


The minimum record length was 33.


The maximum record length was 33.


NOTE: The data set WORK.EMPLOYEES has 20 observations and 4 variables.


What does it mean?


A.A compiler error, triggered by an invalid character for the variable Salary.


B.An execution error, triggered by an invalid character for the variable Salary.


C.The 1st of potentially many errors, this one occurring on the 4th observation.


D.An error on the INPUT statement specification for reading the variable Salary.


(我觉得是B)



4.Consider the following data step:


data WORK.NEW;


set WORK.OLD;


Count+1;


run;


The variable Count is created using a sum statement. Whichstatement regarding this variable is true?


A.It is assigned a value 0 when the data step begins execution.


B.It is assigned a value of missing when the data step begins execution.


C.It is assigned a value 0 at compile time.


D.It is assigned a value of missing at compile time.


(我选A)




5.A user-defined format has been created using the FORMAT procedure.


How is it stored?


A.in a SAS catalog


B.in a memory resident lookup table


C.in a SAS dataset in the WORK library


D.in a SAS dataset in a permanent SAS data library





二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2010-1-7 07:28:49
1# picassososo

All of them are simple questions and one can find the answer in SAS/BASE manual.

Or one can run the program or one can write a short program to see what is going on.

In this way, you will accumulate your SAS knowledge.
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2010-1-7 15:18:26
同问答案。
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2010-1-7 17:10:05
D A B A A 吧
最后一题不确定,不过BCD肯定都不对,所以选A。
楼主如果想准备base考试的话,可以PM我个联系方式,我们可以讨论讨论,我也在准备。
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2010-1-13 22:10:53
不对,答案是DBACA,我后天考!!
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2014-12-16 07:30:14
我觉得答案是:DBBCA
第二题由于input @1 Company 20.@25State2. @;

if State=' ' then input @30 Year;

else input @30 City Year; 没有@ 所以之后input读新的一行

input NumEmployees;  读新的一行 总共读了2行raw data
第三题 此处为data error选B
第四题 Count+1; 等价于 retain count 0,所以一开始count=0 所以选C
第五题 new format 存在 in a SAS catalog :WORK.FORMATS or SASUSER.FORMATS catalog 所以选A
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

点击查看更多内容…
相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群