模块一 单元测试

1、 问题:关系数据库是若干( )的集合
选项:
A:表
B:视图
C:列
D:行
答案: 【


2、 问题:( )是位于用户和操作系统之间的一层数据管理软件,数据库在建立、使用和维护时由其统一管理、统一控制。
选项:
A:dbms
B:db
C:dbs
D:dba
答案: 【
dbms

3、 问题:在SQL Server中,不是对象的是( )
选项:
A:用户
B:数据
C:表
D:数据类型
答案: 【
数据类型

4、 问题:SQL SERVER数据库类型有很多种,其中用来存储整数的叫做整数型数据类型,下列不是整数型数据类型的是:( )
选项:
A:bigint
B:int
C:smallint
D:char
答案: 【
char

5、 问题:在下面职工信息表和部门信息表中,职工号和部门号分别是主关键字。
职工表(职工号、职工名、部门号、职务、工资)
部门表(部门号、部门名、部门人数据、工资总数)
在这两个表中,只有一个外关键字,是( )
选项:
A:职工信息表的“职工号”
B:职工信息表的“部门号”
C:部门表的“部门号”
D:部门表的“部门名”
答案: 【
职工信息表的“部门号”

模块二 单元测试

1、 问题:SQL Server的字符型系统数据类型主要包括( )。
选项:
A:int、money、char
B:char、varchar、text
C:datetime、binary、int
D:varchar、int、char
答案: 【
char、varchar、text

2、 问题:不允许在数据表中弹出重复列值的约束是通过( )来实现的。
选项:
A:check
B:default
C:foreign Dey
D:primary Key或Unique
答案: 【
primary Key或Unique

3、 问题:新建一个查询分析器窗口,首先打开的是一个默认的( )数据库。
选项:
A:tempt
B:master
C:当前操作的数据库
D:studentmanager
答案: 【
master

4、 问题:从student表中删除一列address的命令是( )。
选项:
A:alter table student drop column address
B:alter table student remove column address
C:drop column address from student
D:delete address from student
答案: 【
drop column address from student

5、 问题:在数据表中更新记录的命令是( )。
选项:
A:select
B:insert into
C:update…set
D:delete
答案: 【
update…set

模块三 单元测试

1、 问题:查询年龄在20到23岁之间的学生的信息,所使用的语法命令为( )
选项:
A:select * from student where age between 20 to 23
B:select * from student where age between 20 and 23
C:select * from student where age from 20 to 23
D:select * from student
答案: 【
select * from student where age between 20 and 23

2、 问题:查询不在信息技术系,机电工程系和管理系的学生的信息使用的语法命令( )
选项:
A:select * from student where not depart=’ 信息技术系’ and depart=’ 机电工程系’ and depart=’ 管理系’
B:select * from student where depart not in(’信息技术系’,’机电工程系’,’管理系’)
C:select * from student where not depart=”信息技术系”and depart=”机电工程系”and depart=”管理系”
D:select * from student where not depart in(”信息技术系”,”机电工程系”,”管理系”)
答案: 【
select * from student where depart not in(’信息技术系’,’机电工程系’,’管理系’)

本门课程剩余章节答案为付费内容
本文章不含期末不含主观题!!
本文章不含期末不含主观题!!
支付后可长期查看
有疑问请添加客服QQ 2356025045反馈
如遇卡顿看不了请换个浏览器即可打开
请看清楚了再购买哦,电子资源购买后不支持退款哦