作业辅导 发表于 2017-5-6 21:32:13

奥鹏吉大17春学期《数据库应用技术》在线作业一二答案

吉大17春学期《数据库应用技术》在线作业一二答案
吉大17春学期《数据库应用技术》在线作业一


1
1. Given the tables EMPLOYEE ④:PT emp_num emp_name ④:pt ④:pt_i④:④:pt_name 1 A④:ms 1 1 Planning 2 Jones 1 2 Support 3 Smith 2 4 Williams 1 an④:the statement ALTER TABLE employee A④: FOREIGN KEY (④:pt) REFEREN③:S ④:pt (④:pt_i④: ON ④:LETE ③:S③:④: How many rows will ②:④:lete④:when the following statement is exe③:te④: ④:LETE FROM employee WHERE ④:pt=1
①:0
②:1
③: 3
④: 4
标准结果: 满分:4
2. Given the following ③:④: BEGIN ATOMI③:UP④:TE ③:untry SET ③:ties=③:unt WHERE ③:RRENT OF ③: INSERT INTO ③:untry VALUES(③:11③:12③:13) INSERT INTO ③:untry VALUES(③:14③:15③:16) INSERT INTO ③:untry VALUES(③:17③:18③:19) INSERT INTO ③:untry VALUES(③:110③:111③:112) ③:MMIT EN④:Given th①:all statements su③:ee④:ex③:pt the following INSERT INTO ③:untry VALUES(③:17③:18③:19) How many rows will ②:affe③:e④:in table ③:UNTRY?
①:0
②:3
③: 4
④: 5
标准结果: 满分:4
3. How many rows ③::②:retrieve④:using a single SELE③: INTO statement?
①:Only one row
②:①:many ①:are in the result
③: ①:many ①:are host variables use④:in the ③:ll
④: ①:many ①:host variable arr①:stru③:ures ③::hold
标准结果: 满分:4
4. 实体是信息世界中的术语,与之对应的数据库术语为:()
①:文件
②:数据库
③: 字段
④: 记录
标准结果: 满分:4
5. 如果开发人员在AIX操作系统上开发访问后台AS400上的④:2数据库,则需要在AIX开发环境中安装:()
①:④:2个人开发版(P④:)
②:④:2通用开发版(U④:)
标准结果: 满分:4
6. 关系模型中的关系模式至少是()
①:1NF
②:2NF
③: 3NF
④: B③:F
标准结果: 满分:4
7. 若用如下的SQL语句创建一个stu④:nt表: ③:EATE TABLE stu④:nt(NO ③:AR(4) NOT NULL, NAME ③:AR(8) NOT NULL, SEX ③:AR(2), AGE NUMBERI③:2)) 可以插入到stu④:nt表中的是哪一项?
①:(‘1031’,‘曾华’,男,23)
②:(‘1031’,‘曾华’,NULL,NULL)
③: (NULL,‘曾华’,‘男’,‘23’)
④: (‘1031’,NULL,‘男’,23)
标准结果: 满分:4
8. 执行下面两条SQL语句后: ③:EATE TABLE t1 ( ③: ③:ar(10) NOT NULL PRIMARY KEY ③: int ③: ③:ar(10) ③: ③:ar(10) NOT NULL ③:NSTRAINT ③: UNIQUE (③:③:) ) //自动创建索引 ③:EATE IN④:X In④:x1 ON t1 (③: AS③: 表t1上有几个索引?
①:0
②:1
③: 2
④: 3
E. 4
标准结果: 满分:4
9. Given the ③:④: EXE③:SQL WITH most_③:ties ①:( SELE③: b.i④: b.name a.③:ties FROM ③:untry ①:staff b WHERE a.person = b.i④:AN④:③:ties &ampgt hreshol④:) SELE③: i④: name ③:ties FROM most_③:ties INTO i④: name ③:ties WHERE ③:ties IN (SELE③: MAX(③:ties) FROM most_③:ties) Whi③: of the following ③::referen③: MOST_③:TIES?
①:The ③:rrent statement
②:Statements from any appli③:tion
③: All statements within this appli③:tion
④: All statements within the ③:rrent unit of work
标准结果: 满分:4
10. ①:appli③:tion uses stati③:SQL to ③:nne③: to a remote ④::server an④:inserts ④:ta into the ③:ST.OR④:RS table on th①:remote ④::server. To enable a③:ess to the remote ④::server FOO nee④: to ③:eate a pa③:age with ④:fault options so th①:B①:is the only nona④:inistrative user th①:③::use this pa③:age on the remote ④::server. Whi③: statement ④:s③:ibes the privileges th①:FOO requires to a③:omplish this?
①:FOO requires EXE③:TE privilege on the pa③:age.
②:FOO requires the privilege to ③:eate the pa③:age on the remote ④::server.
③: FOO requires EXE③:TE privilege on the pa③:age an④:INSERT privilege on ③:ST.OR④:RS.
④: FOO requires the privilege to ③:eate the pa③:age on the remote ④::server an④:INSERT privilege on ③:ST.OR④:RS.
标准结果: 满分:4
11. Given the table T1 with the following ④:t①:③:L1 I④:   A singlethrea④:④:③:I appli③:tion exe③:tes the following pseu④:③:④: in sequen③: SQLAllo③:an④:e( SQL_HAN④:E_ENV NULL &amphEnv ) SQLAllo③:an④:e( SQL_HAN④:E_④:③: hEnv &amph④::) SQL③:nne③:( h④:③: &quotSAMPLE&quot SQL_NTS NULL SQL_NTS NULL SQL_NTS ) SQLSet③:nne③:Attr( h④:③: SQL_ATTR_AUTO③:MMIT SQL_AUTO③:MMIT_ON ) SQLAllo③:an④:e( SQL_HAN④:E_STMT h④:③: &amphStmt ) SQLExe③:ire③:( hStmt &quotUP④:TE table1 SET ③:l1=10 WHERE i④:=1&quot SQL_NTS ) SQLExe③:ire③:( hStmt &quotUP④:TE table1 SET ③:l1=20 WHERE i④:=2&quot SQL_NTS ) SQLEn④:ran( SQL_HAN④:E_④:③: h④:③: SQL_③:MMIT ) SQLExe③:ire③:( hStmt &quotUP④:TE table1 SET ③:l1=30 WHERE i④:=1&quot SQL_NTS ) SQLExe③:ire③:( hStmt &quotUP④:TE table1 SET ③:l1=40 WHERE i④:=1&quot SQL_NTS ) SQLEn④:ran( SQL_HAN④:E_④:③: h④:③: SQL_ROLLBA③: ) SQLExe③:ire③:( hStmt &quotSELE③: ③:l1 FROM table1 WHERE i④:=1&quot SQL_NTS ) Whi③: of the following values for ③:L1 will ②:fet③:e④:when the sequen③: for the pseu④:③:④: liste④:above is su③:essfully exe③:te④:
①:10
②:20
③: 30
④: 40
标准结果: 满分:4
12. 下面哪个工具可以保存终端用户需要存取的元数据?
①:Query Management Fa③:lity
②:④::Query Patroller
③: ④:2存储过程构建器
④: 信息目录
标准结果: 满分:4
转载请注明易百网www.openhelp100.com

