奥鹏作业答案-谋学网

 找回密码
 会员注册

QQ登录

只需一步,快速开始

手机号码,快捷登录

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

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

[复制链接]
发表于 2015-4-14 11:05:22 | 显示全部楼层 |阅读模式
谋学网
谋学网(www.mouxue.com)是国内最专业的奥鹏作业答案,奥鹏离线作业答案及奥鹏毕业论文辅导型网站,主要提供奥鹏中医大、大工、东财、北语、北航、川大、南开等奥鹏作业答案辅导,致力打造中国最专业的远程教育辅导社区。' v; d) Z, a: B9 D

- J; `# Q4 s$ }: j: V3 u8 T一、单选题(共 25 道试题,共 100 分。)V 1.  Which of the following CLI/ODBC functions should be used to delete rows from a DB2 table?& p2 c- [! v% ~7 @
A. SQLDelete()
5 i8 j2 a) y. ?  C/ qB. SQLExecDirect()
! a  q" U) B: lC. SQLBulkDelete(): R% e; H7 E! q0 H
D. SQLExecuteUpdate()
7 _3 N) S5 U4 h* w# c      满分:4  分
& P; ~# V& a* O# G' n! w5 X7 p2.  如果想在数据导入的过程中创建表,应该; }- N2 K2 h) {, c2 L8 K; F) X
A. 使用IXF文件格式进行LOAD1 K+ E, j5 q/ {. z% [5 k  {
B. 使用WSF文件格式进行LOAD6 o1 c# _3 I2 w' F
C. 使用IXF文件格式进行IMPORT1 j6 M3 ^  d1 D# a0 a) N1 D
D. 使用WSF文件格式进行IMPORT/ u% H" J% c  H3 t! ?
      满分:4  分
" X( @6 Y! O! r* z3.  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?
( l/ [% U4 K1 U0 o/ E4 w' bA. 1
& ~6 S# Z5 U5 m! x# P9 b% v; c3 wB. 6
9 n" y, v, d) r: tC. 8
5 r  G$ W1 x" h, T) ^D. 36
/ T) h2 u- ?7 O- L' f; h      满分:4  分8 h' v0 T4 a% a$ \7 l5 \
4.  执行下面两条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上有几个索引?/ q  t8 V: }) o2 k" X
A. 0# s1 I. H! a+ k5 Z$ r
B. 1
* X8 ^" x, w! M0 {9 [& |0 AC. 2
# j4 T, U1 D. n3 w! G( Q6 ?8 fD. 3: |- E( x+ u! p8 o- a
E. 4
$ v9 p/ d9 W& j% [: B! h/ U      满分:4  分; F: Q* Y) h' I/ ^9 V# W
5.  并发控制的主要方法是采用以下哪种机制?
/ e  }: M9 H% |: z3 F6 D9 V9 T6 @A. 口令5 K" i' p  ~' }
B. 锁. A+ p2 f) ~4 T0 g
C. 副本  s' x! U, M+ t2 i2 j
D. 检查点
/ ?! k. I7 w  c8 t      满分:4  分
  ]! E5 m) D3 O" W! \, B6.  给定三个表:学生表S,课程表C和学生选课表SC,它们的结构分别如下: S(S#,SN,SEX,AGE,DEPT) C(C#,CN) SC(S#,C#,GRADE)其中:S#为学号,SN为姓名,SEX为性别,AGE为年龄,DEPT为系别,C#为课程号,CN为课程名,GRADE为成绩。检索选修课程“C2”的学生中成绩最高的学生的学号,正确的SELECT语句是哪个?
- I  m2 @  e, p, iA. SELECT S# FROM SC WHERE C#=“C2” AND GRADE >= (SELECT GRADE FROM SC WHERE C#=” C2”)% d, P# O0 C' t) z6 t  c- V+ z
B. SELECT S# FROM SC WHERE C#=”C2” AND GRADE IN (SELECT GRADE FROM SC WHERE C#=”C2”), e; N9 C& Z/ u8 Z6 f3 A
C. SELECT S# FROM SC WHERE C#=”C2” AND GRADE NOT IN (SELECT GRADE FROM SC WHERE C#=”C2”)
8 E+ ]+ C) T4 _2 nD. SELECT S# FROM SC WHERE C#=”C2” AND GRADE>=ALL (SELECT GRADE FROM SC WHERE C#=”C2”)
+ h9 K  y* _& u; {- l; e+ r      满分:4  分2 V) B6 g$ i: \' _1 E2 h* x
7.  游标稳定性(CS,或称光标稳定性)隔离级锁定工作单元期间光标所在的任何行。对该行的锁定将()
1 n9 e5 X3 R2 \6 N6 G% }A. . 不保持* N& ^" I1 u1 C! y: d* [( u5 X
B. . 保持到取出下一行记录或整个工作单元终止。0 _! Y; ~% w4 i. B
C. . 保持到整个工作单元终止。
) M; R- j+ @7 j6 ^, m. Z9 W! a      满分:4  分
  J' w2 u& s. }' Y% K; i3 `" [5 g8.  Given the tables: COUNTRY id name 1 Argentina 3 Cuba 4 - NATION id name 2 Belgium 4 USA and the code: EXEC SQL DECLARE C1 CURSOR FOR SELECT * FROM country WHERE name IS NOT NULL UNION SELECT * FROM nation EXEC SQL OPEN C1 How many rows are in the result set?
