APP下载
首页
>
财会金融
>
2024年物联网知识题库
搜索
2024年物联网知识题库
题目内容
(
单选题
)
商品表的商品名属于()数据类型

A、 整型

B、 字符类型

C、 日期类型

D、 小数类型

答案:B

解析:

2024年物联网知识题库
已知变量ds 引用某个DataSet 对象,该DataSet 对象中已包含一个表名为“table1”的数据表。在Windows 窗体Form1 中,为了将变量名为dgvData 的DataGridView 控件绑定到数据表“table1”,可以使用代码( )。【选两项】
https://www.shititong.cn/cha-kan/shiti/0001eb89-18dd-d67e-c0b0-e819a112ab00.html
点击查看题目
关于C#语言的方法,下列叙述中正确的是()
https://www.shititong.cn/cha-kan/shiti/0001eb89-18dd-b78a-c0b0-e819a112ab00.html
点击查看题目
DataReader对象的()方法用于从查询结果中读取行。
https://www.shititong.cn/cha-kan/shiti/0001eb89-18dd-e246-c0b0-e819a112ab00.html
点击查看题目
在SELECT语句中,( )子句将创建一个新表,并插入源表中的被选记录。
https://www.shititong.cn/cha-kan/shiti/0001eb89-18dd-3b2c-c0b0-e819a112ab00.html
点击查看题目
下列哪个不是SQL Server的约束类型()
https://www.shititong.cn/cha-kan/shiti/0001eb89-18dd-6b0c-c0b0-e819a112ab00.html
点击查看题目
有如下 C#代码,其中定义了一个哈希表存放学生的学号和成绩,现在,为了避免输入时出现学号重复的现象,若出现重复现象,并让用户继续输入正确的学号,则在两处 划横线的地方分别加入的代码是() class Class1{ static void Main(string[]args){ Hashtable scores = new Hashtable(); string sid; int score; do{ Console.Write("输入学生学号:"); sid = Console.ReadLine(); score=int.Parse(Console.ReadLine()); if(__________){//在此处填写代码 Console.WriteLine("学号输入重复了!请重新输入。"); __________//此处填写代码 } else { score.Add(sid,score); } }while(sid!="xxxx"); Console.WriteLine("输入完毕"); } }
https://www.shititong.cn/cha-kan/shiti/0001eb89-18dc-fc8f-c0b0-e819a112ab00.html
点击查看题目
下列()属性用于设置多文档窗体中各个文档的图标
https://www.shititong.cn/cha-kan/shiti/0001eb89-18de-1eab-c0b0-e819a112ab00.html
点击查看题目
下面( )可以显示一个模式窗体
https://www.shititong.cn/cha-kan/shiti/0001eb89-18dc-dd29-c0b0-e819a112ab00.html
点击查看题目
在三层架构开发中,面向对象编程三大特征体现最强的是()
https://www.shititong.cn/cha-kan/shiti/0001eb89-18dd-c6e4-c0b0-e819a112ab00.html
点击查看题目
在ADO.NET中,用于执行SQL查询并返回结果的对象是()
https://www.shititong.cn/cha-kan/shiti/0001eb89-18de-2315-c0b0-e819a112ab00.html
点击查看题目
首页
>
财会金融
>
2024年物联网知识题库
题目内容
(
单选题
)
手机预览
2024年物联网知识题库

商品表的商品名属于()数据类型

A、 整型

B、 字符类型

C、 日期类型

D、 小数类型

答案:B

解析:

分享
2024年物联网知识题库
相关题目
已知变量ds 引用某个DataSet 对象,该DataSet 对象中已包含一个表名为“table1”的数据表。在Windows 窗体Form1 中,为了将变量名为dgvData 的DataGridView 控件绑定到数据表“table1”,可以使用代码( )。【选两项】

A. dgvData.DataSource = ds; dgvData.DataMember = ds.Tables["table1"];

B. dgvData.DataMember = ds;

