题目内容

程序解析:staticvoidMain(string[]args){strings1="AA";int d=678;strings2=s1+d;Console.WriteLine(" {0}", s2);//结果为_______________________char[]nm={'S','I','P','I','T','S'};stringNM=newstring(nm);Console.WriteLine(" {0}", NM);//结果为_______________________//方法返回字符串string[]sa={"AA","BB","CC","DD"};stringm=String.Join("-", sa);Console.WriteLine("Message: {0}", m);//结果为_______________________Console.ReadKey();}

查看答案
更多问题

string Str="A_B CD";Console.WriteLine("Length={0}",Str.Length);结果为______________.

程序解析:string s = "abcdefg";for (int i = 0; i < _______; i++){Console.WriteLine(s[i]);}上面横线上应该填写什么?

A. s.Length
B. string.Length
C. s.length
D. string.length

设int a,b;则执行以下语句后b的值为( )。a = 1; b = 10;do{ b-=a;a++;}while (b--<0);

A. 9
B. -2
C. -1
D. 8

执行语句: for (i=1;i++<4;); 后,变量i的值是( )。

A. 3
B. 4
C. 5
D. 不定值

答案查题题库