When I was in high school,most of my friend had bicycles. I hoped Icould also have it. One day I saw a second-hand bicycle, that was onlyone hundred yuan. I asded my father the money. But he said he couldonly give me half of the money. He should find the

题目

When I was in high school,most of my friend had bicycles. I hoped I

could also have it. One day I saw a second-hand bicycle, that was only

one hundred yuan. I asded my father the money. But he said he could

only give me half of the money. He should find the other half myself. So

I went to sell newspapers after the school. My father was pleased

if I showed him the money a month after. He gives me the other

fifty. You can imagine how much happy I was when I rode to school on

my own bicycle.


相似考题
参考答案和解析
正确答案:

When I was in high school,most of my friend had bicycles. I hoped I

  friends

could also have it. One day I saw a second-hand bicycle, that was only

 one                                                         which

one hundred yuan. I asded my father the money. But he said he could

   for

only give me half of the money. He should find the other half myself. So

 I

I went to sell newspapers after the school. My father was pleased

 

if I showed him the money a month after. He gives me the other

when                                                later     gave

fifty. You can imagine how much happy I was when I rode to school on

my own bicycle.

更多“When I was in high school,most of my friend had bicycles. I hoped I could also have i ”相关问题
  • 第1题:

    下列程序执行后的输出结果是______。

    A.hello

    B.hel

    C.hlo

    D.hlm void func1 (int i); void func2 (int i); char st[]="hello,friend!"; void func1(int i) { printf("%c",st[i]); if(i<3){ i+=2;func2(i); } } void func2 (int i) { printf("%c",st[i]); if(i<3){ i+=2;func1(i); } } main() { int i=0;func1(i);printf("\n");}


    正确答案:C

  • 第2题:

    下列程序执行后的输出结果是( )。 void func1 (int i); void func2(int i); char st[]="hello,friend!"; void func1 (int i) { printf("%c",st[i]); if(i<3){i+=2;func2(i);} } void func2(int i) { printf("%c",st[i]); if(i<3){i+=2;func1(i);}

    A.hello

    B.hel

    C.hol

    D.hlm


    正确答案:C

  • 第3题:

    下列程序执行后的输出结果是 void func1(int i); void func2(int i); char st[]="hello,friend!”; void func1(int i) { printf("%c",st[i]); if(i<3){i+=2;func2(i);}} void func2(int i) { printf("%c",st[i]); if(i<3){i+=2;func1(i);}} { int i=0;func1(i);printf("\n");}

    A.hello

    B.hel

    C.hlo

    D.hlm


    正确答案:C
    解析:函数调用的一般形式为:函数名(实参列表)首先调用函数funcl(0),输出st[0]=h。i值变为2,并调用函数func2(2),输出st[2]=l。i值此时变为4,又调用函数funcl(4),输出st[4]=0。此时i值大于等于3,执行完毕。因此,输出结果为hlo。注意:函数调用的一般格式以及函数的返回值。

  • 第4题:

    下列程序执行后的输出结果是 void funcl(int i); void func2(int i); char st[]="hello,friend!"; void funcl(int i) {printf("%c",st[i]); if(i<3){i+=2;func2(i);}} void func2(int i) { printf("%c",st[i]); if(i<3){i+=2;func1(i);}} main() {int i=

    A.hello

    B.hel

    C.hlo

    D.hlm


    正确答案:C

  • 第5题:

    下列程序 void func1(int i); void func2(int i) char st[]="hello,friend!"; void funcl(int i) { printf("%c",st[i]); if(i<3){i+=2;func2(i);} } void func2(int i) { printf("%c",st[i]); if(i<3){i+=2;funcl(i);} } main() { int i=0;funcl(i);printf("\n");} 执行后的输出结果是( )

    A.hello

    B.hel

    C.hlo

    D.hlrn


    正确答案:C

  • 第6题:

    下列程序执行后的输出结果是( )。 void funcl(int i); void func2(int i); char st[]="hello,friend!"; void funcl(int i) { printf("%C",st[i]); if(i<3) { i+=2;func2(i); ) } void func2(int i) {printf("%c",st[i]); if(i<3) { i+=2;func1(i); } } main() {int i=0;funcl(i);printf("\n"); )

    A.hlm

    B.hlo

    C.hello

    D.he1


    正确答案:B
    解析:本题定义了两个很相似的子函数互相调用,子函数首先输出st[i],然后判断i是否小于3,是的话就让i增2后调用另一个子函数。在主函数中只调用了一次funcl(0),funcl()输出st[0],然后调用func2(2),func2()输出st[2],又调用func1(4),此时i不小于3,所以funcl()只输出st[4]就返回了。故最终输结果为h1o,正确答案为B。