标题: 跟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>
set WORK.SALARY(keep=Department MonthlyWageRate);<br>
by Department;<br>
if First.Department=1 then Payroll=0; <br>
Payroll+(MonthlyWageRate*12); <br>
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>
A. The by statement in the DATA step causes a syntax error.<br>
B. The statement Payroll+(MonthlyWageRate*12); in the data step causes a syntax error.<br>
C. The values of the variable Payroll represent the monthly total for each department in the WORK.SALARY data set.<br>
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>