<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编辑过]