奥鹏作业答案-谋学网

 找回密码
 会员注册

QQ登录

只需一步,快速开始

手机号码,快捷登录

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

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

[复制链接]
发表于 2015-4-11 00:09:57 | 显示全部楼层 |阅读模式
谋学网
谋学网(www.mouxue.com)是国内最专业的奥鹏作业答案,奥鹏离线作业答案及奥鹏毕业论文辅导型网站,主要提供奥鹏中医大、大工、东财、北语、北航、川大、南开等奥鹏作业答案辅导,致力打造中国最专业的远程教育辅导社区。+ X/ D: s4 B! ^/ y& U

6 F7 g; \1 n: X3 [. N0 v* a一、单选题(共 25 道试题,共 100 分。)V 1.  Which of the following CLI/ODBC functions should be used to delete rows from a DB2 table?/ n0 Z) o& \9 g
A. SQLDelete()+ u3 p& y2 |+ B$ c  k
B. SQLExecDirect()7 p4 \7 h& ~0 i4 a; l  y/ N
C. SQLBulkDelete()
3 y- f) s6 |3 r; XD. SQLExecuteUpdate()" M9 S. I9 y* J* N* q5 ?0 @/ ?
      满分:4  分+ _$ M; Q) {0 U3 s1 S* }0 e2 i( n
2.  如果想在数据导入的过程中创建表,应该+ k7 u9 i8 k( e
A. 使用IXF文件格式进行LOAD
9 h0 j* r6 X# \% K# u( {: j# tB. 使用WSF文件格式进行LOAD; C: \; h/ \# P) ?
C. 使用IXF文件格式进行IMPORT% H0 O, N+ E0 p4 z$ ?- q2 D6 e
D. 使用WSF文件格式进行IMPORT! `' m* y5 v3 U# }- W1 e
      满分:4  分
/ d. V! J& _( s5 t  i" r5 A9 O3.  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?
' [8 }& A3 R4 M$ W, m' _7 MA. 1
: M2 o# R8 p* S3 N( K7 tB. 68 c/ S2 O$ s8 G
C. 8; h  W: T, T4 i+ T2 q# U: C3 B
D. 362 {& ]% `! l; `) f* t7 o
      满分:4  分
! N* \$ G  j, d  \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上有几个索引?: C7 S# Z5 I+ f, p  W
A. 0; I" c3 g* B1 r$ F; y
B. 13 b* ^/ Y: y3 W6 a
C. 2
2 N& D3 ~8 u7 @/ J" CD. 3, T1 I5 `* c+ N& I9 o% @. C! e
E. 4; \1 V5 g2 r, A! x
      满分:4  分
; J- Q7 k2 B. \- J5.  并发控制的主要方法是采用以下哪种机制?
- X/ y) @+ c* }: yA. 口令; b* d  W: h" ^/ u
B. 锁! K4 }6 c- u2 ~' F/ X; G
C. 副本  x8 }( S# S& D4 y* v! T
D. 检查点
8 F4 q1 X! O: P* U) k6 q: Y7 w) c      满分:4  分
% _& V3 x1 G3 ~: |4 L" Z6.  给定三个表:学生表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语句是哪个?
) c2 i, o' C/ M9 u$ u; ?0 |A. SELECT S# FROM SC WHERE C#=“C2” AND GRADE >= (SELECT GRADE FROM SC WHERE C#=” C2”)' F, J/ o" w$ W
B. SELECT S# FROM SC WHERE C#=”C2” AND GRADE IN (SELECT GRADE FROM SC WHERE C#=”C2”): M( c( T/ h7 n3 G' n( M
C. SELECT S# FROM SC WHERE C#=”C2” AND GRADE NOT IN (SELECT GRADE FROM SC WHERE C#=”C2”)4 b% }/ s. h/ ^2 h$ l3 M- c- Z
D. SELECT S# FROM SC WHERE C#=”C2” AND GRADE>=ALL (SELECT GRADE FROM SC WHERE C#=”C2”)1 e( B; V/ h, q7 A. W
      满分:4  分
  `2 S; X% Q1 v, ~1 {0 E7.  游标稳定性(CS,或称光标稳定性)隔离级锁定工作单元期间光标所在的任何行。对该行的锁定将()
( ?4 K" m5 m  B1 V& O8 W! x+ rA. . 不保持
5 @$ ]' @$ g" g( gB. . 保持到取出下一行记录或整个工作单元终止。
2 Q3 g0 U) h8 Q) ]C. . 保持到整个工作单元终止。
+ }/ R8 S- t* x: P( Q1 Y4 u3 i  |      满分:4  分0 k& s1 z1 i  ~! z  J1 P
8.  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?
2 j* |! M0 B: E' F! y( _7 BA. 1
  J! I  z5 W' I' y8 t# AB. 2; v8 ]+ D/ a) h( x8 s) U( N6 g
C. 3
% `" ?8 h  v& _D. 4
7 H: _( W$ F$ C, p: `  ^      满分:4  分6 A, L) W; U' I% X& }2 [
9.  定义基本表时,若要求某一列的值不能为空,则应在定义时使用什么保留字?但如果该列是主键,则可省写。
4 ?$ ]# d2 g' O% G  KA. NULL
& w5 W4 `- n6 F' Q) S# dB. NOT NULL
4 J9 x& R+ R% x1 C" L6 f, M6 YC. DISTINCT
, G. \# X$ J4 D5 DD. UNIQUE
# L! v: ?$ R. Q6 J* A8 b      满分:4  分
0 L. R7 Q& D- p' M# Y6 R# z" h10.  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?; T2 q1 X8 q9 C+ v, A
A. The current statement
! O5 Z$ \4 b$ OB. Statements from any application
) R; J3 L/ g7 P) `8 lC. All statements within this application
* S/ a4 \, a2 g5 C* o1 V* h) RD. All statements within the current unit of work: X" u( e) k" {: N5 ^
      满分:4  分9 }. {" D9 u) _  v
11.  如果一个用户USER1被授予了表TAB上的CONTROL特权,如果需要限制该用户对表的存取,应使用以下哪条命令?% c% _9 J7 ^% C( _8 f' ]6 }( }
A. REVOKE ALL ON TAB TO USER14 P4 U9 J- U+ m3 u9 Y
B. REVOKE ALL ON TAB FROM USER1% q/ c6 A) S# q0 b
C. REVOKE CONTROL ON TAB TO USER1! Q& F8 ]& Z( U# L
D. REVOKE CONTROL ON TAB FROM USER1+ T2 y- P8 B2 l! Q9 A' a+ Q- z
      满分:4  分5 T. k) P9 E) G! U. e! S2 ?
12.  下述关于数据库系统的正确叙述是()
' |, b9 t4 V, `, J8 ^% i+ KA. 数据库中只存在数据项之间的联系
6 D' W7 [$ Z, w  UB. 数据库的数据项之间和记录之间都存在联系
( o( ^# d; I$ o: VC. 数据库的数据项之间无联系,记录之间存在联系9 M# T; n3 f' b' M$ c* x5 Y
D. 数据库的数据项之间和记录之间都不存在联系
2 v0 g# n& a2 }$ {; J* N# K1 y      满分:4  分
' d# p( ]" u. c9 y13.  给定三个表:学生表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
; c9 z: N  C; ?( M3 [# a' y1 L! iA. 不允许查询。因为视图中使用了分组和聚合函数。
3 B5 Z/ j0 i2 l5 ZB. 允许。对应的操作为: SELECT S#,COUNT(C#) FROM SC WHERE AVG(GRADE)>80' U1 Y$ g. f/ h$ @
C. 允许。对应的操作为: SELECT S#,COUNT(C#) FROM SC GROUP BY S# HAVING AVG(GRADE)>80  o$ ~1 e9 ^/ \& P  `5 m8 k
D. 允许。对应的操作为: SELECT S#, COUNT(C#) FROM SC HAVING AVG(GRADE)>80$ n' s6 C6 g0 y3 J6 D
      满分:4  分
. ]9 {9 S& H3 Y# r: I14.  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?
) B/ j& \! R! B" ?& k& K. dA. SQLCODE 0, SQLSTATE 00000
; ]6 h" V& l" \& {B. SQLCODE 100, SQLSTATE 02000
, k4 E5 m# j% MC. SQLCODE -100, SQLSTATE 00100. O1 h3 a  m6 n/ [: R2 G
D. SQLCODE -501, SQLSTATE 24501) x& q( f# v' }+ X& S  `
      满分:4  分
3 O- a+ B4 ^/ Z2 s. L9 d+ R$ @15.  据库系统和文件系统的主要区别是:
: K! R$ @" Q& e3 g/ uA. 数据库系统复杂,而文件系统简单。. M- c1 ?: U8 ~. L) m( K
B. 文件系统不能解决数据冗余和数据独立性问题,而数据库系统可以解决。
/ r+ j" {) U3 e! lC. 文件系统只能管理程序文件,而数据库系统能够管理各种类型的文件。
3 i# N: U, M8 S% A- N) |" Q5 m  J7 UD. 文件系统管理的数据量较少,而数据库系统可以管理庞大的数据量。2 m3 t& O: I5 H# k
      满分:4  分
- c' h# B+ u. V$ Y6 Z8 Q" R3 |: ~9 {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?) E8 t: x/ a. u! L4 B
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.
! m8 L5 q3 M. a, [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.
* x# N2 M" ]; K3 j7 T  j+ {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.* B8 m/ D5 e  A9 b$ @1 T* S
D. 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.# [5 O( L4 T1 D  w
      满分:4  分, y0 M1 p4 ]8 b9 E4 G, X! e
17.  当数据库遭到破坏时,为了能迅速恢复,在进行事务处理过程中将对数据库更新的全部内容写入以下哪项?
3 i; }6 N( k* Q% |A. 副本文件* z4 V, m) P7 M7 E
B. 日志文件
3 ]* w# p: y( Y* K; O4 ?C. 检查点文件
, l/ t4 y- }1 o8 _* t# [D. 死锁文件9 l. \+ J/ R7 p
      满分:4  分
