更多“If I hadn’t listened to you, I would _have made_ (make) such a silly mistake. ”相关问题
  • 第1题:

    It was raining outside, I ( ) one umbrella and walked out.

    A.picked up

    B.take up

    C.have

    D.make


    参考答案: A

  • 第2题:

    you had some trouble finding where i live, ______?

    A、didn’t you

    B、hadn’t you

    C、do I

    D、don’I


    正确答案:A

  • 第3题:

    有以下程序: #include<stdio.h> #include<string.h> main( ) { char a[5][10]={"china","beijing","you","tiananmen","welcome"); int i,j;char t[10]; for(i=0;i<4;i++) for(j=i+1;j<5;j++) if(strcmp(a[i],a[j]>O) {strcpy(t,a[i]);strepy(a[i],a[j]);strcpy(a[j],t)}; puts(a[3]); } 程序运行后的输出结果是( )。

    A.beijing

    B.china

    C.welcome

    D.tiananmen


    正确答案:C
    此题涉及数组,字符串的比较和字符串的复制,因为for循环中控制数组中的i和j,即控制了其中的数组中的元素,而stremp是比较字符串的大小,如果stremp(a[i],a[j])>0,则将字符串进行复制,所以答案为C。

  • 第4题:

    I () roast leg of lamb, please.

    A、will like

    B、would like

    C、would


    正确答案:B

  • 第5题:

    I’d rather you ____ come here to see the film. It’s really long and boring.

    A. haven’t

    B. don’t

    C. didn’t

    D. hadn’t


    正确答案:C

  • 第6题:

    有以下程序

    #nclude<stdio.h>

    #include<string.h>

    main()

    { char a[5][10]={"china","beijing","you","tiananmen","welcome"};

    int i,j;char t[10];

    for(i=0;i<4;i++)

    for(j=i+1;j<5;j++)

    if(strcmp(a[i],a[j])>0)

    {strcpy(t,a[i]);strcpy(a[i],a[j]);strcpy(a[j],t);}

    puts(a[3]);

    }

    程序运行后的输出结果是

    A.beijing

    B.china

    C.welcome

    D.tiananmen


    正确答案:C
    解析:本题中程序的主要实现的功能是对这个字符数组,对其中的字符串按照首字母的从小到大排序,排完序后a[5][10]为{"beijing","china","tiananmen","welcome","you"},所以a[3]为welcome。