niusouti.com
更多“下列字符串的值不为True的是()。 ”相关问题
  • 第1题:

    假设C是B的子类,B是A的子类,cat是C类的一个对象,bird是B类的一个对象,下列哪个叙述是错误的?

    A.cat instanceof B的值是true。

    B.bird instanceof A的值是true。

    C.cat instanceof A的值是true。

    D.bird instanceof C的值是true。


    bird instanceof C的值是true

  • 第2题:

    下列哪个叙述是错误的?

    A."9dog".matches("ddog")的值是true。

    B."12hello567".replaceAll("[123456789]+","@")返回的字符串是@hello@。

    C.new Date(1000)对象含有的时间是公元后1000小时的时间。

    D."hellon"是正确的字符串常量。


    B

  • 第3题:

    假设C是B的子类,B是A的子类,cat是C类的一个对象,bird是B类的一个对象,下列哪个叙述是错误的?

    A.bird instanceof C的值是true。

    B.cat instanceof A的值是true。

    C.bird instanceof A的值是true。

    D.cat instanceof B的值是true


    第 1 行、第 2 行和第 3 行的声明都是正确的

  • 第4题:

    已知字符串s='hello',则表达式'he' not in 'hello'的值为:

    A.'True'

    B.'False'

    C.True

    D.False


    D

  • 第5题:

    已知x为非空字符串,那么表达式 ''.join(x.split()) == x 的值一定为True。


    错误