. _$ u: N1 ^4 X& k18.  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?
6 m2 I: b9 _' {* t$ y; B% ]; K$ yA. When a CLOSE statement is issued) p$ B2 {8 j! l- U4 A
B. When a COMMIT statement is issued
/ |0 Z/ r& I3 A" r+ U& E) kC. When there are no rows in the result set# E+ L6 F0 N4 U# r# d: j2 S% Z- E
D. When all rows are FETCHed from the result set
; \/ m8 J" z% p$ S: h. j      满分:4  分1 [2 w  u0 ~  _- Q
19.  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?
) N7 A4 U7 r# ]& s+ C7 GA. 10
2 O; ~- A* m% C7 p7 J' YB. 20
/ F7 I$ ?, k( F+ k( wC. 30" N! `, b3 V* C7 U4 V. C; j
D. 402 V( f3 J$ t  O  a& q! g
      满分:4  分
% q- K8 l7 e6 g8 Y2 j; y8 s20.  Which of the following is a benefit of user-defined functions?0 t: O8 V8 r* p9 w& ]
A. Improves application concurrency
' y: x' H! i& k0 L) OB. Improves blocking of result sets0 u2 c$ S$ @' t: n5 W5 [6 ^
C. Simplifies application maintenance
; i) o" g6 {& QD. Reduces memory requirements on the server1 C: z2 _% R% L$ M
      满分:4  分+ M3 r8 ?) o1 t! ]( }
