A: 0
B: 9
C: 18
D: 9和18
举一反三
- 设S="Chinese dream my dream",T="dream",则index(S, T, 3 )的值为______。 A: 0 B: 9 C: 18 D: 9和18
- 中国大学MOOC: 设S=Chinese dream my dream,T=dream,则index(S, T, 3 )的值为______。
- 已知变量s的值是一个字符串,以下能用于判断s这个字符串是否以字符“0”开头,且以字符“9”结尾的表达式为: A: s[0]==0 and s[9]==9 B: s[0]="0" or s[-1]="9" C: s[0]=="0" and s[-1]=="9" D: s[0]=="0" or s[-1]=="9"
- 下面的哪些程序片断可能导致错误?( )。 A: String s="Gone with the wind";String t;t=s[3]+"one"; B: String s="Gone with the wind";String t="good";String k=s+t; C: String s="Gone with the wind";String standard=s.toUpperCase(); D: String s="home directory";String t=s-"directory";
- 下列定义字体对象ft的语句中,正确的是___________。 A: Dim ft As New Font("隶书", 18) B: Dim ft As Font = New Font("隶书", 18) C: Dim ft As Font = ("隶书", 18) D: Dim ft("隶书", 18) As Font E: Dim ft = Font ("隶书", 18)
内容
- 0
下面语句中,正确的是( )。 A: printf("%c ","student"); B: printf("%c ","c"); C: printf("%s ",&a); D: printf("%s ","hello");
- 1
以下程序段中,不能正确赋字符串(编译时系统会提示错误)的是( )。 A: char s[10]="abcdefg"; B: char t[]="abcdefg"; C: char s[10];s="abcdefg"; D: char s[10];strcpy(s,"abcdefg");
- 2
执行以下代码,运行结果defsplit(s):returns.split("t")s="Happybirthdaytoyou!"print(split(s)) A: 运行出错 B: ["&quot","Happy&quot",null,"&quot","birthday&quot",null,"&quot","to&quot",null,"&quot","you!&quot"] C: ["Happybir","&nbsp","hday","&nbsp","oyou!"] D: ["Happy","&nbsp","bir","&nbsp","hday","&nbsp","o","&nbsp","you!"]
- 3
print(len("123四五六") )结果为: A: 6 B: 9 C: 3 D: 12
- 4
id值为ul1的ul中有5个li标签,通过jQuery方法给每个li添加title属性,下列书写正确的是哪个( ) A: $(" B: ul1 li").each(function(index)){this.title="文字"} C: $(" D: ul1 li").not(function(index)){this.title="文字"} E: $(" F: ul1 li").add(function(index)){this.title="文字"} G: $(" H: ul1 li").(function(index)){this.title="文字"}