niusouti.com

3、已知字符串s='hello',则表达式'he' not in 'hello'的值为:A.'True'B.'False'C.TrueD.False

题目

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

A.'True'

B.'False'

C.True

D.False


相似考题
更多“3、已知字符串s='hello',则表达式'he' not in 'hello'的值为:”相关问题
  • 第1题:

    表达式Mid(“Hello”,2,3)的值是()。

    A、“ll”

    B、“llo”

    C、“ell”

    D、“ello”


    参考答案:C

  • 第2题:

    假定s被定义为指针类型char *的变量,初始指向的字符串为"Hello world!",若要使变量p指向s所指向的字符串,则p应定义为()。

    Achar *p=s;

    Bchar *p=&s;

    Cchar *p;p=*s;

    Dchar *p; p=&s;


    A

  • 第3题:

    已知x=’hello world.’,那么表达式x.find(’x’)和x.rfind(’x’)的值都为()。


    正确答案:-1

  • 第4题:

    欲为字符串S1输入”Hello World!”,其语句是()。


    正确答案:gets(S1)

  • 第5题:

    表达式’Hello world’.lower()的值为()。


    正确答案:'hello world'

  • 第6题:

    表达式’hello world,hello wevery one’.replace(’hello’,’hi’)的值为()。


    正确答案:'hi world, hiw every one'

  • 第7题:

    下列长度为5的字符串是()。

    • A、"hello"
    • B、"HELLO"
    • C、"12345"
    • D、""

    正确答案:A,B,C

  • 第8题:

    单选题
    假定s被定义为指针类型char *的变量,初始指向的字符串为"Hello world!",若要使变量p指向s所指向的字符串,则p应定义为()。
    A

    char *p=s;

    B

    char *p=&s;

    C

    char *p;p=*s;

    D

    char *p; p=&s;


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

  • 第9题:

    单选题
    Sql server提供了一些字符串函数,以下说法错误的是()。
    A

    selec tright(’hello’,3)返回值为:hel

    B

    selec tltrim(rtrim(’hello’))返回值为:hello(前后都无空格)

    C

    selec treplace(’hello’,’e’,’o’)返回值为:hollo

    D

    selec tlen(’hello’)返回值为:5


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

  • 第10题:

    填空题
    已知字符串x=’helloworld’,那么执行语句x.replace(’hello’,’hi’)之后,x的值为()。

    正确答案: 'hello world'
    解析: 暂无解析

  • 第11题:

    填空题
    表达式’Hello world’.upper()的值为()。

    正确答案: HELLO WORLD
    解析: 暂无解析

  • 第12题:

    填空题
    表达式’hello world,hello wevery one’.replace(’hello’,’hi’)的值为()。

    正确答案: 'hi world, hiw every one'
    解析: 暂无解析

  • 第13题:

    表达式”hello”instanceofString返回的值是哪项?()

    A.true

    B.false

    C.1

    D.0

    E.hello


    参考答案:A

  • 第14题:

    下列选项中,()是正确的表达式。 

    • A、<% String s = “hello world ” ;%>  
    • B、<% = “hello world ” ;%> 
    • C、<% = “hello world ” %>  
    • D、<% ! “hello world ” %>

    正确答案:C

  • 第15题:

    已知字符串x=’helloworld’,那么执行语句x.replace(’hello’,’hi’)之后,x的值为()。


    正确答案:'hello world'

  • 第16题:

    表达式’Hello world’.swapcase().swapcase()的值为。


    正确答案:’Helloworld’

  • 第17题:

    表达式’Hello world.I like Python.’.rfind(’python’)的值为()。


    正确答案:-1

  • 第18题:

    ("%s"%"hello")的返回值是()

    • A、hello
    • B、%s
    • C、%s%
    • D、hello%

    正确答案:A

  • 第19题:

    表达式”hello” instanceof String返回的值是哪项?()

    • A、 true
    • B、 false
    • C、 1
    • D、 0
    • E、 hello

    正确答案:A

  • 第20题:

    单选题
    表达式”hello” instanceof String返回的值是哪项?()
    A

     true

    B

     false

    C

     1

    D

     0

    E

     hello


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

  • 第21题:

    单选题
    SQL server提供了一些字符串函数,以下说法错误的是()。
    A

    selectright(’hello’,3)返回值为:hel

    B

    selectltrim(rtrim(’hello’))返回值为:hello(前后都无空格)

    C

    selectreplace(’hello’,’e’,’o’)返回值为:hollo

    D

    selectlen(’hello’)返回值为:5


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

  • 第22题:

    填空题
    表达式len(’hello world’[100:])的值为()。

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

  • 第23题:

    填空题
    已知x=’hello world.’,那么表达式x.find(’x’)和x.rfind(’x’)的值都为()。

    正确答案: -1
    解析: 暂无解析

  • 第24题:

    单选题
    下列选项中,()是正确的表达式。
    A

    <% String s = “hello world ” ;%>  

    B

    <% = “hello world ” ;%> 

    C

    <% = “hello world ” %>  

    D

    <% ! “hello world ” %>


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