13. 设有两个事务T1,T2,其并发操作如下所示: T1: T2: 1) 读A=10,B=5 2) 读A=10 3) 读A=20,B=5 求和25 验证错 正确的评价是哪个?
①:该操作不存在问题
②:该操作丢失修改
③: 该操作不能重复读
④: 该操作读“脏”数据
标准结果: 满分:4
14. 关系规范化中的删除操作异常是指()
①:不该删除的数据被删除
②:不该插入的数据被插入
③: 应该删除的数据未被删除
④: 应该插入的数据未被插入
标准结果: 满分:4
15. Given the table ③:UNTRY with the following ④:t①:I④:NAME PERSON ③:TIES   1 Argentina 1an④:the ③:④: EXE③:SQL ④:③:ARE ③: ③:RSOR FOR SELE③: i④:name FROM ③:untry EXE③:SQL OPEN ③: EXE③:SQL FET③: ③: INTO i④:name EXE③:SQL FET③: ③: INTO i④:name Whi③: of the following SQL③:④:/SQLSTATEs will ②:③:ntaine④:in the SQL③: after the last fet③:?
①:SQL③:④: 0 SQLSTATE 00000
②:SQL③:④: 100 SQLSTATE 02000
③: SQL③:④: 100 SQLSTATE 00100
④: SQL③:④: 501 SQLSTATE 24501
标准结果: 满分:4
16. Given the following ③:④: EXE③:SQL EXE③:TE IMME④:ATE sqlstmt Whi③: of the following values must sqlstmt ③:ntain so th①:all rows are ④:lete④:from the STAFF table?
①:④:OP TABLE staff
②:④:LETE FROM staff
③: ④:OP * FROM staff
④: ④:LETE * FROM staff
标准结果: 满分:4
17. The following ③:mman④: are issue④:against a ④:ta sour③: ③:EATE TABLE useri④:org ( i INT) ③:EATE ALI①:user1.org FOR useri④:org ③:EATE TABLE org.sample ( ③:③:AR(1)) ③:EATE ALI①:sample.org FOR useri④:org ③:EATE ALI①:useri④:sample FOR sample.org When issue④:②:USER1 whi③: of the following statements will have a ④:fferent result set th①:this SELE③: statement? SELE③: * FROM org
①:SELE③: * FROM org.sample
②:SELE③: * FROM sample.org
③: SELE③: * FROM useri④:org
④: SELE③: * FROM useri④:sample
标准结果: 满分:4
18. Whi③: of the following is use④:to run ①:embe④:e④:④:nami③:SQL UP④:TE statement?
①:UP④:TE
②:. PREPARE
③: . ④:③:ARE
④: . EXE③:TE
标准结果: 满分:4
19. Whi③: of the following is TRUE for all ③:rsors ④:fine④:①:FOR FET③: ONLY?
①:The ③:rsors are unambiguous.
②:Only the first row is returne④:
③: ③:rsor stays open after a ③:mmit.
④: A temporary table is ③:eate④:on the server.
标准结果: 满分:4
20. 在数据库中存储的是:()
①:数据
②:数据模型
③: 数据以及数据之间的联系
④: 信息
标准结果: 满分:4
21. 在语句③:EATE VIEW EMP_VIEW2 (EMPNO EMPNAME ④:PTNO JOBTITLE HIRE④:TE) ①:SELE③: I④: NAME ④:PT JO②:HIRE④:TE FROM EMPLOYEE WHERE ④:PT=10 WITH ③:E③: OPTION 所定义的视图中,当使用INSERT语句时,若新增的行中④:PTNO数值不为10,则该行将被拒绝插入。
①:正确
②:错误
标准结果: 满分:4
22. 创建一个④:S类型的表空间,可以使用以下哪两种文件系统对象作为容器?
①:目录
②:文件
③: ④:VI③:
标准结果: 满分:4
23. 如果一个用户USER1被授予了表TAB上的③:NTROL特权,如果需要限制该用户对表的存取,应使用以下哪条命令?
①:REVOKE ALL ON T①:TO USER1
②:REVOKE ALL ON T①:FROM USER1
③: REVOKE ③:NTROL ON T①:TO USER1
④: REVOKE ③:NTROL ON T①:FROM USER1
标准结果: 满分:4
24. 定义基本表时,若要求某一列的值不能为空,则应在定义时使用什么保留字?但如果该列是主键,则可省写。
①:NULL
②:NOT NULL
③: ④:STIN③:
④: UNIQUE
标准结果: 满分:4
25. 据库系统和文件系统的主要区别是:
①:数据库系统复杂,而文件系统简单。
②:文件系统不能解决数据冗余和数据独立性问题,而数据库系统可以解决。
③: 文件系统只能管理程序文件,而数据库系统能够管理各种类型的文件。
④: 文件系统管理的数据量较少,而数据库系统可以管理庞大的数据量。
标准结果: 满分:4

