下列选项中,()是正确的JSP表达式。
A: <;% String s="hello world";%>;
B: <;%=hello world";>;
C: <;%="hello world"%>;
D: <;%!"hello world"%>;
A: <;% String s="hello world";%>;
B: <;%=hello world";>;
C: <;%="hello world"%>;
D: <;%!"hello world"%>;
C
举一反三
- 8、下列选项中,()是正确的表达式。 A: <;% String s="hello world"; %>; B: <;%="hello world"; %>; C: <;% ="hello world" %>; D: <;%! "hello world" %>;
- 6) 下列选项中,( )是正确的表达式。 A: <% String s = “hello world ” ;%> B: <% = “hello world ” ;%> C: <% = “hello world ” %> D: <% ! “hello world ” %>
- 给定一个java程序的代码片断如下,运行后正确的输出结果是( )。String s=”hello, world”;String str = s.replace(“,” , ” ”);System.out.println(str); A: hello world; B: hello, world C: HELLO WORLD D: HELLO ,WORLD;
- 以下要输出“hello,world!”正确的是? A: String s=String.format("%1s%2s","hello","world");System.out.println(s); B: String s=String.format("%1$s,%2$s","hello","world");System.out.println(s); C: String s=String.format("%s,%s","hello","world");System.out.println(s); D: String s=String.format("%1s,%2s","hello","world");System.out.println(s);
- 在屏幕上打印输出“Hello World”,以下选项中正确的是( ) A: print(Hello World) B: print('Hello World') C: printf("Hello World") D: printf('Hello World')
内容
- 0
for s in "hello world": A: hello world B: world C: hello D: helloworld
- 1
若字符串 s = 'hello world',则语句 s.ljust(15, '.') 和 s.rjust(15) 的输出结果为? A: '....hello world'' hello world' B: 'hello world....'' hello world' C: 'hello world....''hello world ' D: 'hello world....''hello world'
- 2
以下程序段的输出结果是 。Char s[ ]=”Hello World!”;Strlwr(s);Printf(“%s”,s); A: hello world! B: HELLO world! C: hello WORLD! D: HELLO WORLD!
- 3
执行下列选项,输出了'Hello World'的选项是________。 A: print('Hello World\") B: print('\"Hello World\"') C: print('"HelloWorld"') D: print("'Hello World'")
- 4
11字符串测试1:下列字符串定义正确的是: A: String str="Hello World!"; B: Str str="Hello World!"; C: var str="Hello World!"; D: var str='Hello World!';