| 所在主题: | |
| 文件名: 304677.docx | |
| 资料下载链接地址: https://bbs.pinggu.org/a-304677.html | |
| 附件大小: | |
|
<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编辑过] |
|
熟悉论坛请点击新手指南
|
|
| 下载说明 | |
|
1、论坛支持迅雷和网际快车等p2p多线程软件下载,请在上面选择下载通道单击右健下载即可。 2、论坛会定期自动批量更新下载地址,所以请不要浪费时间盗链论坛资源,盗链地址会很快失效。 3、本站为非盈利性质的学术交流网站,鼓励和保护原创作品,拒绝未经版权人许可的上传行为。本站如接到版权人发出的合格侵权通知,将积极的采取必要措施;同时,本站也将在技术手段和能力范围内,履行版权保护的注意义务。 (如有侵权,欢迎举报) |
|
京ICP备16021002号-2 京B2-20170662号
京公网安备 11010802022788号
论坛法律顾问:王进律师
知识产权保护声明
免责及隐私声明