楼主: leobeau
2087 2

[SAS] 求助BASE的一道 do loop的题 大虾请进 [推广有奖]

  • 0关注
  • 0粉丝

已卖:41份资源

初中生

38%

还不是VIP/贵宾

-

威望
0 级
论坛币
272933 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
3763 点
帖子
22
精华
0
在线时间
1 小时
注册时间
2007-9-12
最后登录
2016-4-14

楼主
leobeau 发表于 2009-3-28 08:06:00 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
<p>前两到题应该选c和d没错吧 但是第三道题答案给的是B 这不和第二题冲突了么 谁给我解释一下啊 谢谢</p><p></p><p>1 During each execution of the following DO loop, the value of <code>Earned</code> is calculated and is added to its previous value. How many times does this DO loop execute? </p><pre><font color="#003399">data finance.earnings;<br/>&nbsp;&nbsp; Amount=1000;<br/>&nbsp;&nbsp; Rate=.075/12;<br/>&nbsp;&nbsp; do month=1 to 12;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Earned+(amount+earned)*rate;<br/>&nbsp;&nbsp; end;<br/>run;</font></pre><!--Element not supported - Type: 8 Name: #comment--><p><table border="0"><tbody><tr valign="top"><td><input type="radio" name="ques2"/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td>&nbsp;<em>a.</em>&nbsp;&nbsp;</td><td><!--Element not supported - Type: 8 Name: #comment-->0<!--Element not supported - Type: 8 Name: #comment--></td></tr><tr valign="top"><td><input type="radio" name="ques2"/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td>&nbsp;<em>b.</em>&nbsp;&nbsp;</td><td><!--Element not supported - Type: 8 Name: #comment-->1<!--Element not supported - Type: 8 Name: #comment--></td></tr><tr valign="top"><td><input checked="checked" type="radio" name="ques2"/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td>&nbsp;<em>c.</em>&nbsp;&nbsp;</td><td><!--Element not supported - Type: 8 Name: #comment-->12<!--Element not supported - Type: 8 Name: #comment--></td></tr><tr valign="top"><td><input type="radio" name="ques2"/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td>&nbsp;<em>d.</em>&nbsp;&nbsp;</td><td><!--Element not supported - Type: 8 Name: #comment-->13<!--Element not supported - Type: 8 Name: #comment--></td></tr></tbody></table></p><p>2 In the data set <strong>Work.Invest</strong>, what would be the stored value for <code>Year</code>? </p><pre><font color="#003399">data work.invest;<br/>&nbsp;&nbsp; do year=1990 to 2004;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Capital+5000;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;capital+(capital*.10);<br/>&nbsp;&nbsp; end;<br/>run;</font></pre><!--Element not supported - Type: 8 Name: #comment--><p><table border="0"><tbody><tr valign="top"><td><input type="radio" name="ques4"/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td>&nbsp;<em>a.</em>&nbsp;&nbsp;</td><td><!--Element not supported - Type: 8 Name: #comment-->missing<!--Element not supported - Type: 8 Name: #comment--></td></tr><tr valign="top"><td><input type="radio" name="ques4"/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td>&nbsp;<em>b.</em>&nbsp;&nbsp;</td><td><!--Element not supported - Type: 8 Name: #comment--><em>1990</em><!--Element not supported - Type: 8 Name: #comment--></td></tr><tr valign="top"><td><input type="radio" name="ques4"/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td>&nbsp;<em>c.</em>&nbsp;&nbsp;</td><td><!--Element not supported - Type: 8 Name: #comment--><em>2004</em><!--Element not supported - Type: 8 Name: #comment--></td></tr><tr valign="top"><td><input checked="checked" type="radio" name="ques4"/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td>&nbsp;<em>d.</em>&nbsp;&nbsp;</td><td><!--Element not supported - Type: 8 Name: #comment--><em>2005</em><!--Element not supported - Type: 8 Name: #comment--></td></tr></tbody></table></p><p>3 Which of the following statements is <strong>false</strong> regarding the program shown below? </p><pre><font color="#003399">data work.invest;<br/>&nbsp;&nbsp; do year=1990 to 2004;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Capital+5000;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;capital+(capital*.10);<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;output;<br/>&nbsp;&nbsp; end;<br/>run;</font></pre><!--Element not supported - Type: 8 Name: #comment--><p><table border="0"><tbody><tr valign="top"><td><input type="radio" name="ques5"/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td>&nbsp;<em>a.</em>&nbsp;&nbsp;</td><td><!--Element not supported - Type: 8 Name: #comment-->The OUTPUT statement writes current values to the data set immediately.<!--Element not supported - Type: 8 Name: #comment--></td></tr><tr valign="top"><td><input type="radio" name="ques5"/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td>&nbsp;<em>b.</em>&nbsp;&nbsp;</td><td><!--Element not supported - Type: 8 Name: #comment-->The stored value for <code>Year</code> is <em>2005</em>.<!--Element not supported - Type: 8 Name: #comment--></td></tr><tr valign="top"><td><input type="radio" name="ques5"/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td>&nbsp;<em>c.</em>&nbsp;&nbsp;</td><td><!--Element not supported - Type: 8 Name: #comment-->The OUTPUT statement overrides the automatic output at the end of the DATA step.<!--Element not supported - Type: 8 Name: #comment--></td></tr><tr valign="top"><td><input type="radio" name="ques5"/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td>&nbsp;<em>d.</em>&nbsp;&nbsp;</td><td><!--Element not supported - Type: 8 Name: #comment-->The DO loop performs 15 iterations.</td></tr></tbody></table></p>

[此贴子已经被作者于2009-3-28 8:06:49编辑过]

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:Base loop iterations Statements statement 求助 大虾 Base loop

May the Lord be with You

沙发
xuwei2007 发表于 2009-3-28 09:13:00
<p>The second question was wihtout "output" while the third was with "output".</p>

藤椅
leobeau 发表于 2009-3-29 12:06:00
<div class="quote"><b>以下是引用<i>xuwei2007</i>在2009-3-28 9:13:00的发言:</b><br/><p>The second question was wihtout "output" while the third was with "output".</p></div><p>yep! i just noticed that right after i posted this up here </p><p>heavy thanks anyway!</p>
May the Lord be with You

您需要登录后才可以回帖 登录 | 我要注册

客服
GMT+8, 2026-12-1 02:49