奥鹏作业答案-谋学网

 找回密码
 会员注册

QQ登录

只需一步,快速开始

手机号码,快捷登录

VIP会员,3年作业免费下 !奥鹏作业,奥鹏毕业论文检测新手作业下载教程,充值问题没有找到答案,请在此处留言!
2020年04月最新全国统考资料投诉建议,加盟合作!点击这里给我发消息 点击这里给我发消息
奥鹏课程积分软件(ver:3.1)
查看: 726|回复: 0

吉大15春学期《数据库应用技术》在线作业一答案辅导资料

[复制链接]
发表于 2015-4-14 11:06:23 | 显示全部楼层 |阅读模式
谋学网
谋学网(www.mouxue.com)是国内最专业的奥鹏作业答案,奥鹏离线作业答案及奥鹏毕业论文辅导型网站,主要提供奥鹏中医大、大工、东财、北语、北航、川大、南开等奥鹏作业答案辅导,致力打造中国最专业的远程教育辅导社区。
  w. y3 s2 L6 M" ?+ ?0 O3 N8 N6 M1 c% m8 x
一、单选题(共 25 道试题,共 100 分。)V 1.  数据操纵语言的基本功能中不包括()
# M% q) y$ N. z# q. |9 u& wA. 向数据库中插入数据. U: V# J0 f' I4 S
B. 描述数据库的访问控制5 Y9 U$ @* }, V4 w( e' ^
C. 修改数据库中的数据
) e5 K  w. f, D& A5 U" q' f" A  m% UD. 删除数据库中的数据
# u) X1 }8 D* u9 h' @) e0 z' ]4 s      满分:4  分" Y. j5 k) y8 s* U( Q
2.  事务的原子性是指()2 v/ j- u  E8 Q0 _/ o
A. 事务中包含的所有操作要么都做,要么都不做
& V1 V& ^+ t. f1 R2 ZB. 事务一旦提交,对数据库的改变是永久性的
/ [( r" y' t+ l: w8 g+ n, pC. 一个事务内部的操作及使用的数据对并发的其他事务是隔离的% k0 l8 z/ t7 b: F, }( c' o
D. 事务必须是使数据库从一个一致性状态变到另一个一致性状态; g/ X6 l1 A& K+ A9 J* P
      满分:4  分, |: @. Z+ p$ u
3.  如果一个用户USER1被授予了表TAB上的CONTROL特权,如果需要限制该用户对表的存取,应使用以下哪条命令?6 s: ]& Q( |( L- v0 _
A. REVOKE ALL ON TAB TO USER1/ |  m/ @$ s' K3 u4 N
B. REVOKE ALL ON TAB FROM USER14 E" Q5 D7 {/ L5 \6 s( f) x2 T
C. REVOKE CONTROL ON TAB TO USER1
' R, i8 V3 D6 V2 k2 F1 ZD. REVOKE CONTROL ON TAB FROM USER1
0 u* m5 a' n8 y* q$ C/ n      满分:4  分
7 k" ^( K  Z! o2 q) \0 W4.  关系模式中各级模式之间的关系为()
# t& [6 ?+ \" E# d" n' `A. 3NF包含 2NF包含 1NF6 I4 E6 e* y, Y: W% W
B. 3NF包含 1NF包含 2NF
, I* ^: x/ k7 a- P( N1 ]C. 1NF 包含2NF包含 3NF
% r$ b, I- l6 g$ \  dD. 2NF包含 1NF 包含3NF- `9 k6 D* T* R5 B& B. p+ g
      满分:4  分
; `  _. O3 b4 T5.  给出下面信息: CREATE TABLE tab1 (c1 char(3) WITH DEFAULT NULL, c2 INTEGER); INSERT INTO tab1(c2) VALUES (‘345’); 如果在命令行处理器(CLP)中执行以下语句,以下哪个结果是正确的? SELECT * FROM tab1;6 H3 L) C9 I! j8 S
A. C1 C2 --- ----------- 0 record(s) selected., c# X7 g3 s2 b! a# d
B. C1 C2 --- ----------- 123 345 1 record(s) selected.
; T# H4 s6 A: o2 q$ Q+ SC. C1 C2 --- ----------- 345 1 record(s) selected.
, l0 U/ h4 I6 G1 f& @D. C1 C2 --- ----------- - 345 1 record(s) selected.
% e2 d0 w& x' Y# c9 R6 s      满分:4  分: x& W$ u/ p6 c0 a- z; v) k
6.  在语句CREATE VIEW EMP_VIEW2 (EMPNO, EMPNAME, DEPTNO, JOBTITLE, HIREDATE) AS SELECT ID, NAME, DEPT, JOB, HIREDATE FROM EMPLOYEE WHERE DEPT=10 WITH CHECK OPTION; 所定义的视图中,当使用INSERT语句时,若新增的行中DEPTNO数值不为10,则该行将被拒绝插入。
( u+ m/ E0 S0 ]) \/ jA. 正确* U/ {  N5 H( s% C+ J9 x
B. 错误6 `4 S4 A' A; ~1 D- N) g& i2 A( l
      满分:4  分
( X) L- E8 [* V2 N4 F2 d* F; y7.  Given the tables T1 and T2, each containing an integer column COL1: T1 COL1 ----------- 1- 1- 22 T2 COL1 ----------- 1- 2- 22 and the following query that executes successfully: SELECT COUNT(*) FROM t1 RIGHT OUTER JOIN t2 ON t1.col1=t2.col1 How many rows are returned?! m1 [1 h' y: T  T9 t8 q
A. 1
/ v* O5 i! J. Y% C/ `7 h4 A, QB. 6- {# i3 Y$ {% N6 u( ?3 G. I
C. 8
6 D& \' _2 {4 cD. 36
- q4 Z8 T' @( b; ~8 u/ l0 t      满分:4  分$ R! t; {3 c$ t# I+ M" q
8.  并发控制的主要方法是采用以下哪种机制?
' w* y7 t: x/ H9 L  u/ UA. 口令
' p* h6 L) G% ~B. 锁
. v4 _' q/ M. C; d# A/ WC. 副本
8 b% u  U, H4 M7 `& ^D. 检查点
) X2 \' j- r7 _( @3 |$ J8 H      满分:4  分% D: S  Z6 E& H
9.  Which of the following CLI/ODBC functions should be used to delete rows from a DB2 table?
; M4 E& M9 F, p8 o: Y! w( CA. SQLDelete()1 q* J# _) N& P& i
B. SQLExecDirect(): p% l# h: n+ O! H( A+ p7 n
C. SQLBulkDelete()
5 p% t1 D& \9 B* M' U' M) l' lD. SQLExecuteUpdate()1 }5 v0 j9 E5 Y# q
      满分:4  分- k. f0 s3 E0 p/ m' N' R' y
10.  游标稳定性(CS,或称光标稳定性)隔离级锁定工作单元期间光标所在的任何行。对该行的锁定将()! y) V1 _" T! t% D3 O
A. . 不保持
1 X, O" \( A* _5 G: c" d$ BB. . 保持到取出下一行记录或整个工作单元终止。) K2 `, |5 g" _5 q1 R9 R
C. . 保持到整个工作单元终止。, q/ B. X/ k" C# |, U$ i" i) c5 O
      满分:4  分
' F' }+ \# S$ i: @) G0 |9 R+ F$ E' M11.  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?/ y6 y/ }* l; B
A. user tables+ I3 P4 X. l9 D4 X7 o/ _
B. server memory
; \( O/ W% D+ ?9 `% m0 PC. user table space4 v7 n( H1 y( c% Z/ ]
D. system catalog tables5 ]' e$ v5 [$ S2 \0 |3 A2 Q
      满分:4  分4 t7 G8 ~& i$ `4 R. B/ B
12.  Which of the following privileges is required to successfully execute a Java stored procedure that uses JDBC to update several different tables?" N2 p3 Z7 M, ?! e) G, a' {% t
A. The user must have UPDATE privilege on the referenced tables.: Y/ Q/ I: p( [+ ]( t
B. The developer must have EXECUTE privilege on the stored procedure.
# E- D' Q' ]/ o8 q) I. [1 }C. The user must have UPDATE privilege on the referenced tables and EXECUTE privilege on the stored procedure.# u# N9 I6 B& h2 b; S8 s0 [
D. The developer must have UPDATE privilege on the referenced tables and EXECUTE privilege on the stored procedure.5 k8 W4 p. z; B3 Q! {
      满分:4  分
8 s3 r2 j# f' P( `  f13.  The following commands are issued against a data source containing table user2.org: CREATE ALIAS user1.org FOR sample.org CREATE TABLE org.sample ( c CHAR(1)) CREATE ALIAS sample.org FOR user2.org CREATE ALIAS user2.sample FOR sample.org Given the user SAMPLE issues the following statement: SELECT * FROM sample For which of the following database objects will access be attempted?) ~- B% B7 j" c3 o" f( i4 F
A. user2.org% ?) Z# Q( j1 X+ Z6 o, @1 e
B. org.sample: _, K" J7 z1 q& q
C. sample.org
2 G/ D8 K9 Z! R) r4 k* t9 d3 mD. sample.sample* a" L- C. r1 O; R) N( N" B
      满分:4  分& |& o4 L3 |- ^& O* e) x
14.  下述关于数据库系统的正确叙述是()7 e6 t: |: {7 f! n
A. 数据库中只存在数据项之间的联系
7 g8 s6 @/ ?5 R8 J9 Q/ ]% k/ VB. 数据库的数据项之间和记录之间都存在联系- h  y3 x; M7 v: N2 j. ^$ ]
C. 数据库的数据项之间无联系,记录之间存在联系
! |! _: G+ b  Z; bD. 数据库的数据项之间和记录之间都不存在联系
+ a/ l9 a  Q  z0 W+ `      满分:4  分
0 H) x2 p" g. ^. x% g' b; G5 w15.  An ODBC/CLI application has the following pseudocode: SQLAllocHandle( SQL_HANDLE_DBC, hEnv, &hDbc ) SQLConnect( hDbc, "CERTDB", SQL_NTS, "user1", SQL_NTS, "passwd", SQL_NTS ) SQLAllocHandle( SQL_HANDLE_STMT, hDbc, &hStmt ) SQLExecDirect( hStmt, "SET CURRENT SQLID db2cert", SQL_NTS ) Assuming all of the above calls execute successfully, which of the following fully qualified SQL statements is equivalent to: SQLExecDirect( hStmt, "SELECT * FROM user1.table1 t1, table2 t2 WHERE t1.col1=t2.col2", SQL_NTS ), v3 ]1 P/ Q; A9 e
A. SQLExecDirect( hStmt, "SELECT * FROM user1.table1 t1, table2 t2 WHERE t1.col1=t2.col2", SQL_NTS )  H" K4 Y5 m& x$ [- S6 C5 ]* r
B. . SQLExecDirect( hStmt, "SELECT * FROM user1.table1 t1, user1.table2 t2 WHERE t1.col1=t2.col2", SQL_NTS )
* y* L8 ^3 b" I, }4 lC. . SQLExecDirect( hStmt, "SELECT * FROM user1.table1 t1, db2cert.table2 t2 WHERE t1.col1=t2.col2", SQL_NTS )* |, x5 x" y" i  Y) m
D. . SQLExecDirect( hStmt, "SELECT * FROM db2cert.table1 t1, db2cert.table2 t2 WHERE t1.col1=t2.col2", SQL_NTS )
/ }( c$ d! Q2 i+ L/ \' [      满分:4  分2 w/ T% w7 ?- Z, S
16.  设有两个事务T1,T2,其并发操作如下所示: T1: T2: 1) 读A=10,B=5 2) 读A=10 3) 读A=20,B=5 求和25 验证错正确的评价是哪个?
& u" F. \* z6 F  P, ]* M; zA. 该操作不存在问题
6 U! m+ l. }- h$ o4 gB. 该操作丢失修改  M. W" {6 }0 J3 {4 i
C. 该操作不能重复读
/ L8 a$ u, K. CD. 该操作读“脏”数据8 T/ r: N$ e( M" b
      满分:4  分
! K$ `* l, J. W4 [; G' U17.  Given the application code: EXEC SQL DECLARE cur CURSOR WITH HOLD FOR SELECT c1 FROM t1 EXEC SQL OPEN cur EXEC SQL FETCH cur INTO :hv /* Statement 1 */ EXEC SQL COMMIT /* Statement 2 */ EXEC SQL FETCH cur INTO :hv /* Statement 3 */ EXEC SQL ROLLBACK /* Statement 4 */ EXEC SQL CLOSE cur /* Statement 5 */ If the table T1 has no rows in it, which statement will cause the cursor "cur" to be closed first?
6 \$ _  m: g' p# c3 t" C9 e6 }A. Statement 1
! c( x$ A& C. AB. Statement 2
( t: A6 W! |* c$ k4 j2 j) LC. Statement 3
! S, C* y" [, l' W: BD. Statement 46 T4 p/ r: d! A5 B7 r
      满分:4  分: S9 f/ T- r' o# Z
18.  Given the table T1, created using the following statement: CREATE TABLE t1 ( id INTEGER GENERATED BY DEFAULT AS IDENTITY, c1 CHAR(3) ) The following SQL statements are issued: INSERT INTO t1 VALUES (2, 'def') INSERT INTO t1 VALUES (DEFAULT, 'abc') INSERT INTO t1 VALUES (DEFAULT, 'ghi') Which of the following represents the order in which the values are returned from the following SELECT statement? SELECT id FROM t1 ORDER BY id+ l% t7 ^- J+ R3 b3 L, `5 B
A. 1, 2, 2# ~5 B2 y% _5 F' z8 ]& |2 |* ]4 [7 X
B. 1, 2, 3
  T# {; t% H- W. f- W& HC. 2, 3, 4
, i5 s$ F3 y% y: R* L' Q0 }2 P2 cD. 0, 1, 2
7 @1 ^9 e, G; U) @. u% M      满分:4  分
$ `0 f$ m% h! E19.  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?5 ^1 q+ E$ K& A3 Z( W+ W  g
A. The current statement) s4 `& j" V5 c7 I; z0 a7 a
B. Statements from any application6 H$ w- E; u3 G" W
C. All statements within this application  L" U/ p6 `6 x$ g9 @
D. All statements within the current unit of work, Y' Y& Y3 N2 W
      满分:4  分
3 c1 ]: I" c  U$ n" ^20.  Given the table T1 with the following data: C1 --- ABC DE and the application code: EXEC SQL DECLARE cur1 CURSOR WITH HOLD FOR SELECT c1 FROM t1 ORDER BY c1 EXEC SQL DECLARE cur2 CURSOR WITH HOLD FOR SELECT c1 FROM t1 ORDER by c1 EXEC SQL OPEN cur1 EXEC SQL OPEN cur2 EXEC SQL FETCH cur1 INTO :hv EXEC SQL FETCH cur1 INTO :hv EXEC SQL FETCH cur2 INTO :hv EXEC SQL COMMIT EXEC SQL FETCH cur2 INTO :hv EXEC SQL FETCH cur2 INTO :hv EXEC SQL FETCH cur1 INTO :hv EXEC SQL CLOSE cur2 EXEC SQL CLOSE cur1 What is the final content of the host variable "hv"?6 u5 ^% T- p  ]& i. L
A. A
; O- u: q2 c8 P+ k; ^B. B3 b6 \' C" K. R9 l
C. C# b& G* b# z; T; W1 ~3 w9 e
D. D
6 R+ ?3 t) V8 j# N1 k- w      满分:4  分+ Y% T1 G' E3 Q' ?1 `9 D
21.  Which of the following database resources can be freed when a unit of work is committed?
: K$ \  ~; E1 a" nA. row locks8 Y* x! t- v8 m
B. cursor names2 R: e9 d: {6 j
C. buffer pools8 |! K( [0 U' O( m3 b
D. cursors WITH HOLD) N8 y" @9 ?- w' K% d9 k
      满分:4  分
3 ~: b2 |$ [, g* b2 t0 e22.  关系规范化中的删除操作异常是指()
4 v" g/ [+ `6 n; A: {$ MA. 不该删除的数据被删除# e2 F  h3 s6 P" `1 J( v! w" K
B. 不该插入的数据被插入0 ^# g! O7 e+ ^8 T0 f& Z4 \
C. 应该删除的数据未被删除" v6 R) n3 x- r: ~3 D# @/ I
D. 应该插入的数据未被插入3 t/ N1 X" E) c4 a
      满分:4  分
7 |& D% }. b) U# p23.  If a stored procedure returns multiple rows, which of the following must the calling application use to access the result set?4 Z" l# q. Y, y" ~, X4 i
A. A cursor2 Y( N9 [9 e8 X
B. A select statement
- T' K5 K% B- f* ]0 g* {! v+ uC. A declared temporary table9 u& N5 N3 D9 U7 R0 x4 K
D. A table user-defined function
7 \7 a, Z& S: i0 _4 Z: _# x2 L" J      满分:4  分
) I6 D. B' f. h! ^24.  使用SQL语句进行查询操作时,若希望查询结果不出现重复元组,应在SELECT子句中使用什么保留字?
3 z- x: [7 M$ Q4 X1 [0 PA. UNIQUE
8 Y0 A1 B+ T$ `% d* \* UB. ALL8 w! k7 A9 K" U5 V; V( B+ n
C. EXCEPT
7 `# \  ^# R3 Q6 C' }4 N$ v0 |! tD. DISTINCT& h% \) y* u0 a- L
      满分:4  分6 N! ]* v8 ?0 m5 K
25.  在客户端直接连接到DB2 UDB服务器的环境中,服务器端的认证类型为以下哪个时,在编目时指定的认证类型不一定要与服务器端认证参数的值相匹配。
/ F$ y  P5 ?  r1 C! i8 F% fA. SERVER_ENCRYPT: D$ @+ F) a% L7 M5 W
B. DCE" M4 t/ ^# j; P% E8 U$ A
C. DCE_SERVER_ENCRYPT
- s8 j7 S* U# SD. KERBEROS% D7 N) k7 f( j) Q% C
      满分:4  分 ) R. u% X: i* N6 m/ N& {# S* ]3 i% F
: D* N; j8 |/ P; c
谋学网(www.mouxue.com)是国内最专业的奥鹏作业答案,奥鹏离线作业答案及奥鹏毕业论文辅导型网站,主要提供奥鹏中医大、大工、东财、北语、北航、川大、南开等奥鹏作业答案辅导,致力打造中国最专业的远程教育辅导社区。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?会员注册

x
奥鹏作业答案,奥鹏在线作业答案
高级模式
B Color Image Link Quote Code Smilies |上传

本版积分规则

投诉建议
 
 
客服一
客服二
客服三
客服四
点这里给我发消息
点这里给我发消息
谋学网奥鹏同学群2
微信客服扫一扫
快速回复 返回顶部 返回列表