- ^. @% ]5 a$ r# WA. 13 y& w! k) z* e/ M" W, A
B. 2
2 P* z+ J3 e9 `  o6 U* s6 f/ vC. 3
1 F% I* \0 \% `+ N. H" QD. 4* E2 Z% T7 `# f2 W1 R! L  c
      满分:4  分
1 `1 e/ O- `1 x9 H$ z1 Y' s9.  定义基本表时,若要求某一列的值不能为空,则应在定义时使用什么保留字?但如果该列是主键,则可省写。7 N6 d2 z9 `3 ^; }3 i( r4 g9 x% x
A. NULL9 ^  K+ z! u  U" f6 }7 [. `6 E
B. NOT NULL
, h& k3 e  \. i, ?, ]C. DISTINCT  E+ B8 E$ m+ }; t9 U( U5 @! D  y
D. UNIQUE0 i  M5 J: z; N5 J; J3 z0 B' m) s; o
      满分:4  分  i2 [5 f! `7 C$ X
10.  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?
1 J6 ]9 x* X* ZA. The current statement/ ^' A! G0 F3 j2 o: V
B. Statements from any application# }& V% J& b+ d$ D
C. All statements within this application. w8 A: k5 U. W1 q& M  A0 E* R9 }
D. All statements within the current unit of work- j! Z+ T& O' @8 |
      满分:4  分) T' e  E0 F# }" h: F: X1 J- _& ^
11.  如果一个用户USER1被授予了表TAB上的CONTROL特权,如果需要限制该用户对表的存取,应使用以下哪条命令?' F+ y$ F) W# A- |! v2 z8 f: u0 \
A. REVOKE ALL ON TAB TO USER1
+ r/ g- M: Q- u" wB. REVOKE ALL ON TAB FROM USER1
& U+ `# m: ]9 q) KC. REVOKE CONTROL ON TAB TO USER1+ |& a5 V' `% x4 j7 C& f
D. REVOKE CONTROL ON TAB FROM USER1% G' r0 q! ~+ Z- O7 v
      满分:4  分+ L7 ~/ _) S: i; U! m
12.  下述关于数据库系统的正确叙述是()
( T- f1 e8 P( |! @# f8 ]8 IA. 数据库中只存在数据项之间的联系& j% h. R: n  [" Z) }, W
B. 数据库的数据项之间和记录之间都存在联系2 P; v: s( ]& e% U9 v
C. 数据库的数据项之间无联系,记录之间存在联系2 z" K" `4 R" T2 e6 b  ]
D. 数据库的数据项之间和记录之间都不存在联系
8 @$ d6 M  w8 j4 F      满分:4  分
% G. K' m$ v5 k. ?& V4 L13.  给定三个表:学生表S,课程表C和学生选课表SC,它们的结构分别如下: S(S#,SN,SEX,AGE,DEPT) C(C#,CN) SC(S#,C#,GRADE)其中:S#为学号,SN为姓名,SEX为性别,AGE为年龄,DEPT为系别,C#为课程 号,CN为课程名,GRADE为成绩。 对表SC建立如下视图: CREATE VIEW S_GRADE(S#,C_NUM,AVG_GRADE) AS SELECT S#,COUNT(C#),AVG(GRADE) FROM SC GROUP BY S#; 判断下面查询是否允许执行,如允许,写出转换到基本表SC上的操作。 SELECT S#,C_NUM FROM S_GRADE WHERE AVG_GRADE>80
% y6 l: `7 ~6 T% L1 m, p% K3 H, |, r0 [A. 不允许查询。因为视图中使用了分组和聚合函数。2 n; o0 x8 I9 c* B
B. 允许。对应的操作为: SELECT S#,COUNT(C#) FROM SC WHERE AVG(GRADE)>805 s9 s# }2 {: R7 G
C. 允许。对应的操作为: SELECT S#,COUNT(C#) FROM SC GROUP BY S# HAVING AVG(GRADE)>80# R; q6 K+ x! M2 ?( N+ m
D. 允许。对应的操作为: SELECT S#, COUNT(C#) FROM SC HAVING AVG(GRADE)>80
& _" ]3 O) g' w& ?3 `* Y7 i      满分:4  分
4 M4 S7 n$ w0 F* U* T14.  Given the table COUNTRY with the following data: ID NAME PERSON CITIES -- ---- ------ ------ 1 Argentina 1 - and the code: EXEC SQL DECLARE c1 CURSOR FOR SELECT id,name FROM country; EXEC SQL OPEN c1; EXEC SQL FETCH c1 INTO :id,:name; EXEC SQL FETCH c1 INTO :id,:name; Which of the following SQLCODE/SQLSTATEs will be contained in the SQLCA after the last fetch?& Z* V) a/ f3 o/ F
A. SQLCODE 0, SQLSTATE 00000
, S( a) K: ?* |, n# [; X& hB. SQLCODE 100, SQLSTATE 02000
7 B4 r, ^' w5 I9 `! o! HC. SQLCODE -100, SQLSTATE 00100
8 _3 j; U% g( E, c+ }; JD. SQLCODE -501, SQLSTATE 24501
5 i* W( [2 V0 G4 G      满分:4  分
% m1 G, ^5 y; s! Q  X+ z15.  据库系统和文件系统的主要区别是:
. M- F0 p: C* Y$ r2 R6 PA. 数据库系统复杂,而文件系统简单。8 i# }9 @  M+ L9 k( C5 m
B. 文件系统不能解决数据冗余和数据独立性问题,而数据库系统可以解决。
7 D% g0 }) c0 V) J" fC. 文件系统只能管理程序文件,而数据库系统能够管理各种类型的文件。# L: E0 j+ Q( X
D. 文件系统管理的数据量较少,而数据库系统可以管理庞大的数据量。, l' {$ g6 g7 K) B. x; d, V
      满分:4  分" N0 P5 C, n+ r9 u4 `
16.  An application uses embedded dynamic SQL to connect to a remote DB2 server and inserts data into the CUST.ORDERS table on that remote DB2 server. To enable access of the remote DB2 server, Administrator FOO needs to create a package with default options such that BAR is the only non-administrative user that can use this package on the remote DB2 server. Which statement describes the privileges that must be granted and/or revoked by FOO to accomplish this?9 C( M5 T" c: Y
A. BAR requires EXECUTE privilege on the package and UPDATE privilege on CUST.ORDERS, and the EXECUTE privilege for the package must be revoked from PUBLIC.) L- i) T0 }& ?) C  L# a: l6 ]
B. BAR requires EXECUTE privilege on the package and INSERT privilege on CUST.ORDERS, and the EXECUTE privilege for the package must be revoked from PUBLIC.) v1 [/ l) S: f. q$ O: e
C. BAR requires EXECUTE privilege on the package and INSERT privilege on CUST.ORDERS, and the REFERENCES privilege for the package must be revoked from PUBLIC.
- Q% O1 w* s7 N; N) m* A% qD. BAR requires EXECUTE privilege on the package and UPDATE privilege on CUST.ORDERS, and the REFERENCES privilege for the package must be revoked from PUBLIC.
- V: [$ ?1 Q% ~' {+ E1 u2 R  p      满分:4  分
( B4 ]  c4 `  J3 S+ g6 O: Y17.  当数据库遭到破坏时,为了能迅速恢复,在进行事务处理过程中将对数据库更新的全部内容写入以下哪项?
. {5 j$ Z+ O- b. O* |- yA. 副本文件
# l' ?  J0 a- ~$ h  q/ V$ ^2 tB. 日志文件
8 j: I# M  y# ^, pC. 检查点文件5 ]: U: g% O1 l! v8 ^
D. 死锁文件$ _) ?0 f: H; ?
      满分:4  分
+ Q" V  `! R/ H2 g5 J18.  Given the code: EXEC SQL DECLARE cursor1 CURSOR FOR SELECT name,age,b_date FROM person; EXEC SQL OPEN cursor1; Under which of the following situations will the above cursor be implicitly closed?5 L8 X3 Q0 t: a8 D. o
A. When a CLOSE statement is issued
) [7 A2 ^7 i! k9 K/ UB. When a COMMIT statement is issued2 u/ }! R; F" m1 l' h' {
C. When there are no rows in the result set6 l$ }# `3 B$ d
D. When all rows are FETCHed from the result set
1 Z: e9 k; G3 r+ H      满分:4  分
! W1 n. P: T. n" U( n19.  Given the table T1 with the following data: COL1 IDX ---- ---- A single-threaded CLI application executes the following pseudocode in sequence: SQLAllocHandle( SQL_HANDLE_ENV, NULL, &hEnv ) SQLAllocHandle( SQL_HANDLE_DBC, hEnv, &hDbc ) SQLConnect( hDbc, "SAMPLE", SQL_NTS, NULL, SQL_NTS, NULL, SQL_NTS ) SQLSetConnectAttr( hDbc, SQL_ATTR_AUTOCOMMIT, SQL_AUTOCOMMIT_ON ) SQLAllocHandle( SQL_HANDLE_STMT, hDbc, &hStmt ) SQLExecDirect( hStmt, "UPDATE table1 SET col1=10 WHERE idx=1", SQL_NTS ) SQLExecDirect( hStmt, "UPDATE table1 SET col1=20 WHERE idx=2", SQL_NTS ) SQLEndTran( SQL_HANDLE_DBC, hDbc, SQL_COMMIT ) SQLExecDirect( hStmt, "UPDATE table1 SET col1=30 WHERE idx=1", SQL_NTS ) SQLExecDirect( hStmt, "UPDATE table1 SET col1=40 WHERE idx=1", SQL_NTS ) SQLEndTran( SQL_HANDLE_DBC, hDbc, SQL_ROLLBACK ) SQLExecDirect( hStmt, "SELECT col1 FROM table1 WHERE idx=1", SQL_NTS ) Which of the following values for COL1 will be fetched when the sequence for the pseudocode listed above is successfully executed?. N! Q8 I: z" z6 h' M1 Q
A. 10
5 ], k. i& p/ BB. 20
; I9 g3 F+ ^: i; C. ~% f: t1 {1 @6 m0 cC. 301 a& u, ^/ ?0 Q9 z) F$ D: w
D. 40- G. Q9 u0 J$ |7 O. ^
      满分:4  分( w) z" ~) u( i$ ]- K% h
