楼主: lsy19831218
2419 4

[求助]小弟周四考BASE,还有5题没搞明白 [推广有奖]

  • 0关注
  • 0粉丝

小学生

50%

还不是VIP/贵宾

-

威望
0
论坛币
58 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
142 点
帖子
5
精华
0
在线时间
3 小时
注册时间
2008-12-4
最后登录
2018-2-3

楼主
lsy19831218 发表于 2009-3-17 09:15:00 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
<p>周四就要去考了,是在美国考,全靠自学的,下载了123+50的练习题,发现和美国网站上29美金卖的题目基本一样。感谢大家在论坛里的分享。</p><p>谁能帮小弟解答一下这5道题目啊,不胜感激。</p><p>1. The contents of the raw data file EMPLOYEE are listed below:</p><p>---|---10---|---20---|---30</p><p>Ruth 39 11</p><p>Jose 32 22</p><p>Sue 30 33</p><p>John 40 44</p><p>The following SAS program is submitted:</p><p>data test;</p><p>infile 'employee';</p><p>input employee_name $ 1-4;</p><p>if employee_name='Sue' then input age 7-8;</p><p>else input idnum 10-11;</p><p>run;</p><p>Which one of the following values does the variable AGE contain when the name of the employee is "Sue"?</p><p>A. 30</p><p>B.33</p><p>C.40</p><p>D..(missing numeric value)</p><p>Answer.C </p><p>为什么不是A30啊?按照IF THEN就是应该这个啊??</p><p>2. A SAS PRINT procedure output of the WORK.LEVELS data set is listed below:</p><p>obs name level</p><p>1 Frank 1</p><p>2 Joan 2</p><p>3 Sui 2</p><p>4 Jose 3</p><p>5 Burt 4</p><p>6 Kelly .</p><p>7 Juan 1</p><p>The following SAS program is submitted:</p><p>data work.expertise;</p><p>set work.levels;</p><p>if level=. then</p><p>expertise='Unknown';</p><p>else if level=1 then</p><p>expertise='Low';</p><p>else if level =2 or 3 then</p><p>expertise='Medium';</p><p>else</p><p>expertise='High';</p><p>run;</p><p>Which of the following values does the varible EXPERTISE contain?</p><p>A. Low, Medium and High only</p><p>B. Low, Medium, and Unknown only</p><p>C. Low Medium High and Unknown only</p><p>D. Low, Medium, High, Unknown, and '' (missing character value)</p><p>Answer: B</p><p>Level 4的expertise应该是High,可是SAS给出的值却是Medium,这是怎么回事??</p><p>3. The contents of the raw data file SIZE are listed below:</p><p>---|---10---|---20---|---30</p><p>72 95</p><p>The following SAS program is submitted:</p><p>data test;</p><p>infile 'size';</p><p>input @1 height 2. @4 weight 2;</p><p>run;</p><p>which one of the following is the value of the variable WEIGHT in the ouput data set?</p><p>A. 2</p><p>B. 72</p><p>C. 95</p><p>D.. (missing numeric value)</p><p>Anser: A</p><p>weight 2后面少了一个点,应该算是句法错误了,我在SAS上运行了一下,结果是2,如果把2改为其他10以内的数,结果就和改的数一样,如果改成大于10的数,SAS说运算错误。如果在2后面把。加上那就输出95了。这是怎么回事啊?</p><p>哪位高手中中的高手帮小弟解释一下,万分感激!!!!</p><p><br/></p>

[此贴子已经被作者于2009-3-18 0:10:27编辑过]

二维码

扫码加我 拉你入群

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

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

关键词:Base following Procedure Character Employee 求助 小弟 Base

304677.docx
下载链接: https://bbs.pinggu.org/a-304677.html

266.6 KB

[求助]小弟周四考BASE,还有5题没搞明白

沙发
zhitler 发表于 2009-3-17 10:12:00
office2007的格式,打不开

藤椅
lsy19831218 发表于 2009-3-18 00:11:00
加急贴,顶起来!!

板凳
zhitler 发表于 2009-3-18 09:32:00
<p>&nbsp;</p><p>第二题:</p><p>&nbsp;</p><p>else if level =2 or 3 then</p><p>注意条件里的 3,这条永远成立的</p><p>,所以到Medium就结束了<br/></p>

报纸
yongyitian 发表于 2009-3-18 11:20:00
<p>第一题<br/>input 语句后加一个@,则下面的语句继续读入同一行的数据。否则读入下一行。</p><p>input employee_name $ 1-4 @;<br/>if employee_name='Sue' then input age 7-8;<br/>else input idnum 10-11;<br/>run;</p>

[此贴子已经被作者于2009-3-18 11:24:27编辑过]

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

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-24 19:01