It is the () on Case assignment that states that a Case assignor and a Case recipient should stay adjacent to each other.A、Case ConditionB、parameterC、Adjacent ConditionD、Adjacent Parameter

题目

It is the () on Case assignment that states that a Case assignor and a Case recipient should stay adjacent to each other.

  • A、Case Condition
  • B、parameter
  • C、Adjacent Condition
  • D、Adjacent Parameter

相似考题
参考答案和解析
正确答案:C
更多“It is the () on Case assignment that states that a Case assignor and a Case recipient should stay adjacent to each other.A、Case ConditionB、parameterC、Adjacent ConditionD、Adjacent Parameter”相关问题
  • 第1题:

    下列程序段的执行结果是( )。 a = 1: b = 0 Select Case a Case 1 Select Case b Case 0 Print "**0**" Case 1 Print "**1**" End Select Case 2 Print "**2**" End Select

    A. **0**

    B. **1**

    C. **2**

    D. 0


    参考答案:A

  • 第2题:

    假设X的值是5,则执行以下语句时,可得到的输出结果是ABCDEF的Select Case语句是 ( )

    A.Select Case X Case 10 To 1 Print“ABCDEF” End Select

    B.Select Case X Case Is>15,Is<5 Print"ABCDEF" End Select

    C.Selecl Case K Case Is>5,1,3,To 10 Print"ABCDEF" End Select

    D.Select Case X Case 1,3,Is>5 Print"ABCDEF" End Select


    正确答案:C
    解析:本题主要是对多分支结构 Select Case语句的考查。
      其中在Case子句中,表达式列表可以是多个表达式,每个表达式之间用逗号分割,表达式可以是如下形式x
      值、值1 To值2(注意:值1值2)、Is比较运算符值。执行时,首先计算Select Case语句中测试表达式的值。然后从每一个Case开始找满足该值的Case语句,遇到第一个表达式列表值与测试表达式相匹配的Case语句,则执行其后的语句序列,然后跳出Select Case结构。题中选项B、D中的表达式列表中都不包含有X的值,故可直接排除。选项A中的 Case子句后的表达式如果写成1 To 10,则可输出结果“ABCDEF”。选项D中,X的值在表达式3 To 10的范围内,故可以执行其后的语句序列,输出"ABCDEF'。

  • 第3题:

    下列Case语句中错误的是()。A.Case 0 To 10B.Case Is>10C.Case Is>10 And Is<50D.Case 3,5 Is>10

    下列Case语句中错误的是( )。

    A.Case 0 To 10

    B.Case Is>10

    C.Case Is>10 And Is<50

    D.Case 3,5 Is>10


    正确答案:C
    解析:本题考查Select Case语句的知识。Case语句的后面可以包含一个值、一组枚举值、一个值的范围以及比较运算符。但是当Case语句使用Is关键字的时候就不能再加入逻辑运算符,如And等。

  • 第4题:

    下列Case语句中错误的是

    A.Case0To10

    B.Case1S>10

    C.Case Is >10And Is<50

    D.Case3,5,Is>10


    正确答案:C

  • 第5题:

    以下语句正确的是:______。

    A.Select Case a Case b=1 Case “B” b=2 Case Else b=3 End Select

    B.Select Case a Case “A” b=1 Case “B” b=2 Case Default b=3 End Select

    C.Switch a Case “A” b=1 Case “B” b=2 Case Else b=3 End Switch

    D.Switch a Case “A” b=1 Case “B” b=2 Case Default b=3 End Select


    正确答案:A

  • 第6题:

    下列程序段的输出结果是【】。int n="c"; switch(n++) {default:printf("error"

    下列程序段的输出结果是【】。

    int n="c";

    switch(n++)

    {default:printf("error");break;

    case "a":

    case "A":

    case "b":

    case "B":printf("good");break;

    case "c":case"C":printf("pass");

    case "d":case"D":printf("warn");

    }


    正确答案:

    n++是在执行完其所在的语句后再加1,因此,在执行case的时候,n的值依然为'c',执行case'c'后面的语句,先打印出“pass”;在执行完case'c'后,未遇到break跳出switch,便接着执行下面的语句,又打印出warn。所以此题输出结果是passwarn。

  • 第7题:

    以下Case语句中错误的是( )。

    A.Case 0 To 10

    B.Case Is>10

    C.Case Is>10 And Is<50

    D.Case 3,5,Is>10


    正确答案:C

  • 第8题:

    ______ refers to the stowage of cargo in a block of two or more adjoining cargo holds with the cargo holds adjacent to the block of loaded cargo holds empty.

    A.Alternate hold loading condition

    B.Block hold loading condition

    C.Part hold loading condition

    D.Homogeneous hold loading condition


    正确答案:B

  • 第9题:

    The Unified Modeling Language is a standard graphical language for modeling object-oriented software()can show the behavior of systems in terms of how objects interact with each other.

    • A、Classdiagram
    • B、Componentdiagram
    • C、Sequencediagram
    • D、Use case diagram

    正确答案:C

  • 第10题:

    Inform the bridge and give the alarm at once ()the fire.

    • A、in case
    • B、case of
    • C、in case of
    • D、in the case of

    正确答案:C

  • 第11题:

    单选题
    Consider the recovery steps in each of the cases given below:  Case 1:  Shut down the database and perform a backup.  Restore all the data files.  Mount the database.  Recover the database.  Without applying all the redo log files, open the database using the RESETLOGS option.  Back up the database.  Case 2:  Shut down the database and perform a backup.  Restore only the data files of the tablespace where user error damaged the data.  Mount the database.  Recover the database.  Open the database with the RESETLOGS option.  Back up the database.  Case 3: Shut down the database  Restore the data files  Open the database  Perform recovery to the current point in time.  Which case has the correct steps for an incomplete recovery?()
    A

    only case 1

    B

    only case 2

    C

    only case 3

    D

    case 1 and 2

    E

    case 2 and 3

    F

    case 1 and 3

    G

    all cases: case 1, case 2 and case 3


    正确答案: B
    解析: 暂无解析

  • 第12题:

    单选题
    It is the () on Case assignment that states that a Case assignor and a Case recipient should stay adjacent to each other.
    A

    Case Condition

    B

    parameter

    C

    Adjacent Condition

    D

    Adjacent Parameter


    正确答案: A
    解析: 暂无解析

  • 第13题:

    以下程序的运行结果是( )。

    main()

    (int a=2,b=7,c=5;

    switch(a>0)

    {case 1:switch(b<0)

    {case 1:switch(");break;

    case 2:printf("!");break;

    }

    case 0:switch(c==5)

    {case 0:printf("*");break;

    case 1:printf("");break;

    case 2:printf("$");break;

    }

    default:printf ("&");

    }

    printf("\n");

    }


    正确答案:#&
    #& 解析:刚开始时,switch后面的表达式a>0为真(1),与case1匹配,然后执行case1后面的switch语句,表达式b0值为0,没有与其匹配的语句,返回外层,因为外层没有break语句,顺序执行case 0后面的switch语句,表达式“c==5”值为1,与其后面的case1匹配,因此输出#,遇到break返回外层,又因为外层没有break语句,顺序执行default后的语句,输出&。

  • 第14题:

    下列Case语句中错误的是()。A.Case0 To 10B.Case Is>10C.Case Is>10And Is<50D.Case 3,51s>10

    下列Case语句中错误的是( )。

    A.Case0 To 10

    B.Case Is>10

    C.Case Is>10And Is<50

    D.Case 3,51s>10


    正确答案:C
    解析:本题考查Select Case语句的知识。Case语句的后面可以包含一个值、一组枚举值、一个值的范围以及比较运算符。但是当Case语句使用Is关键字的时候就不能再加入逻辑运算符,如And等。

  • 第15题:

    下列程序段的执行结果为 m=1 n=1 Select Case m Case 1 Select Case n Case 0 print"A" Case 1 Print"B" End Select Case 2 Print"C" End Select

    A.A

    B.B

    C.C

    D.0


    正确答案:B
    解析:Select Case结构的一般格式为:
      Select Case expr
       [case expr1]
        [clause1]
       [ease expr2]
        [clause2]
       ……
       [ease Else]
       [clausen]
      End Select
      其中expr是测试表达式,如果满足expr n,就执行这条语句,然后退出。

  • 第16题:

    下列Case语句中错误的是()。A.Case 0 To 10B.Case Is>10C.Case Is>10 And Is<50D.Case 3.5,Is>10

    下列Case语句中错误的是( )。

    A.Case 0 To 10

    B.Case Is>10

    C.Case Is>10 And Is<50

    D.Case 3.5,Is>10


    正确答案:C
    解析:每个Case语句可以包含一个以上的值,一个值的范围,或是一个值的组合以及比较运算符,但Case语句使用了Is关键字时,不能加入逻辑运算符(AND),所以选项C的内容为错误的Case语句,此选项的正确答案应当为“Case10To50”。

  • 第17题:

    下面这段代码有错误么?

    switch (i){

    case(): 答://case()条件不能为空

    CaseZero();

    break;

    case 1:

    CaseOne();

    break;

    case 2:

    dufault;


    正确答案:
    答://wrong,格式不正确
             CaseTwo();
             break;
        }

  • 第18题:

    以下Case语句中错误的是 ______。

    A.Case 0 To 10

    B.Case Is>10

    C.Case Is>10 And Is<50

    D.Case 3,5,Is>10


    正确答案:C
    解析:SelectCase语句形式如下:SelectCase变量或表达式Case表达式列表1语句块1Case表达式列表2语句块2CaseElse语句块n+1EndSelect其中:“变量或表达式”可以是数值型或字符串表达式;“表达式列表”与“变量或表达式”的类型必须相同,可以是以下四种形式之一:①表达式②一组枚举表达式(用逗号分隔)⑧表达式1To表达式2④Is关系运算符表达式本题选项中的A、B和D符合上述四种形式之一,C选项不符合。

  • 第19题:

    Should any case or suspected case of quarantinable disease,or any case of eruptive disease or any death be discovered,the local Quarantine Officer must be ______ immediately.

    A.noted

    B.noticed

    C.notified

    D.notificated


    正确答案:C

  • 第20题:

    It is the () on Case assignment that states that a Case assignor and a Case recipient should stay adjacent to each other.

    ACase Condition

    Bparameter

    CAdjacent Condition

    DAdjacent Parameter


    C

  • 第21题:

    Consider the recovery steps in each of the cases given below:  Case 1:  Shut down the database and perform a backup.  Restore all the data files.  Mount the database.  Recover the database.  Without applying all the redo log files, open the database using the RESETLOGS option.  Back up the database.  Case 2:  Shut down the database and perform a backup.  Restore only the data files of the tablespace where user error damaged the data.  Mount the database.  Recover the database.  Open the database with the RESETLOGS option.  Back up the database.  Case 3: Shut down the database  Restore the data files  Open the database  Perform recovery to the current point in time.  Which case has the correct steps for an incomplete recovery?()

    • A、only case 1
    • B、only case 2
    • C、only case 3
    • D、case 1 and 2
    • E、case 2 and 3
    • F、case 1 and 3
    • G、all cases: case 1, case 2 and case 3

    正确答案:A

  • 第22题:

    SG-OSS系统的CASE管理根据数据内容区分为()

    • A、模型CASE管理
    • B、实时数据CASE管理
    • C、方式数据CASE管理
    • D、图形CASE管理

    正确答案:A,C,D

  • 第23题:

    单选题
    64. A in this case    B in any case    C in no case    D in some cases
    A

    A

    B

    B

    C

    C

    D

    D


    正确答案: B
    解析: