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

 找回密码
 会员注册

微信登录,扫一扫

手机号码,快捷登录

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

奥鹏吉大11春学期《数据库应用技术》在线作业一资料

[复制链接]
发表于 2011-4-9 15:44:57 | 显示全部楼层 |阅读模式
谋学网
一、单选(共 25 道试题,共 100 分。)V 1.  Which of the following database resources can be freed when a unit of work is committed?
9 H6 M; _7 y6 D( gA. row locks% {. I' a' {! m7 t; x9 v
B. cursor names- R% B& _: w. W6 L( t
C. buffer pools
, g3 e/ Q; y0 f+ D; K, F& mD. cursors WITH HOLD' B1 U- u) ?$ a0 G+ O, z
      满分:4  分
) S" l& ^) O3 R7 l2.  Which of the following will retrieve results that will only be in lower case?
! K' X8 o, l$ U/ U3 _% Z0 w; [A. SELECT NAME FROM EMPLOYEE WHERE NAME='ali'' |. N* L2 h6 B
B. SELECT NAME FROM EMPLOYEE WHERE LCASE(NAME)='ali'9 r2 S1 ?1 x) g: J
C. SELECT UCASE(NAME) FROM EMPLOYEE WHERE LCASE(NAME)='ali'9 H* w5 m% f9 r, x9 N
D. SELECT NAME FROM EMPLOYEE WHERE NAME IN (SELECT NAME FROM EMPLOYEE WHERE LCASE(NAME)=LCASE('ALI'))
5 O& H& E/ W. o( P; g8 b      满分:4  分6 V! F8 \" G+ Z- c$ I) B5 \
3.  下列SQL语句中,能够实现”收回U4对学生表(STUD)中学号(XH)的000权”这一功能的是以下哪项?
- B# D1 `% [( J3 L* j/ B* N' JA. REVOKE UPDATE(XH) ON TABLE FROM U4
" C/ N' R: F' ~B. REVOKE UPDATE(XH) ON TABLE FROM PUBLIC
/ [  m7 l0 b* m% T" C+ ?- c6 L' \C. REVOKE UPDATE(XH) ON STUD FROM U4
$ w" m* B% d0 |5 r# dD. REVOKE UPDATE(XH) ON STUD FROM PUBLIC
7 K! z. Z+ K" h& b% c0 R2 ~      满分:4  分
8 |& j  ~- C  V1 ]3 x4.  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"?
0 o/ i3 b% X/ Y! \0 n  n" T6 NA. A' n  O& ?3 v2 q: h. D( }
B. B8 u5 K- O  _, H9 d1 l
C. C
' ~+ k, _7 P+ @D. D
0 y4 Q% u9 t" P      满分:4  分4 S. F* x# V% g' Q: O" b/ c: E5 x
5.  Given the EMPLOYEE table definition: CREATE TABLE employee ( workdept CHAR(30), salary INTEGER ) Which of the following is a correct usage of parameter markers in a JDBC program?1 @3 n2 K+ l8 H4 J" B
A. String sql = "UPDATE employee SET salary=salary*?WHERE workdept=?"; statement stmt=con.createStatement(sql);6 y( M8 Y% A: }4 p9 E1 _2 f
B. String sql = "UPDATE employee SET salary=salary*?WHERE workdept=?"; statement stmt=con.createStatement(sql);& V- @$ C1 N& j
C. String sql = "UPDATE employee SET salary=salary*?WHERE workdept=?"; statement stmt=con.createStatement(sql);# u: A2 n! N  E) d6 H0 W
D. String sql = "UPDATE employee SET salary=salary*?WHERE workdept=?"; statement stmt=con.createStatement(sql);! S- Q) K5 J% o2 n
      满分:4  分2 z5 a* e' R( E1 ]
6.  How many rows can be retrieved using a single SELECT INTO statement?
! N) r! v) m* {( `- e; ?! ?A. Only one row
0 K7 A7 W( T) L/ v  CB. As many as are in the result
3 D1 P$ G7 p9 |2 u) M0 [C. As many as are host variables used in the call
- d' H+ O) B- j; t2 s- D! R: RD. As many as host variable array structures can hold
7 U5 t" G6 {+ f; L) k  b7 T      满分:4  分
/ n# s- c3 N0 |7.  Which of the following privileges is required to successfully execute a Java stored procedure that uses JDBC to update several different tables?
8 X: h" r3 g. Z- W  L! }" @8 a. [7 EA. The user must have UPDATE privilege on the referenced tables.6 l1 y6 I  _1 Y( s1 k- y9 ]
B. The developer must have EXECUTE privilege on the stored procedure.1 Y- x2 M3 U1 `( r4 V" E
C. The user must have UPDATE privilege on the referenced tables and EXECUTE privilege on the stored procedure.# A: K1 K. H5 u( v# E7 |2 w: X) ^
D. The developer must have UPDATE privilege on the referenced tables and EXECUTE privilege on the stored procedure.  p! l  B/ u3 }% Y7 M; R- Y' d6 V
      满分:4  分
. q. N5 x7 A& v. \7 o8.  当数据库遭到破坏时,为了能迅速恢复,在进行事务处理过程中将对数据库更新的全部内容写入以下哪项?5 _* U4 [9 P2 ~
A. 副本文件
2 ], y- B( W% j! G4 rB. 日志文件
* M0 |9 q  f  f# L# J  qC. 检查点文件7 ]( K0 y1 r* W6 K7 Q. q
D. 死锁文件
4 K. ^- {7 e6 J1 E) _( G# u      满分:4  分% n% t& Z. A% A; A$ b/ ^- z
9.  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?' K! d2 x4 G3 I( L0 H
A. 0  H3 ?5 _# G: {! N5 U# {8 R8 [8 N! z( y
B. 1  I4 N' |7 e. e% g6 V
C. 2
5 o# R3 m0 |' V" Q7 y# cD. 3
4 t: f6 Q- d4 x' X' S9 L# `& g      满分:4  分: c. f. p1 q# N4 b
10.  在语句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,则该行将被拒绝插入。9 n4 H+ n0 @  Z& w/ b' j' o% ^
A. 正确( ]# @3 E4 W0 p3 D& e; D
B. . 错误
3 l6 x. T7 K+ N% _5 m      满分:4  分( W2 c, H- L* q, j
11.  To prepare an embedded SQL program for use with a host-language compiler, which of the following database components is required?0 |  a( B8 @3 a4 f# g$ l8 x! Y% z) E
A. Binder
$ \3 o4 e! r9 X8 K' b/ RB. Precompiler
" N7 q* x7 \2 KC. Stored Procedure Builder# ^4 c- }/ o  V8 u$ H
D. Application Development Center
4 C1 ~, u- H, C& B7 N) ]      满分:4  分
% H6 Z% M; [# ~7 z) J% J0 W) D  K12.  Under which of the following situations must dynamic SQL be used?/ B) G4 i& _1 `/ K: B1 Z2 `
A. When temporary table references exist at compile time" L) C" ]2 T1 k# t$ d1 |
B. When the host variables' values are unknown at compile time
; T( t) q- R$ i' k, {- E& @C. When the columns in the SELECT clause are unknown at compile time" C. z: o( b: }" n( ]0 ~
D. When the number of rows being returned are unknown at compile time% ^: m! r; d5 A8 N8 {5 t
      满分:4  分
8 T9 o7 w+ ]- S; r1 @13.  缺省的数据库日志文件的类型是:
  i4 L+ X$ @5 M+ i  JA. Circular Log* ^! Z( b$ y  j$ b& |" z
B. Archival Log
/ _( Q: h5 P3 g: a- ~6 p8 qC. Primary Log$ ~3 t- `6 q: ~0 E! B/ I
D. Secondary log8 ~* ~5 w6 `  j$ P! b
      满分:4  分
  `4 D; F: X* r) O9 |' E' N& d14.  关系数据库管理系统应能实现的专门关系运算包括(), n$ o& ?' t! {% Q% s
A. 排序、索引、统计7 A5 z2 d/ u8 H- M5 a
B. 选择、投影、连接
  X" T9 |: C0 j& o* w! h" ]# ^C. 关联、更新、排序
0 Z8 J+ I8 I9 o( jD. 显示、打印、制表
1 t: I3 E% O5 P' {) h, f      满分:4  分
4 b3 P& Q) r& ^& \15.  下列那种隔离级对于只读操作不在数据行上加锁?
& d, |" T  Z" j, o" b/ AA. RR
( E: e' [9 o0 E5 AB. RS& o) q1 n  d7 a4 G  t% K( `
C. CS
! \( d( h' ]5 ?5 SD. UR
3 O# P3 ?2 C( f# v      满分:4  分  B+ h  F# S' V" n& b- k+ q: R
16.  Given the tables T1 and T2 with INTEGER columns: T1 COL1 ----------- 1- 1- 22 T2 COL1 ----------- 1- 2- 22 and the following statement that executes successfully: DELETE FROM t1 WHERE col1 IN (SELECT * FROM t2) How many rows will be left in T1 after running this statement?/ q2 ~  ]5 F4 I8 D
A. 0
' o9 u7 K' u4 s8 ]$ C$ M4 |8 mB. 2  F5 y& d5 W( d0 O! @
C. 3
+ F* s$ A9 a, {/ ?+ H+ I7 cD. 6
0 T2 H5 M2 |! b" U6 E! }1 o      满分:4  分/ B; ?+ `& Q$ S1 }2 g$ L
17.  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?  h' h: m- N  c$ e' |' A6 c* `
A. 1
* [) Z% c, {( a4 IB. 6
/ K5 N+ V. ~4 ]& U  o& sC. 8
5 l. K$ v4 \* o* RD. 367 i# t1 ?5 b7 a3 ~4 Z
      满分:4  分
* c7 c. w: Y& }- |, J18.  Which of the following methods must be used for deleting a row using the Statement interface in JDBC?" C5 U+ O+ j- S1 [- e  |
A. delete()
+ F. [: r& _; C2 S. C  j6 S( A( v9 c5 YB. execute()
- E' _0 Y4 y+ f2 b$ @C. executeUpdate()
8 X0 `& x1 v( t6 vD. executeDelete()
( C: V# T* C- e9 h0 p) i      满分:4  分
' z3 Z) c* @" [19.  对于UNIX和Intel平台上的数据库应用,如果需要存取OS/400、VM/VSE和OS/390系统上的数据库,需要DB2哪种产品的支持?
* m+ [# v7 Y# cA. DB2 Connect, w! Z/ g! h5 l0 ^9 F
B. DB2 DataPropagator
9 h- ~2 u+ h. R2 fC. DB2 Net.Data4 V4 q) ^0 R8 g" |
D. DB2 DataJoiner" n" r8 y* @) n+ m$ g0 x" Y
E. DB2 Relational Connect
2 f7 W/ h/ ]8 V1 ]2 r- p. N: P. y      满分:4  分& m3 H3 t. H3 g9 R
20.  Which of the following is TRUE for all cursors defined as FOR FETCH ONLY?" M# V% m, t4 k9 H7 k5 \/ B
A. The cursors are unambiguous.
; I* V) ^( u" ^B. Only the first row is returned.. Y0 \/ t( ^) `6 h9 M" A* |
C. Cursor stays open after a commit.
( D; @% j" f+ O* qD. A temporary table is created on the server.
( Y- @/ K& l; W4 s6 H      满分:4  分' Y4 O& s/ r9 N( y7 s! e2 _  J
21.  定义基本表时,若要求某一列的值不能为空,则应在定义时使用什么保留字?但如果该列是主键,则可省写。
) d+ S1 A- A. I$ v* @2 p1 N8 Z3 ~A. NULL0 w( Y. k, F: ?$ U
B. NOT NULL
- \9 P2 l& N1 n( g7 ZC. DISTINCT
* M+ |: X8 I" a  v  O( cD. UNIQUE
2 Y  I5 p3 V$ X0 R      满分:4  分
9 f3 b( O! q3 s! f" L7 d22.  Given the tables, the relationships and the statements: EMPLOYEE DEPT emp_num emp_name dept dept_id dept_name 1 Adams 1 1 Planning 2 Jones 1 2 Support 3 Smith 2 4 Williams 1 Relationship: employee.dept is a foreign key on dept.dept_id. stmt="INSERT INTO employee VALUES (5,'jones',3)"; EXEC SQL EXECUTE IMMEDIATE :stmt; stmt="INSERT INTO employee VALUES (6,'jhonson',2)'; EXEC SQL EXECUTE IMMEDIATE :stmt; How many rows are successfully inserted?
0 V4 l# f& J7 e- c( O, nA. One row is inserted in EMPLOYEE2 T+ E) d% I- e
B. No rows are inserted in EMPLOYEE4 u! z: x) V, S- t- }
C. Two rows are inserted in EMPLOYEE
+ m$ c' a: q, ~; B# gD. One row is inserted in DEPT and 2 rows are inserted in EMPLOYEE
' j0 |6 o" @1 d1 S7 U      满分:4  分; M7 m  T+ K6 y1 O
23.  Which of the following CLI/ODBC functions should be used to delete rows from a DB2 table?: v  u9 {( k3 O" U8 ~, d  \, c2 g6 o
A. SQLDelete()/ z* r( a! k$ P
B. SQLExecDirect()  ~4 z7 ~, ]- v$ _" _4 g
C. SQLBulkDelete()
6 @) _- z; Y" @& Y! i3 gD. SQLExecuteUpdate()
9 R$ K, B& N4 \4 M( Z4 {      满分:4  分
3 J# R2 R! Q# f0 Q, y( e6 G24.  下面哪个工具提供了对文本、图象、音频、视频和XML文档等非传统数据类型的处理能力?& V$ f* o8 a- L, w$ D+ M3 a
A. DB2 数据仓库中心
$ t# D/ m+ r* o5 m  HB. DB2数据链接管理器# D7 J7 ~5 D0 Q: K
C. DB2关系扩展器, Q3 B7 a9 y6 n  l
D. DB2 OLAP Starter Kit& X- m  s# s2 l; W/ ]0 N
      满分:4  分: e  [) W$ V# J1 e8 T* z5 p
25.  如果一个用户USER1被授予了表TAB上的CONTROL特权,如果需要限制该用户对表的存取,应使用以下哪条命令?: z$ N. e. d5 B  p0 @# t$ f
A. REVOKE ALL ON TAB TO USER1
2 w% ^1 p) u+ ]8 qB. REVOKE ALL ON TAB FROM USER1  R/ p, F  j9 U* L7 x  K& M
C. REVOKE CONTROL ON TAB TO USER1
; M" U2 U9 P$ g0 Z: u# MD. REVOKE CONTROL ON TAB FROM USER1! G' l% }4 ?, S8 d: c
      满分:4  分

本帖子中包含更多资源

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

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

本版积分规则

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

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

GMT+8, 2024-12-22 16:48 , Processed in 0.103518 second(s), 21 queries .

Powered by Discuz! X3.5

Copyright © 2001-2023 Tencent Cloud.

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