全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
1878 2
2009-03-28

前两到题应该选c和d没错吧 但是第三道题答案给的是B 这不和第二题冲突了么 谁给我解释一下啊 谢谢

1 During each execution of the following DO loop, the value of Earned is calculated and is added to its previous value. How many times does this DO loop execute?

data finance.earnings;
   Amount=1000;
   Rate=.075/12;
   do month=1 to 12;
      Earned+(amount+earned)*rate;
   end;
run;


     
 a.  0

     
 b.  1

     
 c.  12

     
 d.  13

2 In the data set Work.Invest, what would be the stored value for Year?

data work.invest;
   do year=1990 to 2004;
      Capital+5000;
      capital+(capital*.10);
   end;
run;


     
 a.  missing

     
 b.  1990

     
 c.  2004

     
 d.  2005

3 Which of the following statements is false regarding the program shown below?

data work.invest;
   do year=1990 to 2004;
      Capital+5000;
      capital+(capital*.10);
      output;
   end;
run;


     
 a.  The OUTPUT statement writes current values to the data set immediately.

     
 b.  The stored value for Year is 2005.

     
 c.  The OUTPUT statement overrides the automatic output at the end of the DATA step.

     
 d.  The DO loop performs 15 iterations.

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

二维码

扫码加我 拉你入群

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

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

全部回复
2009-3-28 09:13:00

The second question was wihtout "output" while the third was with "output".

二维码

扫码加我 拉你入群

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

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

2009-3-29 12:06:00
以下是引用xuwei2007在2009-3-28 9:13:00的发言:

The second question was wihtout "output" while the third was with "output".

yep! i just noticed that right after i posted this up here

heavy thanks anyway!

二维码

扫码加我 拉你入群

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

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

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群