单项选择题
以下代码输出结果是()string str="abcd";int result=str.IndexOf("a");Console.WriteLine(result)
A.-1
B.0
C.1
D.代码编写有误,不能运行
点击查看答案
相关考题
-
单项选择题
以下代码输出结果是()string str ="abcd";int result =str.LastIndexOf("d");Console.WriteLine(result)
A.4
B.3
C.0
D.代码编写有误,不能运行 -
单项选择题
以下代码输出结果是()string str ="aaa@qq.com";string[]result =str.Split(’@’);Console.WriteLine(result[0]);
A.aaa
B.qq.com
C.qq
D.代码编写有误,不能运行 -
单项选择题
以下不属于DataGridView常用的属性是()
A.Name
B.DataSouce
C.Rows
D.Count
