SAS中文论坛

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

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


               
                <p><font size="4">32.Consider the following data step:<br>
<br>
data WORK.NEW; <br>
&nbsp;&nbsp;&nbsp;  set WORK.OLD;<br>
&nbsp;&nbsp;&nbsp;  Count+1;<br>
run; <br>
<br>
The variable Count is created using a sum statement. Which statement regarding this variable is true? <br>
&nbsp;&nbsp;&nbsp;&nbsp;  A. It is assigned a value 0 when the data step begins execution.<br>
&nbsp;&nbsp;&nbsp;&nbsp;  B. It is assigned a value of missing when the data step begins execution.<br>
&nbsp;&nbsp;&nbsp;&nbsp;  C. It is assigned a value 0 at compile time. <br>
&nbsp;&nbsp;&nbsp;&nbsp;  D. It is assigned a value of missing at compile time.</font></p>
<p><font size="4">Answer: C&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  </font></p>
<p><font size="4">本文属于博客:</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"> 版权归作者所有,欢迎转载!如有转载,请务必注明出处!未经本文作者同意不得用于商业应用。</font></p>
<p><font size="4">这道题考察的是SAS表达式。<br>
COUNT+1等价于<br>
RETAIN COUNT 0;<br>
COUNT=COUNT+1;</font></p>
<p><font size="4">至于是不是编译错误,看下面的文章:</font></p>
<p><font size="4"><a href="http://hi.baidu.com/crack_man/blog/item/175605f06f8385ff7709d753.html"><!-- m --><a class="postlink" href="http://hi.baidu.com/crack_man/blog/item/175605f06f8385ff7709d753.html">http://hi.baidu.com/crack_man/blog/item ... 9d753.html</a><!-- m --></a></font></p> <a href="http://hi.baidu.com/crack%5Fman/blog/item/91ba9b5c5e41e3ce9d820435.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/91ba9b5c5e41e3ce9d820435.html#comment">查看评论</a>




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