SAS中文论坛

标题: 跟crakman做sas base认证试题(8) [打印本页]

作者: shiyiming    时间: 2010-11-11 00:05
标题: 跟crakman做sas base认证试题(8)
From crackman's blog on Baidu


               
                <p><font size="4">8.The SAS data set named WORK.SALARY contains 10 observations for each department,and is currently ordered by Department. The following SAS program is submitted:<br>
<br>
data WORK.TOTAL; <br>
&nbsp;&nbsp;&nbsp;&nbsp;  set WORK.SALARY(keep=Department MonthlyWageRate);<br>
&nbsp;&nbsp;&nbsp;&nbsp;  by Department;<br>
&nbsp;&nbsp;&nbsp;&nbsp;  if First.Department=1 then Payroll=0; <br>
&nbsp;&nbsp;&nbsp;&nbsp;  Payroll+(MonthlyWageRate*12); <br>
&nbsp;&nbsp;&nbsp;&nbsp;  if Last.Department=1; <br>
run;<br>
<br>
本文属于博客:</font><a href="http://hi.baidu.com/crack_man/home"><font size="4"><!-- m --><a class="postlink" href="http://hi.baidu.com/crack_man/home">http://hi.baidu.com/crack_man/home</a><!-- m --></font></a><font size="4"> 版权归作者所有,如有转载,请注明出处!未经本作者同意不得用于商业应用。<br>
其他本博客文章均作此声明!</font></p>
<p><font size="4">Which statement is true? <br>
&nbsp;&nbsp;&nbsp;&nbsp;  A. The by statement in the DATA step causes a syntax error.<br>
&nbsp;&nbsp;&nbsp;&nbsp;  B. The statement Payroll+(MonthlyWageRate*12); in the data step causes a syntax error.<br>
&nbsp;&nbsp;&nbsp;&nbsp;  C. The values of the variable Payroll represent the monthly total for each department in the WORK.SALARY data set.<br>
&nbsp;&nbsp;&nbsp;&nbsp;  D. The values of the variable Payroll represent a monthly total for all values of WAGERATE in the WORK.SALARY data set.</font></p>
<p><font size="4">Answer: C</font></p>
<p><font size="4">本题同第一题,详细见文章《跟crakman做sas base认证试题(1)》</font></p> <a href="http://hi.baidu.com/crack%5Fman/blog/item/f40e8b8f0e21ebc3fc1f102c.html">阅读全文</a>
               
                <br/><b>类别:</b><a href="http://hi.baidu.com/crack%5Fman/blog/category/%B8%FAcrackman%D7%F6sas%20base%C8%CF%D6%A4%CA%D4%CC%E2">跟crackman做sas base认证试题</a>&nbsp;<a href="http://hi.baidu.com/crack%5Fman/blog/item/f40e8b8f0e21ebc3fc1f102c.html#comment">查看评论</a>




欢迎光临 SAS中文论坛 (https://mysas.net/forum/) Powered by Discuz! X3.2