举一反三
- 6) 下列选项中,( )是正确的表达式。 A: <% String s = “hello world ” ;%> B: <% = “hello world ” ;%> C: <% = “hello world ” %> D: <% ! “hello world ” %>
- 执行下列语句后的显示结果是什么? >>> world=”world” >>> print “hello”+ world A: helloworld B: “hello”world C: hello world D: 语法错
- 4.执行下列语句后的显示结果是什么______? A: t;>> world=”world” B: t;>> print “hello”+ world C: helloworld D: “hello”world E: hello world F: 语法错误
- 语句print("hello<br/>world ")输出的是:(<br/>) A: ("hello<br/>world ") B: "hello<br/>world " C: hello<br/>world D: 运行结果出错
- 选择填空, 使程序输出“ World”<?php$Hello="World";$a="Hello";echoa;?>$$hello$$
内容
- 0
语句“echo str_replace("world","Peter","Hello world!");”的运行结果是
- 1
echo str_word_count("Hello world!");的输出结果是什么?
- 2
关于Python字符串操作的描述,错误的是 A: >>> "hellohellohello"/3<br/>输出结果是"hello" B: >>> "hello"*2<br/>输出结构是'hellohello' C: >>> 'hello' + 1<br/>输出结果是<br/>Traceback<br/>(most recent call last):<br/>File<br/>"", line 1, in <br/>"hello"<br/>+ 1<br/>TypeError:<br/>must be str, not int D: >>> "hello" - "world"<br/>输出结果是<br/>Traceback<br/>(most recent call last):<br/>File<br/>"", line 1, in <br/>"hello"<br/>- "world"<br/>TypeError:<br/>unsupported operand type(s) for -: 'str' and 'str'
- 3
下列语句或语句序列中有语法错误的是_____。 A: int i,j; for( i=0, j=0; i<5; i++, j--)cout<<"Hello World!"; B: for(10)cout<<"Hello World!"; C: int i; for( i=0; i<5; i+=2) cout<<"Hello World!"; D: int i=0; for( ; i<5; i++) cout<<"Hello World!";
- 4
语句“”的输出结果为。 A: Hello B: World C: Hello World D: HelloWorld