以下程序的输出结果是( )。 long fun(int n) long s;

题型:单项选择题

问题:

以下程序的输出结果是( )。
long fun(int n)
long s;
if(n==1||n==2)s=2;
else s=n-fun(n-1);
return s:

void main()
printf("%1d\n",fun(3));

A.1
B.2
C.3
D.4

考点:计算机等级考试JAVA二级JAVA笔试
题型:单项选择题

阅读理解。

       Miss Hong: Attention, please. As you know, Mr. Smith, our headmaster won five million yuan in the

  lottery yesterday. So today I will give you an interesting topic. I'm sure you will like it. very much. That

   is What would you do if you had much money?"

       All the students:  Wow!

       Student A: If I had a lot of money, I would buy my parents a new house with a big garden, because

  they are living in an old house.

      Student B: If I had a lot of money, I would give it to charities like Bill Gates.

      Student C: If I had a lot of money, the first thing I would do is... to buy a computer for myself.

      Miss Hong: Why?

      Student C: Because I like playing computer games and my parents don't allow me to play.

      Student D:I'm going to be a doctor as my father when I grow up. So I will give some of the money to

  medical research.

      Student E: There are lots of poor children who can't go to school because they have little money.

  They are in great need of money. So if I had a lot of money, I would give some to the Hope Project.

       Miss Hong: That's great !  Please go on !

       Student F: I love money. Money makes the mare go.  I would like to buy everything I like.

       Student D: I disagree. Gold will not buy everything. You can buy a house, but you can't buy a home.

   You can buy a bed, but you can't buy a good sleep.

      Miss Hong: Well done, my children. No matter what you would do if you had a lot of money, just

  remember two sentences: No pains, no gains. Wisdom in the mind is better than mone in the hand.

1. The sentence underlined means "_____" in Chinese.

A. 金钱就是一切

B. 金钱不是万能的

C. 有钱能使鬼推磨

2. _____ would give some money to the Hope Project if he had a lot of money.

A. Student A          

B. Student C

C. Student E          

D. Student D

3. Student C would buy a computer first if he had a lot of money because  _____.

A. he likes playing computer games

B. he wants to make his parents angry

C. his parents don't allow him to play

D. A&C 

4. How many students are mentioned in the conversation?

A. Six.    

B. Five.    

C. Four.    

D. Three.

5. Miss Hong thinks that _____ thought is great.

A. Student E's    

B. Student F's

C. Student A's    

D. Student B's

题型:单项选择题

下列各项均是影响沙漠植物的环境因素,其中起主要作用的是(  )

A.阳光

B.水分

C.温度

D.空气

题型:单项选择题

下列物质中不溶于水,但能溶于稀硫酸的是(  )

A.银

B.三氧化硫

C.氧化铁

D.醋酸

题型:单项选择题

目前医用磁共振成像利用的是___原子,其原子结构只有一个_____及一个______。

题型:单项选择题

帮助卧床老人修剪趾甲时,应将老人裤子往上卷过踝部以上。

更多题库