20.  Which of the following is a benefit of user-defined functions?1 p4 A2 m- n' n
A. Improves application concurrency! [, o6 e. x, {" j/ G- M
B. Improves blocking of result sets
2 l8 l0 I& q8 z8 K" m. RC. Simplifies application maintenance( i$ G! p3 c- Z' Q& R3 l" A
D. Reduces memory requirements on the server2 h  |- k: p: \9 E2 ?1 B; }; [
      满分:4  分
' E! |: n5 V+ P6 C, }% r* _; f' H21.  If a stored procedure returns multiple rows, which of the following must the calling application use to access the result set?1 H7 ^4 u" B) |7 S* g
A. A cursor
3 m" w! z% ~3 q# W3 tB. A select statement; w# c) f9 _6 c& h' ?& f5 L
C. A declared temporary table
  E8 \% }" ~/ b4 rD. A table user-defined function
4 K! x+ q# i& N8 `      满分:4  分
- X% f4 z" K9 x$ H# a) e8 s* ]# h22.  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. o# h( P$ E# JA. 0- ]' v3 U& S, g% P+ _7 _
B. 1: Q8 K' Q* C& R. G
C. 2! z& i( z/ [0 Q5 Y( o4 \
D. 3
- \2 \8 ~. u0 j      满分:4  分
, j: q4 h0 k: g$ L. d23.  在SELECT语句的下列子句中,通常和HAVING子句同时使用的是以下哪项?
$ i  E2 F4 ]' K4 Z- a& Q. S% }A. ORDER BY子句! K# Q' ?, U  C, @3 |* w- a4 A
B. WHERE子句: s% S7 E! I" M4 D! }4 {
C. GROUP BY子句; D1 H* F% l  Z" a- B! E& E# D
D. 均不需要' y" R/ Q# w, `* H4 c4 W
      满分:4  分
- {, K* Y8 ]# J7 c2 U24.  Under which of the following situations must dynamic SQL be used?
  v$ z! T! w* d; \% D% eA. When temporary table references exist at compile time( g% i2 k5 ]- O5 _
B. When the host variables' values are unknown at compile time
+ _# Z0 b" Y& l3 I7 u2 uC. When the columns in the SELECT clause are unknown at compile time5 J0 j5 o" _3 S* O6 }) U
D. When the number of rows being returned are unknown at compile time0 [& d4 q: O! r) l
      满分:4  分4 z* B. {: G. L5 g9 x. A( J3 T
25.  对于那些需要偶尔连接到公司数据上进行数据交换的用户可选择哪种版本的DB2?对于支持小规模的部门级应用,这些应用不需要存取驻留在OS/400、OS/390等平台上的远程数据库,则需要哪种级别的DB2 产品?4 ^6 \2 l+ V1 ^
A. 企业版4 Y$ Z* c/ W9 q
B. 工作组版
# y) w9 z% i: |& lC. 企业扩展版% ?# L+ ?6 S  ^* }
D. 个人版- I+ g7 F/ Q; Q1 k/ S0 J
E. 卫星版
. I3 Z" G& p9 V  m  M) c      满分:4  分 2 X/ |/ t2 y! S) O
( M1 @) X  a& i8 s% t8 s" W2 f5 [
谋学网(www.mouxue.com)是国内最专业的奥鹏作业答案,奥鹏离线作业答案及奥鹏毕业论文辅导型网站,主要提供奥鹏中医大、大工、东财、北语、北航、川大、南开等奥鹏作业答案辅导,致力打造中国最专业的远程教育辅导社区。

本帖子中包含更多资源

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

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

本版积分规则

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