奥鹏作业答案-谋学网-专业的奥鹏在线作业答案辅导网【官网】

 找回密码
 会员注册

微信登录,扫一扫

手机号码,快捷登录

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

吉大12春《数据库应用技术》在线作业二

[复制链接]
发表于 2012-3-31 13:54:56 | 显示全部楼层 |阅读模式
谋学网
谋学网: www.mouxue.com 主要提供奥鹏作业资料,奥鹏在线作业资料,奥鹏离线作业资料以及奥鹏毕业论文,致力打造中国最专业远程教育辅导社区。
- O0 i3 V% u) I& C/ X3 e- W1 L# r9 h1 [- r2 k% n

( ~( S2 B  o8 A) U" ]1 r& }
( Y8 V3 l+ V" m" n6 u8 F% f/ W0 m' g5 ^, O$ ?
一、单选(共 25 道试题,共 100 分。)V 1.  对于支持小规模的部门级应用,这些应用不需要存取驻留在OS/400、OS/390等平台上的远程数据库,则需要哪种级别的DB2 产品?
2 Z& }" A* m# T0 }: n8 h. v# P; nA. 企业版, X/ L2 G* R$ L: s! J% b9 U- C6 }
B. 工作组版7 m& H* g& @/ H  }: N7 b: L- P0 N0 [
C. 企业扩展版0 J! c6 }' _% ^2 r* w- v0 t
D. 个人版( F6 f1 h# Q: d, U( C
E. 卫星版; E: B% l# ^  B. b' H8 \! S; {. a: q
F. 微型版
! j$ t, @3 _7 V. q, Y' ?: ^' V      满分:4  分/ E" F0 y' D( a6 C6 ^
2.  下面哪一工具允许用户开发存储过程?1 r1 r4 ?" X9 p  K& h+ j$ Z% C) H
A. 控制中心
5 a; [, |* A, r1 h8 _7 }7 ~B. 命令中心
, X( w6 v7 k* ]2 L; i4 u- u; VC. 任务中心3 `, I& u8 h4 X1 |) p* Q
D. 开发中心% \9 i$ y7 C3 s9 E
E. 健康中心
5 H% m2 G6 D# Q" f' I& ~# C7 _      满分:4  分3 ?/ j& Z7 m! A; f1 }2 M
3.  SQL语言具有()功能。7 \$ e5 y& v4 @( z$ _
A. 关系规范化、数据操纵、数据控制8 \  ?$ k2 f4 e8 W
B. 数据定义、数据操纵、数据控制1 ^  |$ f) L4 ]: r# s
C. 数据定义、关系规范化、数据控制
6 W, ^4 }( `) f9 G6 n# ]: V& cD. 数据定义、关系规范化、数据操纵
" G3 \0 Q+ Z6 ^0 n$ p$ u. R      满分:4  分
& h& \) e' d; v" V+ y4 b, @* w* W4.  对于UNIX和Intel平台上的数据库应用,如果需要存取OS/400、VM/VSE和OS/390系统上的数据库,需要DB2哪种产品的支持?
! b0 J8 \8 E! H& B$ K8 J6 B& KA. DB2 Connect
+ i9 }7 m; q2 qB. DB2 DataPropagator
( H) Z8 g* @% e3 {% Z, h+ gC. DB2 Net.Data
* W4 ?) h: J7 z- uD. DB2 DataJoiner
8 l" a* z7 a  zE. DB2 Relational Connect
" A8 _3 }, k2 o$ ~. _& W3 p9 t      满分:4  分4 s) ^8 F- c9 L0 l1 I3 `( a7 j
5.  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 )
  o% o9 V  U1 y9 J3 tA. SQLExecDirect( hStmt, "SELECT * FROM user1.table1 t1, table2 t2 WHERE t1.col1=t2.col2", SQL_NTS )8 W+ N' f3 R9 ~6 K; k8 Q
