网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

‘hello’.replace(‘o’,‘l’)的返回值()

  • A、‘helll’
  • B、‘heooo’
  • C、‘helol’
  • D、‘heolo’

参考答案

更多 “‘hello’.replace(‘o’,‘l’)的返回值()A、‘helll’B、‘heooo’C、‘helol’D、‘heolo’” 相关考题
考题 假设有以下代码: String s="hello"; String t="hello"; char c[ ]={'h','e','l','l','o'}; 下列选项中,返回false的语句是______。A.s.equals(t);B.t.equals(c);C.s==t;D.t.equals(new String("hello"));

考题 Strings=hello;Stringt=hello;charc[]={’h’,’e’,’l’,’l’,’o’};Whichreturntrue?() A.s.equals(t);B.t.equals(c);C.s==t;D.t.equals(newString(hello));E.t==c;

考题 Whichexpressionswillevaluatetotrueifprecededbythefollowingcode?()Stringa=hello;Stringb=newString(a);Stringc=a;char[]d={’h’,’e’,’l’,’l’,’o’}; A.(a==Hello)B.(a==b)C.(a==c)D.a.equals(b)E.a.equals(d)

考题 不能把字符串"Hello!"赋给数组b的语句是______。A.char b[10]={'H', 'e',' l',' l', 'o','!'};B.char b[10]={'h', 'e', 'l', 'l', 'o','!'};C.char b[10];strcpy (b, "Hello!"};D.char b[10]="Hello!";

考题 下面不正确的字符赋值或赋初值的方式为()。A.chars[10]=”hello!”B.chars[10]={‘h’,‘e’,‘l’,‘l’,‘o’,‘!’}C.chars[10];s=”hello”D.char[]=”hello!”

考题 不能把字符串:Hello!赋给数组b的语句是( )。A.char b[10]={’H’,’e’,’l’,’l’,’o’,’!’};B.char b[10]; b="Hello!";C.char b[10]; strcpy(b,"Hello!");D.char b[10]="Hello!";

考题 不能把字符串“Hello!”赋给数组b的语句是________。A.char b[10]={'H','e','1','l','o','!'};B.chsr b[10]={'h','e','1','1','o','!'};C.char b[10];strcpy(b,"Hello!");D.chgr b[10]="Hello!";

考题 在C语言中,利用数组a存放字符串“Hello”,以下语句中正确的是()。Achara[10]=“Hello”;Bchara[10];a=“Hello”;Cchara[10]=‘Hello’;Dchara[10]={‘H’,’e’,’l’,’l’,’o’};

考题 Which expressions will evaluate to true if preceded by the following code?()   String a = "hello";   String b = new String(a);   String c = a;   char[] d = { ’h’, ’e’, ’l’, ’l’, ’o’ };  A、(a == "Hello")B、(a == b)C、(a == c)D、a.equals(b)E、a.equals(d)

考题 在C语言中,利用数组a存放字符串“Hello”,以下语句中正确的是()。A、chara[10]=“Hello”;B、chara[10];a=“Hello”;C、chara[10]=‘Hello’;D、chara[10]={‘H’,’e’,’l’,’l’,’o’};

考题 Sql server提供了一些字符串函数,以下说法错误的是()。A、selec tright(’hello’,3)返回值为:helB、selec tltrim(rtrim(’hello’))返回值为:hello(前后都无空格)C、selec treplace(’hello’,’e’,’o’)返回值为:holloD、selec tlen(’hello’)返回值为:5

考题 不能把字符串“Hello!”赋给数组b的语句是()A、char b[10]={’H’,’e’,’l’,’l’,’o’,’!’};B、char b[10];b="Hello!";C、char b[10];strcpy(b,"Hello!");D、char b[10]="Hello!";

考题 len(’hello’)的返回值是()A、2B、3C、4D、5

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

考题 ("%s"%"hello")的返回值是()A、helloB、%sC、%s%D、hello%

考题 python中,’hello.count(’l’)的返回值是()A、1B、2C、3D、4

考题 ‘world’.replace(‘w’,‘l’)的返回值是()A、worldB、lorldC、lowolD、wolld

考题 python中,’hellO’.lower()的返回值是A、helloB、HELLOC、HelloD、hellO

考题 String s= "hello";     String t = "hello";  char c[] = {’h’,’e’,’l’,’l’,’o’} ;     Which return true?()   A、 s.equals(t);B、 t.equals(c);C、 s==t;D、 t.equals(new String("hello"));E、 t==c;

考题 单选题在C语言中,利用数组a存放字符串“Hello”,以下语句中正确的是()。A chara[10]=“Hello”;B chara[10];a=“Hello”;C chara[10]=‘Hello’;D chara[10]={‘H’,’e’,’l’,’l’,’o’};

考题 单选题‘hello’.replace(‘o’,‘l’)的返回值()A ‘helll’B ‘heooo’C ‘helol’D ‘heolo’

考题 单选题python中,’hello.count(’l’)的返回值是()A 1B 2C 3D 4

考题 多选题Which expressions will evaluate to true if preceded by the following code?()   String a = "hello";   String b = new String(a);   String c = a;   char[] d = { ’h’, ’e’, ’l’, ’l’, ’o’ };A(a == Hello)B(a == b)C(a == c)Da.equals(b)Ea.equals(d)

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

考题 单选题Sql server提供了一些字符串函数,以下说法错误的是()。A selec tright(’hello’,3)返回值为:helB selec tltrim(rtrim(’hello’))返回值为:hello(前后都无空格)C selec treplace(’hello’,’e’,’o’)返回值为:holloD selec tlen(’hello’)返回值为:5

考题 单选题SQL server提供了一些字符串函数,以下说法错误的是()。A selectright(’hello’,3)返回值为:helB selectltrim(rtrim(’hello’))返回值为:hello(前后都无空格)C selectreplace(’hello’,’e’,’o’)返回值为:holloD selectlen(’hello’)返回值为:5

考题 多选题String s= "hello";     String t = "hello";  char c[] = {’h’,’e’,’l’,’l’,’o’} ;     Which return true?()As.equals(t);Bt.equals(c);Cs==t;Dt.equals(new String(hello));Et==c;