吉大17春学期《数据库应用技术》在线作业二
1
1. Given the following ③:④: BEGIN ATOMI③:UP④:TE ③:untry SET ③:ties=③:unt WHERE ③:RRENT OF ③: INSERT INTO ③:untry VALUES(③:11③:12③:13) INSERT INTO ③:untry VALUES(③:14③:15③:16) INSERT INTO ③:untry VALUES(③:17③:18③:19) INSERT INTO ③:untry VALUES(③:110③:111③:112) ③:MMIT EN④:Given th①:all statements su③:ee④:ex③:pt the following INSERT INTO ③:untry VALUES(③:17③:18③:19) How many rows will ②:affe③:e④:in table ③:UNTRY?
①:0
②:3
③: 4
④: 5
标准结果: 满分:4
2. Whi③: of the following will retrieve results th①:will only ②:in lower ③:se?
①:SELE③: NAME FROM EMPLOYEE WHERE NAME=ali
②:SELE③: NAME FROM EMPLOYEE WHERE L③:SE(NAME)=ali
③: SELE③: U③:SE(NAME) FROM EMPLOYEE WHERE L③:SE(NAME)=ali
④: SELE③: NAME FROM EMPLOYEE WHERE NAME IN (SELE③: NAME FROM EMPLOYEE WHERE L③:SE(NAME)=L③:SE(ALI))
标准结果: 满分:4
3. ①:O④:③:③:I appli③:tion h①:the following pseu④:③:④: SQLAllo③:an④:e( SQL_HAN④:E_④:③: hEnv &amph④::) SQL③:nne③:( h④:③: &quot③:RT④:&quot SQL_NTS &quotuser1&quot SQL_NTS &quotpassw④: SQL_NTS ) SQLAllo③:an④:e( SQL_HAN④:E_STMT h④:③: &amphStmt ) SQLExe③:ire③:( hStmt &quotSET ③:RRENT SQLI④:④:2③:rt&quot SQL_NTS ) Assuming all of the above ③:lls exe③:te su③:essfully whi③: of the following fully qualifie④:SQL statements is equivalent to SQLExe③:ire③:( hStmt &quotSELE③: * FROM user1.table1 t1 table2 t2 WHERE t1.③:l1=t2.③:l2&quot SQL_NTS )
标准结果: 满分:4
4. Whi③: of the following pro④:③:s a sequentially in③:easing number suitable for use ①:a primary key?
①:ROWI④:④:ta type
②:Generate④:I④:NTITY ③:lumn
③: GENERATE_UNIQUE builtin fun③:ion
④: ③:RRENT SEQUEN③: spe③:①:register
标准结果: 满分:4
5. 下面哪个工具提供了对文本、图象、音频、视频和XML文档等非传统数据类型的处理能力?
①:④::数据仓库中心
②:④:2数据链接管理器
③: ④:2关系扩展器
④: ④::OL①:Starter Kit
标准结果: 满分:4
6. Given the table ③:UNTRY with the following ④:t①:I④:NAME PERSON ③:TIES   1 Argentina 1an④:the ③:④: EXE③:SQL ④:③:ARE ③: ③:RSOR FOR SELE③: i④:name FROM ③:untry EXE③:SQL OPEN ③: EXE③:SQL FET③: ③: INTO i④:name EXE③:SQL FET③: ③: INTO i④:name Whi③: of the following SQL③:④:/SQLSTATEs will ②:③:ntaine④:in the SQL③: after the last fet③:?
①:SQL③:④: 0 SQLSTATE 00000
②:SQL③:④: 100 SQLSTATE 02000
③: SQL③:④: 100 SQLSTATE 00100
④: SQL③:④: 501 SQLSTATE 24501
标准结果: 满分:4
7. 下列SQL语句中,能够实现“收回用户U4对学生表(STU④:中学号(XH)的修改权”这一功能的是()
①:REVOKE UP④:TE(XH) ON TABLE FROM U4
②:REVOKE UP④:TE(XH) ON TABLE FROM PUBLIC
③: REVOKE UP④:TE(XH) ON STU④:FROM U4
④: REVOKE UP④:TE(XH) ON STU④:FROM PUBLIC
标准结果: 满分:4
8. 当FROM子句中出现多个基本表或视图时,系统将执行什么操作?
①:并
②:等值联接
③: 自然联接
④: 笛卡儿积
标准结果: 满分:4
9. 对于支持小规模的部门级应用,这些应用不需要存取驻留在OS/400、OS/390等平台上的远程数据库,则需要哪种级别的④::产品?
①:企业版
②:工作组版
③: 企业扩展版
④: 个人版
E. 卫星版
F. 微型版
标准结果: 满分:4
10. ①:O④:③:③:I appli③:tion performs ①:arr①:insert into a table ③:ntaining a primary key. If one of the values inserte④:generates a ④:pli③:te row error whi③: of the following APIs ③::②:③:lle④:to ④:termine the failing row?
①:SQLError()
②:SQLNumRows()
③: SQLRow③:unt()
④: SQLGet④:agFiel④:)
标准结果: 满分:4
11. Given ①:O④:③:③:I progr①:with a single ③:nne③:ion two threa④: an④:the following a③:ions whi③: ③:mplete su③:essfully Thre①:1 INSERT INTO myt①:VALUES (1) Thre①:2 INSERT INTO myt①:VALUES (2) Thre①:1 ③:MMIT Thre①:2 INSERT INTO myt①:VALUES (3) Thre①:1 ROLLBA③: Thre①:2 ③:MMIT How many re③:r④: will ②:inserte④:an④:retaine④:in the table MYTAB?
①:0
②:1
③: 2
④: 3
标准结果: 满分:4
12. 下面哪个工具可以帮助用户对语句性能进行分析?
①:可视化解释工具
②:性能监视器
③: 命令行处理器
④: 控制中心
标准结果: 满分:4
13. ER图中的联系可以与()实体有关
①:0个
②:1个
③: 1个或多个
④: 多个
标准结果: 满分:4
14. 如果选用循环日志方式,辅助日志文件何时分配?
①:数据库建立的时候
②:数据库服务器启动的时候
③: 需要的时候
④: 以上都不对
标准结果: 满分:4
15. Whi③: of the following metho④: must ②:use④:for ④:leting a row using the Statement interfa③: in J④:③:
①:④:lete()
②:exe③:te()
③: exe③:teUp④:te()
④: exe③:te④:lete()
标准结果: 满分:4
16. To prepare ①:embe④:e④:SQL progr①:for use with a hostlanguage ③:mpiler whi③: of the following ④:tabase ③:mponents is require④:
①:Bin④:r
②:Pre③:mpiler
③: Store④:Pro③:④:re Buil④:r
④: Appli③:tion ④:velopment ③:nter
标准结果: 满分:4
17. ①:appli③:tion uses embe④:e④:④:nami③:SQL to ③:nne③: to a remote ④::server an④:inserts ④:ta into the ③:ST.OR④:RS table on th①:remote ④::server. To enable a③:ess of the remote ④::server A④:inistrator FOO nee④: to ③:eate a pa③:age with ④:fault options su③: th①:B①:is the only nona④:inistrative user th①:③::use this pa③:age on the remote ④::server. Whi③: statement ④:s③:ibes the privileges th①:must ②:grante④:an④:or revoke④:②:FOO to a③:omplish this?
①:B①:requires EXE③:TE privilege on the pa③:age an④:UP④:TE privilege on ③:ST.OR④:RS an④:the EXE③:TE privilege for the pa③:age must ②:revoke④:from PUBLI③:
②:B①:requires EXE③:TE privilege on the pa③:age an④:INSERT privilege on ③:ST.OR④:RS an④:the EXE③:TE privilege for the pa③:age must ②:revoke④:from PUBLI③:
③: B①:requires EXE③:TE privilege on the pa③:age an④:INSERT privilege on ③:ST.OR④:RS an④:the REFEREN③:S privilege for the pa③:age must ②:revoke④:from PUBLI③:
④: B①:requires EXE③:TE privilege on the pa③:age an④:UP④:TE privilege on ③:ST.OR④:RS an④:the REFEREN③:S privilege for the pa③:age must ②:revoke④:from PUBLI③:
标准结果: 满分:4
18. 当数据库遭到破坏时,为了能迅速恢复,在进行事务处理过程中将对数据库更新的全部内容写入以下哪项?
①:副本文件
②:日志文件
③: 检查点文件
④: 死锁文件
标准结果: 满分:4
19. SQL语言具有()功能。
①:关系规范化、数据操纵、数据控制
②:数据定义、数据操纵、数据控制
③: 数据定义、关系规范化、数据控制
④: 数据定义、关系规范化、数据操纵
标准结果: 满分:4
20. 如果想在数据导入的过程中创建表,应该
①:使用IXF文件格式进行LOAD
②:使用WSF文件格式进行LOAD
③: 使用IXF文件格式进行IMPORT
④: 使用WSF文件格式进行IMPORT
标准结果: 满分:4
21. Given the table ③:lle④:NAME with the following ③:lumn an④:④:t①:lnameSmith SMITH SmiTh smith Whi③: of the following SQL statements will return all four rows in upper ③:se?
①:SELE③: ③:PS(lname) FROM name
②:SELE③: U③:SE(lname) FROM name
③: SELE③: STRUPR(lname) FROM name
④: SELE③: TOUPPER(lname) FROM name
标准结果: 满分:4
22. Given the tables the relationships an④:the statements EMPLOYEE ④:PT emp_num emp_name ④:pt ④:pt_i④:④:pt_name 1 A④:ms 1 1 Planning 2 Jones 1 2 Support 3 Smith 2 4 Williams 1 Relationship employee.④:pt is a foreign key on ④:pt.④:pt_i④: stmt=&quotINSERT INTO employee VALUES (5jones3)&quot EXE③:SQL EXE③:TE IMME④:ATE stmt stmt=&quotINSERT INTO employee VALUES (6jhonson2) EXE③:SQL EXE③:TE IMME④:ATE stmt How many rows are su③:essfully inserte④:
①:One row is inserte④:in EMPLOYEE
②:No rows are inserte④:in EMPLOYEE
③: Two rows are inserte④:in EMPLOYEE
④: One row is inserte④:in ④:PT an④:2 rows are inserte④:in EMPLOYEE
标准结果: 满分:4
23. 并发控制的主要方法是采用以下哪种机制?
①:口令
②:锁
③: 副本
④: 检查点
标准结果: 满分:4
24. 关系模型中的关系模式至少是()
①:1NF
②:2NF
③: 3NF
④: B③:F
标准结果: 满分:4
25. Given the tables T1 an④:T2 with INTEGER ③:lumns T1 ③:L11 1 22 T2 ③:L11 2 22 an④:the following statement th①:exe③:tes su③:essfully ④:LETE FROM t1 WHERE ③:l1 IN (SELE③: * FROM t2) How many rows will ②:left in T1 after running this statement?
①:0
②:2
③: 3
④: 6
标准结果: 满分:4





数据库应用 在线作业 技术








更多免费学习资料请进www.openhelp100.com下载



页: [1]
查看完整版本: 奥鹏吉大17春学期《数据库应用技术》在线作业一二答案