在switch(expression)语句中,expression的数据类型不能是( )。 A.doubleB.char在switch(expression)语句中,expression的数据类型不能是( )。A.doubleB.charC.byteD.short

题目
在switch(expression)语句中,expression的数据类型不能是( )。 A.doubleB.char

在switch(expression)语句中,expression的数据类型不能是( )。

A.double

B.char

C.byte

D.short


相似考题
更多“在switch(expression)语句中,expression的数据类型不能是( )。 A.doubleB.char## ”相关问题
  • 第1题:

    switch语句中表达式(expression)的值不允许用的类型是

    A.byte

    B.int

    C.boolean

    D.char


    正确答案:C
    解析:switch语句用于多重选择,其参数可以是字节型、整型或字符型;而布尔型只有两个值(True、False),一般用于if语句。

  • 第2题:

    在JavaScript中,下列关于switch语句的描述中错误的是?()

    A.switch语句中default子句是可以省略的

    B.switch语句中case子句的语句序列中必须含有break语句

    C.switch语句中case子句后面的表达式可以是含有变量的整型表达式

    D.switch语句中case子句的个数不能过多


    答案:BCD

  • 第3题:

    在基于VBScript脚本的asp程序中,向页面中输出变量expression内容的指令是()

    • A、<%= expression %>
    • B、Dim expression
    • C、Printf expression
    • D、Write expression

    正确答案:A

  • 第4题:

    在switch(expression)语句中,expression的数据类型不能是()。

    • A、double
    • B、char
    • C、byte
    • D、short

    正确答案:A

  • 第5题:

    当()时,条件“expression1 XOR expression2”的值为真。

    • A、expression1为真而expression2为假
    • B、expression1为假而expression2为真
    • C、expression1和expression2均为真
    • D、a和b都对

    正确答案:D

  • 第6题:

    JAVA EE中,JSP表达式语言的语法是()。

    • A、{EL expression}
    • B、${EL expression}
    • C、&{EL expression}

    正确答案:B

  • 第7题:

    Which four statements correctly describe functions that are available in SQL? ()

    • A、INSTR returns the numeric position of a named character.
    • B、NVL2 returns the first non-null expression in the expression list.
    • C、TRUNCATE rounds the column, expression, or value to n decimal places.
    • D、DECODE translates an expression after comparing it to each search value.
    • E、TRIM trims the heading of trailing characters (or both) from a character string.
    • F、NVL compares two expressions and returns null if they are equal, or the first expression of they are not equal.
    • G、NULLIF compares twp expressions and returns null if they are equal, or the first expression if they are not equal.

    正确答案:A,D,E,G

  • 第8题:

    单选题
    JSP表达式语言可用于在网页上生成动态内容并代替JSP脚本元素,JSP表达式语言的语法是()。
    A

     {EL expression}

    B

     ${EL expression}

    C

     @{EL expression}

    D

     &{EL expression}


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

  • 第9题:

    多选题
    Which four statements correctly describe functions that are available in SQL? ()
    A

    INSTR returns the numeric position of a named character.

    B

    NVL2 returns the first non-null expression in the expression list.

    C

    TRUNCATE rounds the column, expression, or value to n decimal places.

    D

    DECODE translates an expression after comparing it to each search value.

    E

    TRIM trims the heading of trailing characters (or both) from a character string.

    F

    NVL compares two expressions and returns null if they are equal, or the first expression of they are not equal.

    G

    NULLIF compares twp expressions and returns null if they are equal, or the first expression if they are not equal.


    正确答案: G,C
    解析: 暂无解析

  • 第10题:

    多选题
    swtich(expression)语句中表达式的类型可以是()
    A

    String

    B

    char

    C

    short

    D

    double


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

  • 第11题:

    单选题
    The author mentions “Baring the teeth in a hostile way” in order to _____.
    A

    differentiate one possible meaning of a particular facial expression from other meanings of it

    B

    support Darwin’s theory of evolution

    C

    provide an example of a facial expression whose meaning is widely understood

    D

    contrast a facial expression that is easily understood with other facial expressions


    正确答案: C
    解析:
    第一段“Baring the teeth in a hostile way…may be a universe sign of anger.”“敌意地露出牙齿”是气愤的普遍表示,以此为例说明对表情的理解可能是通用的。

  • 第12题:

    单选题
    JAVA EE中,JSP表达式语言的语法是()。
    A

    {EL expression}

    B

    ${EL expression}

    C

    &{EL expression}


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

  • 第13题:

    makes nearly all the rich elements of human expression needed to establish a


    正确答案:
               

  • 第14题:

    JSP表达式语言可用于在网页上生成动态内容并代替JSP脚本元素,JSP表达式语言的语法是()。   

    • A、 {EL expression}
    • B、 ${EL expression}
    • C、 @{EL expression}
    • D、 &{EL expression}

    正确答案:B

  • 第15题:

    在Hibernate的Criteria查询中,Expression对象具体描述了查询条件,其对应SQL条件中的field>=value的方法是()。

    • A、Expression.eq
    • B、Expression.gt
    • C、Expression.ge
    • D、Expression.lt

    正确答案:C

  • 第16题:

    基因表达(gene expression)


    正确答案:储存在DNA中的遗传信息通过在细胞核内转录形成mRNA,并由mRNA在细胞质内经过翻译转变成具有生物活性的蛋白质分子的过程。

  • 第17题:

    在JavaScript中,下列哪段代码能够在1秒之后执行表达式expression?()

    • A、window.setTimeout(1000,expression);
    • B、window.setTimeout(expression,1);
    • C、window.setTimeout(1,expression);
    • D、window.setTimeout(expression,1000);

    正确答案:D

  • 第18题:

    Which three tasks can be performed using regular expression support in Oracle Database 10g?()

    • A、 it can be used to concatenate two strings.
    • B、 it can be used to find out the total length of the string.
    • C、 it can be used for string manipulation and searching operations.
    • D、 it can be used to format the output for a column or expression having string data.
    • E、 it can be used to find and replace operations for a column or expression having string data.

    正确答案:C,D,E

  • 第19题:

    单选题
    在switch(expression)语句中,expression的数据类型不能是()。
    A

    double

    B

    char

    C

    byte

    D

    short


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

  • 第20题:

    名词解释题
    基因表达(gene expression)

    正确答案: 储存在DNA中的遗传信息通过在细胞核内转录形成mRNA,并由mRNA在细胞质内经过翻译转变成具有生物活性的蛋白质分子的过程。
    解析: 暂无解析

  • 第21题:

    单选题
    当()时,条件“expression1 XOR expression2”的值为真。
    A

    expression1为真而expression2为假

    B

    expression1为假而expression2为真

    C

    expression1和expression2均为真

    D

    a和b都对


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

  • 第22题:

    单选题
    在JavaScript中,下列哪段代码能够在1秒之后执行表达式expression?()
    A

    window.setTimeout(1000,expression);

    B

    window.setTimeout(expression,1);

    C

    window.setTimeout(1,expression);

    D

    window.setTimeout(expression,1000);


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

  • 第23题:

    单选题
    下列可用作switch(expression)语句参数的是(  )。
    A

    String s

    B

    Integer i

    C

    boolean b

    D

    int i


    正确答案: D
    解析:
    表达式expression最终值的类型必须是int型或者是能自动转换成int型的类型,如short、byte、char。否则,必须进行强制类型转换。case子句中的值value必须是常量,而且所有case子句中的值是不同的。A项,是一个字符串常量;B项,Integer是一个类;C项,是一个布尔型变量。