As soon as I ( ) the tools, I shall begin with the work.A、have been havingB、haveC、do haveD、am having

题目
As soon as I ( ) the tools, I shall begin with the work.

A、have been having

B、have

C、do have

D、am having


相似考题
更多“As soon as I ( ) the tools, I shall begin with the work. ”相关问题
  • 第1题:

    –– Jack: Mommy, when will we have dinner? I'm starving.

    –– Mother:————————? We have to wait for daddy.

    A: Quickly, honey

    B: OK, honey

    C: Soon, honey

    D: All right, honey


    参考答案:C

  • 第2题:

    WhichofthefollowingisthecommandthatinstallsRecoveryConsoleontheBootmenufromtheWindows2000CD?()

    A.DRIVELETTER:\TOOLS\RCINSTALL.EXE

    B.DRIVELETTER:\i386\WINNT32.EXE/RECCONS

    C.DRIVELETTER:\i386\CMDCONS.EXE

    D.DRIVELETTER:\i386\WINNT32.EXE/CMDCONS


    参考答案:D

  • 第3题:

    阅读下列说明和C代码,回答下列问题。[说明]?? ?采用归并排序对n个元素进行递增排序时,首先将n个元素的数组分成各含n/2个元素的两个子数组,然后用归并排序对两个子数组进行递归排序,最后合并两个已经排序的子数组得到排序结果。?? ?下面的C代码是对上述归并算法的实现,其中的常量和变量说明如下:?? ?arr:待排序数组?? ?P,q,r:一个子数组的位置从P到q,另一个子数组的位置从q+1到r?? ?begin,end:待排序数组的起止位量?? ?left,right:临时存放待合并的两个子数组?? ?n1,n2:两个子数组的长度?? ?i,j,k:循环变量?? ?mid:临耐变量?? ?[C代码]?? ?#inciude<stdio, h>?? ?#include<stdlib, h>?? ?Define MAX 65536?? ?void merge(int arr [ ],int p,int q,int r) {?? ?int * left,* right;?? ?int n1,n2,I,j,k;?? ?n1=q-p+1;?? ?n2=r-q;?? ?If(left=(int *)malloc((n1+1) * sizeof(int)))=NULL) {?? ?Perror( "malloc error" );?? ?exit11?? ?}?? ?If((right = (int *)malloc((n2+1) * sizeof(int)))=NULL)?? ?Perror("malloc error");?? ?exit 11;?? ?}?? ?for(i=0;i<n1;i++){?? ?left[i]=arr [p+i];?? ?}?? ?left[i]=MAX;?? ?for(i=0;i<n2;i++){?? ?right[i]=arr[q+i+1]?? ?}?? ?right[i]=MAX;?? ?i=0;j=0;?? ?For(k=p;______;k++){?? ?If(left[i]>right[j] {?? ?______?? ?j++;?? ?}else{?? ?arr[k1]=left[i];?? ?i++;?? ?}?? ?}?? ?}?? ?Void merge Sort(int arr[ ], int begin, int end) {?? ?int mid;?? ?if(______){?? ?mid=(begin + end)/2;?? ?merge Sort(arr,begin,mid);?? ?______;?? ?Merge(arr,begin,mid,end);?? ?}?? ?}


    答案:
    解析:
    11、k<=r arr[k]=right[j] begin<end mergeSort(arr,mid+1,end)[解析] 首先,函数void merge(int arr[],int P,int q,int r)的意思是:对子数组arr[P…q]和子数组arr[q+L..r]进行合并。因此第一空为k<=q;由于是采用归并排序对n个元素进行递增排序,所以第二空是将left[i]和right[j]的小者存放到arr[k]中去,即arr[k]=right[j]:当数组长度为1时,停止递归,因为此时该数组有序,则第三空为begin<end,即数组至少有两个元素才进行递归。合并了begin到mid之间的元素,继续合并mid+1到end之间的元素,则第四空为mergeSort(arr,mid+1,end)。12、分治 T(n)=2T(n/2)+O(n) O(nlogn) O(n)[解析] 归并算法实际上就是将数组一直往下分割,直到分割到由一个元素组成的n个子数组,再往上两两归并。 将数组进行分割需要logN步,因为每次都是讲数组分割成两半(2x=N,x=logN)。 合并N个元素,需要进行N步,也就是O(N),则总的时间复杂度为O(NlogN)。 合并过程中,使用了”个中间变量存储,left=(int*)malloc((n1+1)*sizeof(int))。所以空间复杂度为O(n)。 推导递归式:假设n个元素进行归并排序需要T(n),可以将其分割成两个分别有n/2个元素的数组分别进行归并,也就是2T(n/2),在将这两个合并,需要O(n)的时间复杂度,则推导公式为T(n)=2T(n/2)+O(n)。13、n1+n2    

  • 第4题:

    Ben: Mommy, when will we have dinner? I’m starving.

    Mother: _______.We have to wait for daddy.

    A: Quickly, honey

    B: All right, honey

    C: Soon, honey

    D: O.K., honey


    参考答案:C

  • 第5题:

    YouarethenetworkadministratorandneedtoinstallWindows2000Professionalon35computers.Youneedtoinstalltherecoveryconsoletheinstallations.YoucreateadistributionfolderonaserverandcopyWindows2000ProfessionalSupportfoldertothedistributionfolder.YoucreateanetworkbootfloppytoinstallW2kProfromthedistributionfolder.Youneedtomakeabatchfile,whichthenetworkbootfloppywillusetostarttheinstallation.Whichcommandwouldyouincludeinthebatchfile:()

    A.Winnt32/cmd:z:\i386\winnt\a

    B.Winnt32/cmd:z:\support\tools\setup.exe

    C.Winnt/e:z:\i386\winnt32/cmdcons

    D.Winnt/e:z:\support\tools\setup.exe


    参考答案:C

    Youshouldusethecommandwinnt/e:z:\i386\winnt32/cmdconswhere/eisusedtoSpecifyacommandtobeexecutedattheendofGUI-modeSetupand/cmdconsparameteraddstotheoperatingsystemselectionscreenaRecoveryConsoleoptionforrepairingafailedinstallation. WINNT32setsuporupgradesWindows2000ServerorWindows2000Professional.Youcanrunthewinnt32commandataWindows95,Windows98,orWindowsNTcommandpromptbutnotfromthenetworkbootfloppy.Choice Winnt/e:z:\support\tools\setup.execommandcanbeusedtoinstallthewindows2000professionalsupporttoolsnottherecoveryconsole.

  • 第6题:

    下列代码的输出结果是1 2 3 4 5 6 7 8 () <% int[] a=new int[] {1,2,3,4,5,6,7,8}; pageContext.setAttribute("a",a); %> <c:forEach items="${a }" var="i" begin="3" end="5" step="2" > ${i } </c:forEach>


    结果是None,因为函数func()的默认返回值是None。