21.  If a stored procedure returns multiple rows, which of the following must the calling application use to access the result set?2 D0 L9 L% K$ N  f3 G3 a
A. A cursor
8 ?4 I0 E# W" S, jB. A select statement
& j8 s% I" J' ^6 X. _0 g) }! yC. A declared temporary table
7 K6 }3 h! W4 j3 r9 ]9 n$ `D. A table user-defined function
& }/ ~  l( K9 _" i# k2 Z$ k! J      满分:4  分
% J) ?5 i2 e: F22.  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?
6 R8 V! {- S! oA. 0
7 }3 p2 b- j3 i' J$ |B. 1
$ d4 V# f) f" R* u+ qC. 2; r( ~- B. x$ e
D. 3, G2 e5 U: m7 y" J
      满分:4  分; N& b% b& f, t; x) x
23.  在SELECT语句的下列子句中,通常和HAVING子句同时使用的是以下哪项?9 J1 Y- r6 ]- [2 d  Z4 O
A. ORDER BY子句) `9 [: _- h8 t* J
B. WHERE子句
) w* r2 ]. b0 f  j! t3 q6 `/ fC. GROUP BY子句0 {0 m! n/ p) \  d
D. 均不需要
% D2 x/ S1 R$ z      满分:4  分
  S. `% K' M: s. s24.  Under which of the following situations must dynamic SQL be used?
; F% h" v8 h, q: fA. When temporary table references exist at compile time
. H" f4 Y2 L' c% s* ~) RB. When the host variables' values are unknown at compile time
) Y; Q- e# z, NC. When the columns in the SELECT clause are unknown at compile time
+ T) i( ?- n! o: QD. When the number of rows being returned are unknown at compile time
1 @) V* O. `* g0 p+ G$ ^      满分:4  分
5 D7 e# F* [- o& R25.  对于那些需要偶尔连接到公司数据上进行数据交换的用户可选择哪种版本的DB2?对于支持小规模的部门级应用,这些应用不需要存取驻留在OS/400、OS/390等平台上的远程数据库,则需要哪种级别的DB2 产品?
) R% w9 k0 H3 S" ]: e! l- TA. 企业版% w  I1 W0 q! |' S
B. 工作组版/ D7 b1 r0 P. g$ ~/ [3 f' X6 A% \
C. 企业扩展版
4 ?9 ?& {% X, `5 D( mD. 个人版5 u3 M6 B1 B: `( P$ c
E. 卫星版, z# w$ e) I4 Y1 R
      满分:4  分
7 Q0 q; v8 S$ N% f" ?( C
! f9 t, }5 n, X% C: {谋学网(www.mouxue.com)是国内最专业的奥鹏作业答案,奥鹏离线作业答案及奥鹏毕业论文辅导型网站,主要提供奥鹏中医大、大工、东财、北语、北航、川大、南开等奥鹏作业答案辅导,致力打造中国最专业的远程教育辅导社区。

本帖子中包含更多资源

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

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

本版积分规则

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