单项选择题在ADO.NET中,为了执行一个存储过程,需要把Command对象的CommandType属性设置为()。

A.CommandType.StoredProcedure
B.CommandType.TableDirect
C.CommandType.Text
D.CommandType.Sql


您可能感兴趣的试卷

你可能感兴趣的试题

1.单项选择题

以下类MyClass的属性count属于()属性。

A.只读
B.只写
C.可读写
D.不可读不可写

2.单项选择题如果一个菜单项的Text属性为&File,该菜单项的默认Name属性值为()。

A.fileMenu
B.fileMenuStrip
C.fileMenuItem
D.fileToolStripMenuItem

3.单项选择题下列哪个关系运算符表示相等?()

A.=
B.==
C.!=
D.<>

6.单项选择题让控件不可用的属性是以下哪一个()。

A.AllowDrop
B.Enabled
C.Bounds
D.Visible

7.单项选择题对于在代码中经常要用到的且不会改变的值,可以将其声明为常量。如圆周率PI始终为3.14。现在要声明一个名为PI的圆周率常量,下面哪段代码是正确的()。

A.const  float  PI;PI=3.14f;
B.const  float  PI=3.14f;
C.float  const  PI;PI=3.14f;
D.float  const  PI=3.14f;

8.单项选择题异常是在什么时候发生的()。

A.编写程序时
B.编译时
C.运行时
D.最终用户发出请求时

9.单项选择题C#中,新建一字符串变量str,并将字符串"Tom’sLivingRoom"保存到串中,则应该使用下列哪条语句()。

A.string  str="Tom\’s  Living  Room";
B.string  str="Tom’s  Living  Room";
C.string  str("Tom’s  Living  Room");
D.string  str("Tom"s  Living  Room");

10.单项选择题下列哪种控件是一种用来存放其他控件的容器?()

A.TextBox
B.GroupBox
C.RadioButton
D.Label