经管之家送您一份
应届毕业生专属福利!
求职就业群
感谢您参与论坛问题回答
经管之家送您两个论坛币!
+2 论坛币
<p>星期四要考试了, 还有3道123的题没明白. 请大家帮帮忙. 希望真像大家说的大部分题都是123的. 等考完在向大家汇报吧.</p><p>1. The following SAS program is submitted:</p><p>data work.staff;</p><p>jobcategory= ‘FA’;</p><p>joblevel= ‘1’;</p><p>jobcategory=jobcategory !! joblevel;</p><p>run;</p><p>which one of the following is he value of he variable jobcategory in the output data set?</p><p>A. FA </p><p>B. FA1 </p><p>C. FA 1 </p><p>D.‘’ missing character value </p><p>答案是A 为什么不是B 或C呢?</p><p> </p><p>2. the following SAS program is submitted:</p><p>data work. Test;</p><p>First=' Ipswich, England';</p><p>City= substr(First, 1, 7);</p><p>City_Country=City !! ‘, ’!! ‘England’;</p><p>Run;</p><p>Which one of the following is the value of the variable CITY_COUNTRY in the output data set?</p><p>A. Ipswich, England</p><p>B. Ipswich , England </p><p>Answer is B. 为什么不是A? </p><p> </p><p> 3. The following SAS program is submitted: </p><p>data test; </p><p>input animal1 $ animal2 $ mlgrams1 mlgrams2;</p><p>cards;</p><p>hummingbird ostrich 54000.39 90800000.87;</p><p>run; </p><p>Which one of the following represents the values of each variable in the output data set? </p> <p></p><p>A. animal1 animal2 mlgrams1 mlgrams2 </p><p></p><p> hummingb ostrich 54000.39 90800000 </p><p></p><p></p>B. animal1 animal2 mlgrams1 mlgrams2 <p></p><p> hummingb ostrich 54000.39 90800000.87 </p><p></p><p></p><p> </p><p>答案是B. 可我觉得应该是A. 因为the default storage length for a variable is 8. 所以 hummingbird被截去最后的3位.按照这个道理90800000.87也超过了8,所以也应该截去最后的3位. 真是把我搞糊涂了. </p><p> </p><p>先谢谢大家了. </p>
扫码加我 拉你入群
请注明:姓名-公司-职位
以便审核进群资格,未注明则拒绝
|