更多“-- I'd like to book a flight to Beijing, please.-- _____.A. No, you can'tB. ”相关问题
  • 第1题:

    This is very important. You_____remember to shut down your computer every

    evenlng。

    A. ought

    B. need

    C. must

    D. can


    参考答案C

  • 第2题:

    —_______ I return the book to the library this week?— No, you _______.You can keep it until the end of this month.

    A.Must; needn’t

    B.Can; can’t

    C.May; mustn’t

    D.Can; mustn’t


    答案:A

  • 第3题:

    有以下程序

    #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。

  • 第4题:

    听力原文: If you want to invest money at short term, you've got several possibilities: first, a current account. This gives you the possibility of having all your money at your immediate disposal. It also entitles you to a cheque-book. Second, you've got a deposit account, which usually pays about 3. 5% interest, less tax. In that respect, a deposit account's a better investment than a current account. However, though you are entitled to a cheque-book, you can only withdraw up to a certain sum each month. For large amounts, you must give the bank a few months' notice. Finally, you have certificates of deposit. These pay in the order of 6.5% interest.

    28. How many possibilities are there for a customer to invest money at short term?

    29.With what kind of deposit can a customer NOT use a cheque-book?

    30.What is the interest rate for maintaining a deposit account?

    (28)

    A.2.

    B.5.

    C.4

    D.3


    正确答案:D
    解析:综合整篇录音原文,它提到first,...Second,...Finally,...因此推断出客户可采用三种方法进行短期投资。

  • 第5题:

    有以下程序: #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。

  • 第6题:

    试题32

    有以下程序

    #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])>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
    试题32分析
    strcmp(s1,s2)函数,如果s1>s2,结果大于0;如果s1=s2,结果等于0;如果s1<s2,结果小于0;strcpy(t, a[i])是将a[i]的值复制给t。
    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);}是将字符串按第一个字母的顺序进行从小到大的排列。所以最后的顺序为:“beijing”,“china”,“tiananmen”,“welcome”,“you”。
    试题32答案
    C