更多“A: Where()you last week? B: I()in Alabama. ”相关问题
  • 第1题:

    template int SeqList::Insert(Type &x, int i) {

    if (i<0 || i>last+1 || last== MaxSize-1) return 0;

    else {

    Last++;

    for(int j=last;j

    data[i]=x;

    return 1;

    }

    }

    对于结点类型为SeqList的顺序表,以上算法的功能为:()


    正确答案::顺序表插入算法

  • 第2题:

    You'd better make a mark __________you have any questions while you are reading the passage.

    A.at which
    B.in where
    C.in the place
    D.where

    答案:D
    解析:
    考查状语从句。句意为“如果你在读文章的时候有任何问题,最好在有问题的地方做个标记”,是一个表示位置的状语,where=in which,故选D。

  • 第3题:

    2、在顺序结构表示的线性表中,删除第i个元素(数组下标为i-1),需要把后面的所有元素都往前挪一位,相应的语句是: for (___________ ) PtrL->Data[j-1]=PtrL->Data[j]; 其中空缺部分的内容应该是

    A.j = i; j< = PtrL->Last; j++

    B.j =PtrL->Last; j>= i; j--

    C.j = i-1; j< = PtrL->Last; j++

    D.j =PtrL->Last; j>= i-1; j--


    O(n)

  • 第4题:

    You'd better make a mark__________ you have any questions while you are reading thepassage.

    A.at which
    B.in where
    C.in the place
    D.where

    答案:D
    解析:
    考查状语从句。句意为“当你读文章时,最好在有问题的地方做个标记”。从句中缺少表示地点的状语,所以用where引导地点状语从句。而当where引导定语从句时,要有先行词place,加上at可以改成“You’d better make a mark at the place where you have any questions”。

  • 第5题:

    You′d better make a mark__________ youhave any questions while you are reading the passage.

    A.at which
    B.in where
    C.in the place
    D.where

    答案:D
    解析:
    考查状语从句。句意为。当你读文章时,最好在有问题的地方做个标记”,从句中缺少表示地点的状语,所以用where引导地点状语从句:而当where引导定语从句时.要有先行词place,加上at可以改成“You’d better make a mark at the place where you have any questions”。

  • 第6题:

    在顺序结构表示的线性表中,删除第i个元素(数组下标为i-1),需要把后面的所有元素都往前挪一位,相应的语句是: for (___________ ) PtrL->Data[j-1]=PtrL->Data[j]; 其中空缺部分的内容应该是

    A.j = i; j< = PtrL->Last; j++

    B.j =PtrL->Last; j>= i; j--

    C.j = i-1; j< = PtrL->Last; j++

    D.j =PtrL->Last; j>= i-1; j--


    O(n)