• 2022-06-10
    设S="Chinese dream my dream",T="dream",则index(S, T, 3 )的值为______。
    A: 0
    B: 9
    C: 18
    D: 9和18
  • B

    内容

    • 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="文字"}