[单选题]

顺序执行下列程序语句后,则b的值是( )。 String a="Hello"; String b=a.substring(0,2);

A.Hello

B.hello

C.He

D.null

参考答案与解析:

相关试题

顺序执行下列程序语句后,则b的值是String a="Hello";String

[单选题]顺序执行下列程序语句后,则b的值是 String a="Hello"; String b=a.substring(0,2);A.HelloB.helloC.HeD.null

  • 查看答案
  • 顺序执行下列程序语句后,则b的值是 String a = "Hello"; St

    [单选题]顺序执行下列程序语句后,则b的值是 String a = "Hello"; String b = a.substring(0,2);A.HelloB.helloC.HelD.null

  • 查看答案
  • 顺序执行下列程序语句后,则b的值是()。String a=Hello:Strin

    [单选题]顺序执行下列程序语句后,则b的值是( )。 String a=Hello: String b=a.substring(0,2);A.HelloB.helloC.HelD.null

  • 查看答案
  • strcpy(str,"hello");

    [主观题]strcpy(str,"hello");

  • 查看答案
  • 执行以下语句后,str2的值是()。String str1="abc";Stri

    [单选题]执行以下语句后,str2的值是( )。 String str1="abc"; String str2=strconcat("cde");A.abcdeB.abccdeC.cdeabcD.edccba

  • 查看答案
  • 假设有以下代码:String s="hello";String t="hello

    [单选题]假设有以下代码: String s="hello"; String t="hello"; char c[ ]={'h','e','l','l','o'}; 下列选项中,返回false的语句是______。A.s.equals(t);B.t.equals(c);C.s==t;D.t.equals(new String("hello"));

  • 查看答案
  • 表达式"hello" instance of String返回的值是哪项?()

    [单选题]表达式"hello" instance of String返回的值是哪项?()A . trueB . falseC . 1D . 0

  • 查看答案
  • char str[ ]= "Hello"; char *p=str; int n

    [主观题]char str[ ]= "Hello";char *p=str;int n=10;sizeof(str)=( )sizeof(p)=( )sizeof(n)=( )void func(char str[100]){ }sizeof(str)=( )

  • 查看答案
  • char str[ ]= "Hello"; char *p=str; int n

    [主观题]char str[ ]= "Hello";char *p=str;int n=10;sizeof(str)=( )sizeof(p)=( )sizeof(n)=( )void func(char str[100]){ }sizeof(str)=( )

  • 查看答案
  • 执行语句“Write#1,234;-34.56,"hello";Date”后,相

    [单选题]执行语句“Write#1,234;-34.56,"hello";Date”后,相应文件内被写入()。A . "234","-34.56","hello","2001-08-03"B . 234-34.56hello2001-08-03C . 234,-34.56,hello,2001-08-03D . 234,-34.56,"hello",#2001-08-03#

  • 查看答案
  • 顺序执行下列程序语句后,则b的值是()。String a="Hello";Str