C. dgvData.DataSource = new DataView(ds.Tables["table1"]);

D. dgvData.DataSource = ds.Tables["table1"]; dgvData.DataMember = ds;

解析:

https://www.shititong.cn/cha-kan/shiti/0001eb89-18dd-d67e-c0b0-e819a112ab00.html
点击查看答案
关于C#语言的方法,下列叙述中正确的是()

A. 方法的定义不能嵌套,但方法调用可以嵌套

B. 方法的定义可以嵌套,但方法调用不能嵌套

C. 方法的定义和调用都不能嵌套

D. 方法的定义和调用都可以嵌套

解析:

https://www.shititong.cn/cha-kan/shiti/0001eb89-18dd-b78a-c0b0-e819a112ab00.html
点击查看答案
DataReader对象的()方法用于从查询结果中读取行。

A. Next

B. Read

C. NextResult

D. Write

解析:

https://www.shititong.cn/cha-kan/shiti/0001eb89-18dd-e246-c0b0-e819a112ab00.html
点击查看答案
在SELECT语句中,( )子句将创建一个新表,并插入源表中的被选记录。

A. FROM

B. INTO

C. WHERE

D. SELECT

解析:

https://www.shititong.cn/cha-kan/shiti/0001eb89-18dd-3b2c-c0b0-e819a112ab00.html
点击查看答案
下列哪个不是SQL Server的约束类型()

A. 主键约束

B. 外键约束

C. 唯一约束

D. 默认约束

解析:

https://www.shititong.cn/cha-kan/shiti/0001eb89-18dd-6b0c-c0b0-e819a112ab00.html
点击查看答案
有如下 C#代码,其中定义了一个哈希表存放学生的学号和成绩,现在,为了避免输入时出现学号重复的现象,若出现重复现象,并让用户继续输入正确的学号,则在两处 划横线的地方分别加入的代码是() class Class1{ static void Main(string[]args){ Hashtable scores = new Hashtable(); string sid; int score; do{ Console.Write("输入学生学号:"); sid = Console.ReadLine(); score=int.Parse(Console.ReadLine()); if(__________){//在此处填写代码 Console.WriteLine("学号输入重复了!请重新输入。"); __________//此处填写代码 } else { score.Add(sid,score); } }while(sid!="xxxx"); Console.WriteLine("输入完毕"); } }

A. scores.ContainKey(sid)和 continue;

B. score.ContainsValue(sid)和 continue;

C. scores.ContainKey(sid)和 break;

D. scores.Contains(sid)和 continue;

解析:

https://www.shititong.cn/cha-kan/shiti/0001eb89-18dc-fc8f-c0b0-e819a112ab00.html
点击查看答案
下列()属性用于设置多文档窗体中各个文档的图标

A. TabControl

B. Document

C. MDIContainer

D. TabPage

解析:

https://www.shititong.cn/cha-kan/shiti/0001eb89-18de-1eab-c0b0-e819a112ab00.html
点击查看答案
下面( )可以显示一个模式窗体

A. Application.Run(new Form1())

B. form1.Show()

C. form1.ShowDialog()

D. MessageBox.Show()

解析:

https://www.shititong.cn/cha-kan/shiti/0001eb89-18dc-dd29-c0b0-e819a112ab00.html
点击查看答案
在三层架构开发中,面向对象编程三大特征体现最强的是()

A. 继承

B. 封装

C. 多态

D. 封装、继承

解析:

https://www.shititong.cn/cha-kan/shiti/0001eb89-18dd-c6e4-c0b0-e819a112ab00.html
点击查看答案
在ADO.NET中,用于执行SQL查询并返回结果的对象是()

A. DataSet

B. DataTable

C. DataView

D. DataReader

解析:

https://www.shititong.cn/cha-kan/shiti/0001eb89-18de-2315-c0b0-e819a112ab00.html
点击查看答案
试题通小程序
试题通app下载