楼主: leobeau
1922 2

求助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 论坛币

前两到题应该选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编辑过]

二维码

扫码加我 拉你入群

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

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

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

May the Lord be with You

沙发
xuwei2007 发表于 2009-3-28 09:13:00

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

藤椅
leobeau 发表于 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!

May the Lord be with You

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

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-26 07:02