You have an SQL query that takes one minute to execute. You use the following code segment to execute theSQL query asynchronously.Dim ar As IAsyncResult = cmd.BeginExecuteReader()You need to execute a method named DoWork() that takes one second to run whi

题目

You have an SQL query that takes one minute to execute. You use the following code segment to execute theSQL query asynchronously.Dim ar As IAsyncResult = cmd.BeginExecuteReader()You need to execute a method named DoWork() that takes one second to run while the SQL query is executing.DoWork() must run as many times as possible while the SQL query is executing.Which code segment should you use?()

A.

B.

C.

D.


相似考题
更多“You have an SQL query that takes one minute to execute. You use the following code segment ”相关问题
  • 第1题:

    9. _______you _______ stay at home today?

    A. Do ; have to

    B. Must; have to

    C. Have; to

    D. Do ; must


    正确答案:A
    9.A【解析】have to的疑问形式借助动词do来实现, must的疑问形式是将must提到主语之前,另外还需注意have to与must不能重复使用。故答案为A。

  • 第2题:

    You’re going to have a quiz ( )by another two in the ( )month.

    A. followed,followed

    B. followed,following

    C. following,followed

    D. following,following


    参考答案:B

  • 第3题:

    You look() What()you()?

    Atire;did;do

    Btiring;have;done

    Ctired;do;do

    Dtired;have;been doing


    D

  • 第4题:

    —Where____you____lunch?

    —Athome.Therewasnoschoollunch

    A.did;have

    B.are;having

    C.will;have

    D.do;have


    正确答案:A

  • 第5题:

    – David, you've been losing your temper over nothing lately.– ( ).

    A. I haven’t been getting much sleep either

    B. You’d better not push yourself too hard, or you’ll get sick

    C. I’m sorry. I shouldn’t have blown up like that

    D. You’d better do exercises regularly


    正确答案:C

  • 第6题:

    你最好控制一下上网聊天的时间。(汉译英)

    A.You'd better set a limit for your online chat time.

    B.You'd better set a limit on your online chat time.

    C.You'd better set a limit on your online chatting time.

    D.You'd better set a limit for your online chatting time.


    You'd better set a limit on your online chatting time.