楼主: 鳗鱼张
1787 4

[问答] 菜鸟求助,50题的问题 [推广有奖]

  • 0关注
  • 1粉丝

大专生

78%

还不是VIP/贵宾

-

威望
0
论坛币
1 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
495 点
帖子
42
精华
0
在线时间
39 小时
注册时间
2015-3-5
最后登录
2015-5-17

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币

18题 不明白,选C不可以吗

19题 为什么total is assigned a missing value

21

31C错在哪

谢谢各位啦


二维码

扫码加我 拉你入群

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

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

关键词:assigned missing assign value Total assigned

沙发
二妞果果 发表于 2015-3-6 15:58:01 |只看作者 |坛友微信交流群
你得把code贴上来啊,50题又不是人手一本

使用道具

藤椅
鳗鱼张 发表于 2015-3-6 23:42:56 |只看作者 |坛友微信交流群
二妞果果 发表于 2015-3-6 15:58
你得把code贴上来啊,50题又不是人手一本
不好意思,发帖的时候时间紧没有贴

使用道具

板凳
鳗鱼张 发表于 2015-3-6 23:45:02 |只看作者 |坛友微信交流群
18. A raw data file is listed below.
1---+----10---+----20---+---
10
23
20
15
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);
不可以用C吗

19.A raw data file is listed below.
1---+----10---+----20---+---
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)total是missing value?

使用道具

报纸
鳗鱼张 发表于 2015-3-7 00:09:39 |只看作者 |坛友微信交流群
33.The following SAS program is submitted:
data test;
input animal1 $ animal2 $
mlgrams1 mlgrams2;
cards;
hummingbird ostrich 54000.39 90800000.87
;
run;
Which one of the following represents the values of each variable in the output data set?
a. animal1 animal2 mlgrams1 mlgrams2
hummingb ostrich 54000.39 90800000
b. animal1 animal2 mlgrams1 mlgrams2
hummingb ostrich 54000.39 90800000.87
c. animal1 animal2 mlgrams1 mlgrams2
hummingbird ostrich 54000.39 90800000
d. animal1 animal2 mlgrams1 mlgrams2
animal1后面有$,为什么选b

34.The SAS data sets Work.Employee and Work.Salary are shown below.
Work.Employee
fname age
Bruce 30
Dan 40
Work.Salary
fname salary
Bruce 25000
Bruce 35000
Dan 25000
The following merged SAS data set is generated:
Work.Empdata
fname age totsal
Bruce 30 60000
Dan 40 25000

Which one of the following SAS programs created the merged data set?
a. data work.empdata;
merge work.employee
work.salary;
by fname;
if first.fname then totsal=0;
totsal+salary;
if last.fname then output;
run;
b. data work.empdata(drop=salary);
merge work.employee
work.salary;
by fname;
if first.fname then totsal=0;
totsal+salary;
if last.fname then output;
run;
c. data work.empdata;
merge work.employee
work.salary(drop=salary);
by fname;
if first.fname then total=0;
totsal+salary;
if last.fname then output;
run;
d. data work.empdata;
merge work.employee
work.salary;
by fname;
if first.fname then total+salary;
run;

使用道具

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-4-28 14:55