B. . SQLExecDirect( hStmt, "SELECT * FROM user1.table1 t1, user1.table2 t2 WHERE t1.col1=t2.col2", SQL_NTS ). B$ d' I7 K" b* f7 V9 X: T
C. . SQLExecDirect( hStmt, "SELECT * FROM user1.table1 t1, db2cert.table2 t2 WHERE t1.col1=t2.col2", SQL_NTS ), c4 E3 N3 {: {& o* |3 t1 \% s
D. . SQLExecDirect( hStmt, "SELECT * FROM db2cert.table1 t1, db2cert.table2 t2 WHERE t1.col1=t2.col2", SQL_NTS )5 b" V* n$ I3 a  f2 }% _- t7 z
      满分:4  分8 [! a$ p/ Q4 G- ]: U; i
6.  Which of the following is used to run an embedded dynamic SQL UPDATE statement?
6 I, \' A/ X% B) L2 e1 RA. UPDATE0 O0 U" @' O9 `, \5 h
B. . PREPARE# N, F& O5 N1 {# E  I# ~
C. . DECLARE; m" D9 G! |$ b, h$ t( k! g
D. . EXECUTE
1 O+ \1 R, s4 g( s- F% k      满分:4  分( j1 O/ {8 A# p2 c- H0 j5 W
7.  给出下面信息: CREATE TABLE tab1 (c1 char(3) WITH DEFAULT NULL, c2 INTEGER); INSERT INTO tab1(c2) VALUES (‘345’); 如果在命令行处理器(CLP)中执行以下语句,以下哪个结果是正确的? SELECT * FROM tab1;
& m9 g" [) f7 L9 zA. C1 C2 --- ----------- 0 record(s) selected.8 j+ A% Y% Y2 @
B. C1 C2 --- ----------- 123 345 1 record(s) selected.
  V( ]5 L7 J% q6 {% A# H) b, v& RC. C1 C2 --- ----------- 345 1 record(s) selected.
& W% B5 c& C% U  ?8 x; J3 N/ cD. C1 C2 --- ----------- - 345 1 record(s) selected.
  x7 Q+ R# i1 _: p      满分:4  分
9 v- R$ _/ S. Y6 V" a+ j, q4 ?4 e8.  Which of the following privileges is required to successfully execute a Java stored procedure that uses JDBC to update several different tables?
; ~+ u+ N" _2 U2 A- Z' }A. The user must have UPDATE privilege on the referenced tables.
% ?; d+ Y/ q% Q* Q7 b1 n4 iB. The developer must have EXECUTE privilege on the stored procedure.
( R6 E! O, d) Y) e2 }" LC. The user must have UPDATE privilege on the referenced tables and EXECUTE privilege on the stored procedure.$ J6 y: m/ k! h: j. B! H
D. The developer must have UPDATE privilege on the referenced tables and EXECUTE privilege on the stored procedure./ O- B! H0 v7 V: s* L4 E
      满分:4  分' H8 s4 \* Z' b. D) W/ R! h# g* z
9.  当FROM子句中出现多个基本表或视图时,系统将执行什么操作?# Q& a8 p. a7 t* k$ N$ R7 d
A. 并
7 ?3 R8 S) P) l1 [% f) UB. 等值联接
4 h6 J0 z6 u' c' U0 iC. 自然联接$ c, l& T4 \, H: |2 ^% X
D. 笛卡儿积
9 m- D9 L, w1 ^4 ~& ?( Q      满分:4  分
# \8 U& j2 a' N8 I9 h5 I  i10.  Given the following code: BEGIN ATOMIC UPDATE country SET cities=:count WHERE CURRENT OF C1; INSERT INTO country VALUES(:co11,:co12,:co13); INSERT INTO country VALUES(:co14,:co15,:co16); INSERT INTO country VALUES(:co17,:co18,:co19); INSERT INTO country VALUES(:co110,:co111,:co112); COMMIT; END Given that all statements succeed except the following: INSERT INTO country VALUES(:co17,:co18,:co19); How many rows will be affected in table COUNTRY?. m, G3 t  @6 j4 p# m
A. 0+ V4 B, r# O. k$ E/ k3 {
B. 3- Z1 e, a- ?, ?' H
C. 4% }5 s- b/ x% s; j" F
D. 5
6 j1 w* N5 D! v8 M0 ?' J6 e      满分:4  分8 p/ O3 b3 X" S& X9 n! u) U
11.  Which of the following produces a sequentially increasing number, suitable for use as a primary key?
# i% P% z' m" p5 }A. ROWID data type. r( ~1 O- P$ K' F
B. Generated IDENTITY column
$ G+ o5 _! @% H' s4 y  oC. GENERATE_UNIQUE built-in function6 h" W/ ^& O+ }5 }1 y) R4 P1 B: \
D. CURRENT SEQUENCE special register
. @. H# J/ y5 l4 H) m6 ^* j( A      满分:4  分
5 j5 Q6 {( R6 a) O: ~1 E  y. ?3 J12.  发人员开发访问后台AIX上的DB2的windows程序,需要在windows开发平台上安装:/ m1 j% e6 `8 ^) x
A. DB2运行时间客户端- o7 n3 Y* A3 q, h
B. DB2管理客户端# [- q9 Y, p( v) \3 J
C. DB2应用程序开发客户端
. t0 f( e# J( `4 k! ED. DB2瘦客户端+ G+ q, N6 ?/ k. ?; B+ J
      满分:4  分6 ]+ z4 a' |4 ~
13.  如果需要创建一个表,并把表中的索引数据和其他数据分开存储,则应该/ y) `0 l) p; l7 n. e& q
A. 建立两个SMS表空间分别存储索引数据和其他数据
! F! ]. @, d9 s) X& hB. 建立两个DMS表空间分别存储索引数据和其他数据
# Y, k9 I( u) c/ ZC. 建立一个DMS表空间存储索引数据,再建立一个SMS表空间存储其他数据
2 |- S! D, V2 `1 Z) j$ Y1 t& J8 BD. 建立一个SMS表空间存储索引数据,再建立一个DMS表空间存储其他数据$ F1 J8 A6 r  _  m) w% ^$ t6 v1 X
      满分:4  分
