单项选择题在C#中创建类的实例需要使用的关键字是()

A.this
B.base
C.new
D.as


您可能感兴趣的试卷

你可能感兴趣的试题

2.单项选择题下面()代码可以显示一个消息框。

A.Dialog.Show();
B.MessageBox.Show();
C.Form.Show();
D.Form.ShowDialog();

3.单项选择题窗体中有一个年龄文本框txtAge,下面()代码可以获得文本框中的年龄值。

A.int age=txtAge;
B.int age=txtAgE.Text;
C.int age=Convert.ToInt32(txtAgE.;
D.int age=int.Parse(txtAgE.Text);

5.单项选择题

下面代码运行后,s的值是()。

A.20
B.12
C.10
D.6

6.单项选择题

如果x=35,y=80,下面代码的输出结果是()。

A.危险
B.报警
C.报警  安全
D.危险  安全

8.单项选择题引用ListBox(列表框)当前被选中的数据项应使用()语句

A.ListBox1.Items[ListBox1.Items.Count]
B.ListBox1.Items[ListBox1.SelectedIndex]
C.ListBox1.Items[ListBox1.Items.Count-1]
D.ListBox1.Items[ListBox1.SelectedIndex-1]

9.单项选择题引用ListBox(列表框)最后一个数据项应使用()语句

A.ListBox1.Items[ListBox1.Items.Count]
B.ListBox1.Items[ListBox1.SelectedIndex]
C.ListBox1.Items[ListBox1.Items.Count-1]
D.ListBox1.Items[ListBox1.SelectedIndex-1]