下列程序运行的结果为为()
A: hello!andabc
B: hello!anddbc
C: hi!andabc
D: hi!anddbc
A: hello!andabc
B: hello!anddbc
C: hi!andabc
D: hi!anddbc
B
举一反三
- 已知x = 'hello world,hello jinan,hello python',那么执行语句x = x.replace('hello','hi',1)之后,x的值为____________。 A: 'hi world,hello jinan,hello python' B: 'hello world,hello jinan,hello python' C: 'hi world,hi jinan,hello python' D: 'hi world,hi jinan,hi python'
- 已知字符串 x = 'hello Python',那么执行语句 x.replace('hello', 'hi') 之后,x的值为____________。 A: 'hi Python' B: 'hello Python' C: hello Python D: hi Python
- 程序段如下:var x = new Boolean(false);if (x) { alert('hi');}var y = Boolean(0);if (y) { alert('hello');}最后的显示结果是( ) A: hi B: hi hello C: hello D: 不显示
- 您好,请问到那里?翻译为:() A: hi,whereareyou? B: hello,whereareyougoingto? C: hello,whereareyougoing? D: hi,wheretogo?
- 已知字符串 x = 'hello world',那么执行语句 x.replace('hello', 'hi') 之后,x的值为()
内容
- 0
正则化表达"hi|hello"
- 1
以下程序运行结果为()。 A: $A[0]=Hello$A[1]=Hello$A[2]=$A[3]=$A[4]= B: $A[0]=Hello$A[1]=Hello$A[2]=Hello$A[3]= $A[4]= C: $A[0]=$A[1]=$A[2]= $A[3]= $A[4]= D: 程序运行提示错误
- 2
属于问候语的是 A: hello B: hi C: howareyou
- 3
初次见面的正式问候语是_____________。 A: Hi! B: Howdoyoudo? C: Hello!
- 4
下列语句运行结果为True的是 A: ”H” in “hello” B: “h” not in “hello” C: ”h” in “hello” D: 以上都正确