问题 填空题

有以下程序
int f(int n)
if(n==1)return 1;
else return f(n-1)+1;
main()
int i,j=0;
for(i=1;i<3;i++)j+=f(i);
printf("%d\n"j);
程序运行后的输出结果是______。

答案

参考答案:C

问答题

(凡要求计算的题目,除题中特别加以标明的以外,均需列出计算过程;计算结果出现小数的,除题中特别要求以外,均保留小数点后两位小数;计算结果有单位的,必须予以标明。凡要求说明理由的内容,必须有相应的文字阐述。)

为提高生产效率,某企业拟对一套尚可使用5年的设备进行更新改造。新旧设备的替换将在当年内完成(即更新设备的建设期为0),不涉及增加流动资金投资,采用直线法计提设备折旧。适用的企业所得税税率为25%。

相关资料如下:

资料一:已知旧设备当前的账面价值为189000元,对外转让可获变价收入130000元,预计发生清理费用1000元(用现金支付)。如果继续使用该旧设备,到第五年末的预计净残值为10000元(与税法规定相同)。

资料二:该更新改造项目有甲、乙两个方案可供选择。

甲方案的资料如下:

购置一套价值329000元的A设备替换旧设备,该设备预计到第五年末回收的净残值为50000元(与税法规定相同)。使用A设备可使企业每年增加息税前利润50000元(不包括因旧固定资产提前报废发生的净损失);

乙方案的资料如下:

购置一套B设备替换旧设备,各年相应的更新改造增量净现金流量分别为:△NCF0=-750000(元),△NCF1~5=200000(元)。

资料三:已知当前企业投资的风险报酬率为4%,无风险报酬率为8%。

[要求]

根据资料一计算下列指标:①旧设备的变价净收入;②因旧固定资产提前报废发生净损失而抵减的所得税额。

阅读理解

Astronomers (天文学家) say they are on the point of finding planets like Earth orbiting other stars, which is a key step in determining if we are alone in the universe.

A top NASA official and other leading scientists say that within four or five years they should discover the first Earth-like planet where life could develop, or may have already. A planet close to the size of Earth could even be found sometime this year.

At the annual American Astronomical Society conference this week, each discovery involving  so-called “exoplanets” —those outside our solar system —pointed to the same conclusion:Quiet planets like Earth where life could develop probably are plentiful.

NASA’s Dew Kepler telescope and a lot of new research from the suddenly hot and competitive exoplanet field caused noticeable buzz at the meeting.Scientists are talking about being at “an incredible special place in history” and closer to answering the question. “Are we alone? For the first time, there’s an optimism that sometime in our lifetimes we’re going to get to the bottom of that,” said Simon Worden,an astronomer who heads NASA’s Ames Research Center. “If I were a betting man, which I am, I would bet we’re not alone.”

“These are big questions that reflect upon the meaning of the human race in the universe,” the director of the Vatican Observatory, the Rev. Jose Funes, said Wednesday in an interview at this week’s conference.

Worden told The Associated Press: “I would certainly expect in the next four or five years we’d have an Earth-sized planet in the habitable (可居住的) zone.”

What is very important in determining if we are alone in the universe?

A. Finding an Earth-like planet.       B. Orbiting other stars.

C. Developing new telescopes.      D. Finding more exoplanets.

What’s an exoplanet?

A. It’s a planet like Earth.        B. It’s a planet outside our solar system.

C. It’s a planet orbiting the sun.   D. It’s a planet where life have developed.

The underlined phrase “get to the bottom of” probably means “__________”.

A. understand fully    B. make full use of

C. search for         D. do more research on   

From the passage we can learn that __________.

A. an Earth-like planet has been found

B. it’s been proved we are not alone in the universe

C. Jose Funes has found the meaning of the human race in the universe

D. the discovery of an Earth-like planet could happen in the near future