第一章 单元测试

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

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

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

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

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

6、单选题:
选择要执行操作的数据库,应该使用( )命令
选项:
A:GO
B:USE
C:SP _EXEC
D:EXEC
答案: 【USE

7、单选题:
目前()数据库已经逐步淘汰了网状数据库和层次数据库,成为当今最为流行的商用数据库系统
选项:
A:分布
B:关系
C:面向对象
D:sql
答案: 【关系

8、单选题:
长期存储在计算机内的有组织,可共享的数据集合是()
选项:
A:数据库系统
B:文件组织
C:数据库
D:数据库管理系统
答案: 【数据库

9、单选题:
数据库系统不仅包括数据库本身,还要包括相应的硬件,软件和()
选项:
A:相关的计算机系统
B:数据库管理系统
C:数据库应用系统
D:各类相关人员
答案: 【各类相关人员

10、单选题:
考生到相关网站查看各高校历年的录取分数来辅助决策报考学校和专业,这个过程中考生获得________服务。
选项:
A:信息
B:咨询
C:字符
D:数字
答案: 【信息

第二章 单元测试

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

2、单选题:
不允许在数据表中弹出重复列值的约束是通过()来实现的
选项:
A:Default
B:Foreign Dey
C:Primary Key或Unique
D:Check
答案: 【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:insert into
B:update…set
C:delete
D:select
答案: 【update…set

6、单选题:
向student数据表中添加部分记录的命令是()
选项:
A:insert into
B:insert into student values()
C:insert into student() values()
D:insert into student ... values...
答案: 【insert into student() values()

7、单选题:
向student表中添加某一列address的命令是()。
选项:
A:insert into address varchar(50)
B:insert into student address varchar(50)
C:add address varchar(50)
D:alter table student add address varchar(50)
答案: 【alter table student add address varchar(50)

8、单选题:
将student表中的列address的数据类型中的字节大小改为varchar(50),使用的语句命令是()。
选项:
A:alter address varchar(50)
B:alter table student alter address varchar(50)
C:update student set
D:add address varchar(50)
答案: 【alter table student alter address varchar(50)

9、单选题:
修改student表中学号为2015001的学生的姓名为“张三”,语句是()。
选项:
A:update student set sname=”张三” where sid=’2015001’
B:alter table student alter sname=’ 张三’ where sid=’2015001’
C:update student set sname=’ 张三’ where sid=’2015001’
D:update student set sname=张三 where sid=’2015001’
答案: 【update student set sname=’ 张三’ where sid=’2015001’

10、单选题:
向学生表student中插入记录:学号(sid)、姓名(sname)、所在系(depart),值为(‘2016001‘,’张红‘,’管理系‘),语句是()
选项:
A:insert into student(sid,sname,depart) values(‘2016001’,’张红’,’管理系’,‘计应’)
B:insert into student values(‘2016001’,’张红’,’管理系’)
C:insert into student(sid,sname,depart) values(‘2016001’,’张红’,’管理系’)
D:insert into student (sno,sname,depart) values(‘2016001’,’张红’,’管理系’)
答案: 【insert into student(sid,sname,depart) values(‘2016001’,’张红’,’管理系’)

发表评论

电子邮件地址不会被公开。 必填项已用*标注