+ B+ G9 o4 W* j0 A: ~% Z14.  下述关于数据库系统的正确叙述是()6 }0 h, W5 M% X
A. 数据库中只存在数据项之间的联系
" _" r. t) P1 S/ H( K- }B. 数据库的数据项之间和记录之间都存在联系3 m& g& q/ a' {% }: S" c
C. 数据库的数据项之间无联系,记录之间存在联系
. x# _0 ~4 Z% F" x. zD. 数据库的数据项之间和记录之间都不存在联系- k4 F7 L) \  z0 O* [/ f  A! C' w
      满分:4  分; m: y5 X% D# ?6 y% I' r; X! k- Z8 I
15.  E-R图中的联系可以与()实体有关
/ {  h! h2 Q+ b- x+ ~* d% {' bA. 0个
% y; C9 R6 p; ~$ zB. 1个
/ |8 Z. S$ u$ v. XC. 1个或多个
# W0 x* [: x  @% v+ X" GD. 多个/ E- Q) ]# H, l2 G) [
      满分:4  分
% ^, y+ ?' I- C7 ~/ Q3 O16.  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?
" @, C1 Q. @" OA. 10; t# L" A% z6 k4 Z5 z. G
B. 20
: O0 l( i7 K' |5 G2 `C. 30$ T# D( O) v/ Q7 }$ C; w
D. 40
9 r" P* L0 f! v8 w      满分:4  分
6 H) Q- l( {5 ^17.  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?
  I' L! u) L5 jA. 10 {# {+ J! y" v9 Y
B. 2
; m1 i& G5 j- I/ }5 b- ~; yC. 3
2 l3 l8 p) o' A3 rD. 4
$ w! N' x" a8 y9 \( |      满分:4  分+ |2 j& f7 D  I) g1 {
18.  要对应用程序预编译并生成绑定文件,需要什么特权?
: q6 h& p$ C3 L+ l6 E1 ^! NA. 数据库上的CONNECT特权- {+ ^+ B0 S, D* h% s; N
B. 数据库上的BINDADD特权3 l8 l* v7 I& J# C6 d$ y. L
C. 程序包上的BIND特权
. e- M4 N# Z/ JD. 程序包上的CONTROL特权( O% \6 {* M  I/ ~( G+ V. ?
      满分:4  分
  j# c! \/ v: q19.  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?' Q" |3 ?% ]: M/ V- 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.
% m6 v' E% r8 ?6 `( O& DB. 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./ I9 Y4 ^/ i: \* C! l  @
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.9 b, i" y$ m3 Y
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.
2 e1 X% c! ~) C! d9 f" q  @$ f      满分:4  分
. R9 u. v2 Y, l& J3 N! ^$ b. z1 I20.  缺省的数据库日志文件的类型是:6 e2 `% Q. Y7 l! M* G9 i6 x: p
A. Circular Log0 p+ `4 m8 y9 }8 R3 @/ G8 p
B. Archival Log
* G5 S0 m. g  aC. Primary Log7 L: P4 ?1 l$ M) a" p+ q
D. Secondary log
' g. ^2 U$ Z3 b! c, p      满分:4  分
# d, K  k. ~9 U: K" R21.  如果一个用户USER1被授予了表TAB上的CONTROL特权,如果需要限制该用户对表的存取,应使用以下哪条命令?" h( n! B/ e  I$ J2 m- U
A. REVOKE ALL ON TAB TO USER1
: A. [" z  B. x/ k7 f9 a0 I& WB. REVOKE ALL ON TAB FROM USER1+ Q, ~# j& d( A4 u; R4 M/ e, @4 N
C. REVOKE CONTROL ON TAB TO USER1# S0 |" ~( `% S4 [/ [& M. @0 @$ a& o
D. REVOKE CONTROL ON TAB FROM USER1* P- E! |& r- D* d+ L
      满分:4  分
; X0 U/ r, A1 S& k, S. m5 j. Y22.  如果开发人员在AIX操作系统上开发访问后台AS400上的DB2数据库,则需要在AIX开发环境中安装:()
9 X6 ?3 Q# A# a4 I( ^' uA. DB2个人开发版(PDE)
+ Y( X% m* ^7 AB. DB2通用开发版(UDE)
' }, M: f5 h# I) ?      满分:4  分7 R! D$ y" a) l9 _
23.  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?
4 n) b! X. R1 l7 \4 Z9 cA. FOO requires EXECUTE privilege on the package.% G. x% Q; `5 }' O, v
B. FOO requires the privilege to create the package on the remote DB2 server.
' |8 R/ S8 C! K- I( U: k- @C. FOO requires EXECUTE privilege on the package and INSERT privilege on CUST.ORDERS.* e. E+ i$ t2 Y; Q
D. FOO requires the privilege to create the package on the remote DB2 server and INSERT privilege on CUST.ORDERS.+ }  A5 G7 S2 G1 h
      满分:4  分4 f+ ]4 `- Q. @6 D7 q$ C1 L
24.  设有两个事务T1,T2,其并发操作如下所示: T1: T2: 1) 读A=10,B=5 2) 读A=10 3) 读A=20,B=5 求和25 验证错正确的评价是哪个?- ]! \3 x3 B+ P% g0 l
A. 该操作不存在问题
9 L6 z  m3 V( @' U5 l9 `B. 该操作丢失000
* \% W$ Z  }+ }* @( E; rC. 该操作不能重复读
& Z" V0 _5 w3 DD. 该操作读“脏”数据( i- N3 ?; e+ j, Z, K
      满分:4  分# r0 c" g; H- W4 R8 v
25.  Which of the following will retrieve results that will only be in lower case?
* C) v, @& L: VA. SELECT NAME FROM EMPLOYEE WHERE NAME='ali'* |" o! y# h& x9 `
B. SELECT NAME FROM EMPLOYEE WHERE LCASE(NAME)='ali'
2 I/ |9 v6 b$ V/ ]5 w$ VC. SELECT UCASE(NAME) FROM EMPLOYEE WHERE LCASE(NAME)='ali'
0 ~  q4 f6 _0 S5 Z/ k# g9 @D. SELECT NAME FROM EMPLOYEE WHERE NAME IN (SELECT NAME FROM EMPLOYEE WHERE LCASE(NAME)=LCASE('ALI'))
; J1 s1 K% E# ]+ L  y0 q      满分:4  分 ( i% ^. `4 y4 V, M

8 p! q5 ^! r) b: k! W+ ?谋学网: www.mouxue.com 主要提供奥鹏作业资料,奥鹏在线作业资料,奥鹏离线作业资料以及奥鹏毕业论文,致力打造中国最专业远程教育辅导社区。- u$ h' F, ], R4 x2 E4 B

本帖子中包含更多资源

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

×
奥鹏作业答案,奥鹏在线作业答案
您需要登录后才可以回帖 登录 | 会员注册

本版积分规则

 
 
客服一
客服二
客服三
客服四
点这里给我发消息
点这里给我发消息
谋学网奥鹏同学群2
微信客服扫一扫

QQ|关于我们|联系方式|网站特点|加入VIP|加盟合作|投诉建议|法律申明|Archiver|小黑屋|奥鹏作业答案-谋学网 ( 湘ICP备2021015247号 )

GMT+8, 2024-12-24 03:03 , Processed in 0.117629 second(s), 24 queries .

Powered by Discuz! X3.5

Copyright © 2001-2023 Tencent Cloud.

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