全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
3778 7
2014-11-22
新版70题里面的三道题~我想破脑袋了从guide上也找不出!!HELP~~~~~


[em49][em49][em49]
87. Question 1: The following program is submitted.
data WORK.TEST;
input Name $ Age;
datalines;
John +35
run;
Which values are stored in the output data set?
A. name age John 35
B. name age John (missing value)
C. name age (missing value) (missing value)
D. The DATA step fails execution due to data errors.
Answer: A 我想知道那个加号是干什么的??
------------------------------------------------------------------

93. This question will ask you to provide a line of missing code. Given the following data set WORK.SALES:
SalesID SalesJan FebSales MarchAmt
------- -------- -------- --------
W6790 50 400 350
W7693 25 100 125
W1387 . 300 250
The following SAS program is submitted:
data WORK.QTR1;
set WORK.SALES;
array month{3} SalesJan FebSales MarchAmt;
<insert code here>
run;
Which statement should be inserted to produce the following output?
SalesID SalesJan FebSales MarchAmt Qtr1
------- -------- -------- -------- ----
W6790 50 400 350 800
W7693 25 100 125 250
W1387 . 300 250 550
A.Qtr1 = sum(of month{_ALL_});
B.Qtr1 = month{1} + month{2} + month{3};
C.Qtr1 = sum(of month{*});
D.Qtr1 = sum(of month{3});
Answer: C   选项C中的*是嘛意思?选项A不行么??

-----------------------------------------------------------------
94. Given the following SAS error log
44 data WORK.OUTPUT;
45 set SASHELP.CLASS;
46 BMI=(Weight*703)/Height**2;
47 where bmi ge 20;
ERROR: Variable bmi is not on file SASHELP.CLASS.
48 run;
What change to the program will correct the error?
A.Replace the WHERE statement with an IF statement
B.Change the ** in the BMI formula to a single *
C.Change bmi to BMI in the WHERE statement
D.Add a (Keep=BMI) option to the SET statement
Answer: A  
为什么是A?难道不是C吗??


二维码

扫码加我 拉你入群

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

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

全部回复
2014-11-23 10:35:20
所以真是没有人鸟我
二维码

扫码加我 拉你入群

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

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

2014-11-23 10:36:09
[cry][cry]
二维码

扫码加我 拉你入群

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

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

2014-11-23 11:04:19
87:
+在这里就是正号;

93:  
*就是表示数组所有成员; 选项A行不行,楼主只要试一下就知道;

94:
SAS里变量名是不区分大小写;
WHERE语句是在读数据(set)的时候起作用,直接作用于SET的数据集;
IF语句会按顺序正常执行,作用于所有PDV的变量。
二维码

扫码加我 拉你入群

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

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

2014-11-23 11:11:06
pobel 发表于 2014-11-23 11:04
87:
+在这里就是正号;
太感谢了!!
二维码

扫码加我 拉你入群

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

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

2014-12-19 07:41:21
87. Question 1: The following program is submitted.
data WORK.TEST;
input Name $ Age;
datalines;
John +35
run;
Which values are stored in the output data set?
A. name age John 35
B. name age John (missing value)
C. name age (missing value) (missing value)
D. The DATA step fails execution due to data errors.  此题中datalines; 在数据输入完后是不是应该有个; 号啊怎么没有了?没有了那是不是应该选择D呢?
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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