在空白处填写缺失的字符串,使程序能运行。( ) >>>”hello”+’ ‘hello world’
举一反三
- 选择填空, 使程序输出“ World”<?php$Hello="World";$a="Hello";echoa;?>$$hello$$
- 若字符串 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'
- 给定一个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;
- 执行下列代码后,新字符串中的结果是() A: HELLO WORLD! B: Hello World! C: HELLO WORLD1 D: hELLO wORLD!
- 下面代码的运行结果是( )。var str= "hello world" ;var str1=str.toUpperCase();var str2=str.toLowerCase() ;alert (str1) ;alert (str2) ; A: "HELLO WORLD","HELLO WORLD" B: "HELLO WORLD","hello world" C: "hello worl","HELLO WORLD" D: "hello world","hello world"