The double quotes in "Good Morning!" are part of the string.
错误
举一反三
- 中国大学MOOC: $string=A;$string=$string x 4;$string.=B;$string.=A;$find_B=index($string,B);执行以上语句后,$find_B=?
- 已知String对象s='good',运行语句System.out.println(s.concat('morning'));
- What is any sequence of characters enclosed in double quotes? A: string literal B: array C: character array D: data structure
- $string="A";$string=$string x 4;$string.="B";$string.="A";$find_B=index($string,"B");执行以上语句后,$find_B=? A: 4 B: 3 C: 2 D: 1
- 中国大学MOOC: 下列程序段的运行结果是() String str1 = “Good”; String str2 = “morning”; String str3 = str1.toLowerCase()+str2.toUpperCase(); System.out.println(str3);
内容
- 0
下列程序段的运行结果是() String str1 = “Good”; String str2 = “morning”; String str3 = str1.toLowerCase()+str2.toUpperCase(); System.out.println(str3); A: Goodmorning B: gOODmORNING C: goodmorning D: goodMORNING
- 1
下列程序段的运行结果是() String str1 = “Good”; String str2 = “morning”; String str3 = str1.toLowerCase()+str2.toUpperCase(); System.out.println(str3); A: Goodmorning B: gOODmORNING C: goodmorning D: goodMORNING
- 2
已知 formatter = 'good {0}'.format,那么表达式 list(map(formatter, ['morning']))的值为___________ A: ['good morning'] B: ['good'] C: good morning' D: good'
- 3
They often say"_______" to greet each other in the morning. A: in the morning B: Good morning C: Good afternoon D: Good evening
- 4
strpos("good morning","morning")的返回值是