奥鹏易百

 找回密码
 立即注册

扫一扫,访问微社区

QQ登录

只需一步,快速开始

帮助中心知识拓展客服QQ 515224986
查看: 621|回复: 0

15秋学期奥鹏吉大《数据库应用技术》在线作业二

[复制链接]

2万

主题

27

回帖

6万

积分

管理员

积分
60146
发表于 2015-10-24 22:39:19 | 显示全部楼层 |阅读模式
扫码加微信
吉大15秋学期《数据库应用技术》在线作业二
试卷总分:100   测试时间:--
一、单选题(共25道试题,共100分。)
1.Given the code: EXEC SQL WITH most_cities AS ( SELECT b.id, b.name, a.cities FROM country a, staff b WHERE a.person = b.id AND cities > :threshold ) SELECT id, name, cities FROM most_cities INTO :id, :name, :cities WHERE cities IN (SELECT MAX(cities) FROM most_cities) Which of the following can reference MOST_CITIES
A. The current statement
B. Statements from any application
C. All statements within this application
D. All statements within the current unit of work
满分:4分
2.如果一个用户USER1被授予了表TAB上的CONTROL特权,如果需要限制该用户对表的存取,应使用以下哪条命令?
A. REVOKE ALL ON TAB TO USER1
B. REVOKE ALL ON TAB FROM USER1
C. REVOKE CONTROL ON TAB TO USER1
D. REVOKE CONTROL ON TAB FROM USER1
满分:4分
3.事务的原子性是指()
A. 事务中包含的所有操作要么都做,要么都不做
B. 事务一旦提交,对数据库的改变是永久性的
C. 一个事务内部的操作及使用的数据对并发的其他事务是隔离的
D. 事务必须是使数据库从一个一致性状态变到另一个一致性状态
满分:4分
4.Given the tables, the relationships and the statements: EMPLOYEE DEPT emp_num emp_name dept dept_id dept_name 1 Adams 1 1 Planning 2 Jones 1 2 Support 3 Smith 2 4 Williams 1 Relationship: employee.dept is a foreign key on dept.dept_id. stmt="INSERT INTO employee VALUES (5,'jones',3)"; EXEC SQL EXECUTE IMMEDIATE :stmt; stmt="INSERT INTO employee VALUES (6,'jhonson',2)'; EXEC SQL EXECUTE IMMEDIATE :stmt; How many rows are successfully inserted
A. One row is inserted in EMPLOYEE
B. No rows are inserted in EMPLOYEE
C. Two rows are inserted in EMPLOYEE
D. One row is inserted in DEPT and 2 rows are inserted in EMPLOYEE
满分:4分
5.下述关于数据库系统的正确叙述是()
A. 数据库中只存在数据项之间的联系
B. 数据库的数据项之间和记录之间都存在联系
C. 数据库的数据项之间无联系,记录之间存在联系
D. 数据库的数据项之间和记录之间都不存在联系
满分:4分
6.Given the expression: WITH most_cities AS ( SELECT b.id,b.name,a.cities FROM country a, staff b WHERE a.person = b.id AND cities > :threshold ) SELECT * FROM most_cities In which of the following does MOST_CITIES exist
A. user tables
B. server memory
C. user table space
D. system catalog tables
满分:4分
7.Given an ODBC/CLI program with a single connection, two threads and the following actions which complete successfully: Thread 1: INSERT INTO mytab VALUES (1) Thread 2: INSERT INTO mytab VALUES (2) Thread 1: COMMIT Thread 2: INSERT INTO mytab VALUES (3) Thread 1: ROLLBACK Thread 2: COMMIT How many records will be inserted and retained in the table MYTAB
A. 0
B. 1
C. 2
D. 3
满分:4分
8.If a stored procedure returns multiple rows, which of the following must the calling application use to access the result set
A. A cursor
B. A select statement
C. A declared temporary table
D. A table user-defined function
满分:4分
9.关系模型中的关系模式至少是()
A. 1NF
B. 2NF
C. 3NF
D. BCNF
满分:4分
10.数据库系统的并发控制的主要方法是采用()制。
A. 拒绝
B. 改为串行
C. 锁
D. 不加任何控制
满分:4分
11.Which of the following is a benefit of user-defined functions
A. Improves application concurrency
B. Improves blocking of result sets
C. Simplifies application maintenance
D. Reduces memory requirements on the server
满分:4分
12.Which of the following is used to run an embedded dynamic SQL UPDATE statement
A. UPDATE
B. . PREPARE
C. . DECLARE
D. . EXECUTE
满分:4分
13.实体是信息世界中的术语,与之对应的数据库术语为:()
A. 文件
B. 数据库
C. 字段
D. 记录
满分:4分
14.下面哪个工具提供了对文本、图象、音频、视频和XML文档等非传统数据类型的处理能力?
A. DB2 数据仓库中心
B. DB2数据链接管理器
C. DB2关系扩展器
D. DB2 OLAP Starter Kit
满分:4分
15.Given the following table: CREATE TABLE employee (name CHAR(10), salary DEC NOT NULL WITH DEFAULT) INSERT INTO employee (name, salary) VALUES ('SMITH', 30000) INSERT INTO employee (name) VALUES ('JONES') INSERT INTO employee (name, salary) VALUES ('ALI', 35000) Which of the following statements will retrieve more than one row
A. SELECT salary FROM employee WHERE salary IN (SELECT (salary/(SELECT SUM(salary) FROM employee)) FROM employee)
B. SELECT COALESCE(AVG(salary)) FROM employee
C. SELECT SUM(salary)/COUNT(*) FROM employee
D. SELECT salary/(SELECT SUM(salary) FROM employee) FROM employee
满分:4分
16.对于那些需要偶尔连接到公司数据上进行数据交换的用户可选择哪种版本的DB2?对于支持小规模的部门级应用,这些应用不需要存取驻留在OS/400、OS/390等平台上的远程数据库,则需要哪种级别的DB2 产品?
A. 企业版
B. 工作组版
C. 企业扩展版
D. 个人版
E. 卫星版
满分:4分
17.Given the following statements: EXEC SQL INSERT INTO employee VALUES(:new_emp, :new_name) EXEC SQL UPDATE company SET num_employees=num_employees+1 WHERE company_id=1 EXEC SQL COMMIT Which of the following can be added to the database so that the company table will still be updated without the need for the explicit UPDATE SQL statement
A. An INSERT trigger on COMPANY
B. An UPDATE trigger on COMPANY
C. An INSERT trigger on EMPLOYEE
D. An UPDATE trigger on EMPLOYEE
满分:4分
18.对于支持小规模的部门级应用,这些应用不需要存取驻留在OS/400、OS/390等平台上的远程数据库,则需要哪种级别的DB2 产品?
A. 企业版
B. 工作组版
C. 企业扩展版
D. 个人版
E. 卫星版
F. 微型版
满分:4分
19.创建一个DMS类型的表空间,可以使用以下哪两种文件系统对象作为容器?
A. 目录
B. 文件
C. DEVICE
满分:4分
20.发人员开发访问后台AIX上的DB2的windows程序,需要在windows开发平台上安装:
A. DB2运行时间客户端
B. DB2管理客户端
C. DB2应用程序开发客户端
D. DB2瘦客户端
满分:4分
21.执行下面两条SQL语句后: CREATE TABLE t1 ( c1 char(10) NOT NULL PRIMARY KEY, c2 int, c3 char(10), c4 char(10) NOT NULL, CONSTRAINT c4 UNIQUE (c1,c4) ) //自动创建索引 CREATE INDEX Index1 ON t1 (c2 ASC) 表t1上有几个索引?
A. 0
B. 1
C. 2
D. 3
E. 4
满分:4分
22.向基本表增加一个新列后,原有元组在该列上的值为什么?
A. TRUE
B. FALSE
C. 空值
D. 不确定
满分:4分
23.数据库系统的独立性是指():
A. 不会因为数据的变化而影响应用程序
B. 不会因为系统数据存储结构与数据逻辑结构的变化而影响应用程序
C. 不会因为存储策略的变化而影响存储结构
D. 不会因为某些存储结构的变化而影响其它的存储结构
满分:4分
24.如果想在数据导入的过程中创建表,应该
A. 使用IXF文件格式进行LOAD
B. 使用WSF文件格式进行LOAD
C. 使用IXF文件格式进行IMPORT
D. 使用WSF文件格式进行IMPORT
满分:4分
25.An application uses static SQL to connect to a remote DB2 server and inserts data into the CUST.ORDERS table on that remote DB2 server. To enable access to the remote DB2 server, FOO needs to create a package with default options so that BAR is the only non-administrative user that can use this package on the remote DB2 server. Which statement describes the privileges that FOO requires to accomplish this
A. FOO requires EXECUTE privilege on the package.
B. FOO requires the privilege to create the package on the remote DB2 server.
C. FOO requires EXECUTE privilege on the package and INSERT privilege on CUST.ORDERS.
D. FOO requires the privilege to create the package on the remote DB2 server and INSERT privilege on CUST.ORDERS.
满分:4分
奥鹏易百网www.openhelp100.com专业提供网络教育各高校作业资源。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|www.openhelp100.com ( 冀ICP备19026749号-1 )

GMT+8, 2024-5-21 03:43

Powered by openhelp100 X3.5

Copyright © 2001-2024 5u.studio.

快速回复 返回顶部 返回列表