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

 找回密码
 会员注册

微信登录,扫一扫

手机号码,快捷登录

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

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

[复制链接]
发表于 2011-4-10 09:50:30 | 显示全部楼层 |阅读模式
谋学网
吉大11春学期《数据库应用技术》在线作业一资料
7 ?( [/ J3 l) p1 ?2 P在线作业, 数据库, 单选, 资料( J, u% b+ l% e. X( m0 B" l- h6 O
一、单选题(共 25 道试题,共 100 分。)V 1.  Which of the following database resources can be freed when a unit of work is committed?
$ t- ~6 U+ T: [% m; O/ x: X0 nA. row locks/ u1 }+ @# |  a. `
B. cursor names" q0 @% g& K. x8 S/ @% c3 l) M
C. buffer pools
& O! n9 d9 a" DD. cursors WITH HOLD
9 E$ W( g( `- ]( {2 \& {) B# B      满分:4  分+ F# P0 e6 r4 E
2.  Which of the following will retrieve results that will only be in lower case?
' Z4 o' ?2 k5 KA. SELECT NAME FROM EMPLOYEE WHERE NAME='ali'  f) z1 v8 O% K, J: }: y
B. SELECT NAME FROM EMPLOYEE WHERE LCASE(NAME)='ali'+ d' w# s& T/ X6 y! I
C. SELECT UCASE(NAME) FROM EMPLOYEE WHERE LCASE(NAME)='ali'
. x" @, |$ [& q7 b1 |D. SELECT NAME FROM EMPLOYEE WHERE NAME IN (SELECT NAME FROM EMPLOYEE WHERE LCASE(NAME)=LCASE('ALI'))
8 I0 N+ o/ A5 C" ?# Q+ {      满分:4  分
* Y/ k* ~+ O" P' R0 z8 ?& T3.  下列SQL语句中,能够实现”收回U4对学生表(STUD)中学号(XH)的000权”这一功能的是以下哪项?& T( ]5 M. I8 u
A. REVOKE UPDATE(XH) ON TABLE FROM U4
3 s/ G% }7 a' Z/ g, P6 C3 c+ f9 ~B. REVOKE UPDATE(XH) ON TABLE FROM PUBLIC
$ |$ g) Q0 P  z# QC. REVOKE UPDATE(XH) ON STUD FROM U4
$ L( y7 {( o8 s5 OD. REVOKE UPDATE(XH) ON STUD FROM PUBLIC
* x. ]8 e5 V; b3 \8 ^7 i      满分:4  分
' p9 i. w, R  b" b9 ]4.  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"?% u3 Q5 a, W" S( o
A. A
2 Q, Q* b' \3 w1 B: {) \B. B
1 Y, H4 {& V9 PC. C
. j: {+ L) Q& @0 S4 @, tD. D& `) F3 y7 ^* Q2 V% x
      满分:4  分2 F& A8 J: i( H
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?
) Z& a6 \/ `: KA. String sql = "UPDATE employee SET salary=salary*?WHERE workdept=?"; statement stmt=con.createStatement(sql);
9 ?' q2 v1 b$ x& u( ]" AB. String sql = "UPDATE employee SET  *?WHERE workdept=?"; statement stmt=con.createStatement(sql);3 b* A8 W+ V9 o* G. _
C. String sql = "UPDATE employee SET salary=salary*?WHERE workdept=?"; statement stmt=con.createStatement(sql);
# J: l9 W8 _& [D. String sql = "UPDATE employee SET salary=salary*?WHERE workdept=?"; statement stmt=con.createStatement(sql);
3 l* f: O' |3 u* G8 `8 m1 t: f: j# d      满分:4  分+ N$ E8 e9 J" |, D; K. }
6.  How many rows can be retrieved using a single SELECT INTO statement?
7 v, B$ K# I8 H7 f+ [A. Only one row6 G& b* d9 P' c- s' Q# N0 I
B. As many as are in the result. Q& X( p* S% h' u2 a  q- m
C. As many as are host variables used in the call% q* {& b3 ]4 k/ O& E
D. As many as host variable array structures can hold, t, _2 ?  h1 \" d- u3 p
      满分:4  分, \$ V: k7 s6 |& B1 I2 W
7.  Which of the following privileges is required to successfully execute a Java stored procedure that uses JDBC to update several different tables?+ G+ l; a3 y! z% U2 B" o
A. The user must have UPDATE privilege on the referenced tables.  ~) p* q2 F5 {1 D
B. The developer must have EXECUTE privilege on the stored procedure.
% b+ x2 T* `$ g1 `* A& CC. The user must have UPDATE privilege on the referenced tables and EXECUTE privilege on the stored procedure.& {& x0 n* O! o1 l9 T! v) Q
D. The developer must have UPDATE privilege on the referenced tables and EXECUTE privilege on the stored procedure.6 j. ]/ ~9 r# g: E$ F
      满分:4  分/ d5 f0 f# \  G" A' i; ]: E; r
8.  当数据库遭到破坏时,为了能迅速恢复,在进行事务处理过程中将对数据库更新的全部内容写入以下哪项?& j8 T+ C. \6 u- u+ }) [; {
A. 副本文件3 n5 _) L' I7 J
B. 日志文件
. ?8 K# _# g( Z# E" ]C. 检查点文件
) o  U7 Y7 {6 E. _D. 死锁文件
2 {$ @; f: X  U4 O      满分:4  分
+ ?1 {2 Y$ U1 [2 w9.  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?2 \! j6 @0 k: E
A. 0- u/ N, e5 D8 e4 \2 f) \6 o/ c
B. 1
6 i1 d6 v$ S/ WC. 2/ h7 c# d; k, t4 L- e  N0 L
D. 3  [3 y. t+ W! ^! o! f- a' L/ {" u
      满分:4  分
: D! q+ B1 K, F6 `& d4 P10.  在语句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,则该行将被拒绝插入。
' `* j& [9 K8 k$ \# wA. 正确0 k  @* \6 N. U# ^% |* w
B. . 错误
7 i+ _7 S6 s; c" O- `* `      满分:4  分( Z; c$ o& `! f6 ^+ ?0 `! k
11.  To prepare an embedded SQL program for use with a host-language compiler, which of the following database components is required?
& l) _0 j4 Z  k( h1 Q6 G7 dA. Binder
4 M1 A5 z* q0 M; w! g: h% VB. Precompiler
7 j3 z, C3 L. C- K, MC. Stored Procedure Builder
5 y2 N9 Z+ r; B9 D8 a* `D. Application Development Center- A/ m9 C' Q/ h" @7 l7 x
      满分:4  分
, Y9 t  n, ^3 [$ K2 K9 t8 N( K" X12.  Under which of the following situations must dynamic SQL be used?7 ~% b- ?0 M( z  U6 z% E
A. When temporary table references exist at compile time
  {* b5 N0 u9 C1 ?9 j% bB. When the host variables' values are unknown at compile time
( |3 A8 n3 J2 oC. When the columns in the SELECT clause are unknown at compile time! P3 v' B2 s/ c4 U
D. When the number of rows being returned are unknown at compile time
  J5 F% H7 F; Q; P$ A  y. f; S9 o      满分:4  分/ _0 J; l) C. f' T  z4 _/ \
13.  缺省的数据库日志文件的类型是:
* w# T0 e9 B: r1 z* C& ?: {A. Circular Log2 a  O- e4 j+ ~8 p$ ^
B. Archival Log1 v5 j  q! q0 m2 ?
C. Primary Log
4 w$ R4 q5 F+ `. p  `D. Secondary log
1 ~. P- e3 P& T$ E  s; y9 `      满分:4  分
  i# D! c$ `; j# u14.  关系数据库管理系统应能实现的专门关系运算包括()
. k4 i1 O$ w% z. j+ K! @0 [" iA. 排序、索引、统计( ~( @% T# \& W0 }- P/ W
B. 选择、投影、连接
' b% Q2 E% T2 t' ~' J/ A7 @C. 关联、更新、排序
: ]( g0 @1 Z# b2 LD. 显示、打印、制表8 g9 X: [0 I7 ?7 [( p1 J" o9 R
      满分:4  分$ ]4 ~7 L6 \8 w) ^3 w+ W
15.  下列那种隔离级对于只读操作不在数据行上加锁?
8 H2 L- \* C# X; O% u& t/ vA. RR9 x% U) O8 G: p+ a, u
B. RS
' _# E8 q7 N+ Y0 w: xC. CS
6 o$ y* y9 s! ?5 C$ R/ iD. UR
1 ?$ A; W0 I- g! ^      满分:4  分
8 t1 G  H) a: x, H& z8 i+ L16.  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?% R8 T" Q2 C3 U+ B$ {9 `6 I
A. 0
! A4 ~4 q; x0 v2 f9 ?B. 2
1 k& M6 d9 f, |% M0 P# SC. 3
4 h  V% O& y$ p$ D& L4 _D. 6
, t: `: E3 i3 a+ S" S9 o. y( \      满分:4  分
: d4 R5 ~( u) I# H9 Y+ q( w$ t' @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?. r( S8 _- ^( j
A. 1
* q8 e+ {/ p: `& c. {B. 6  l) t* J! T! O7 X
C. 8; }. [" B3 O7 j
D. 36
- k$ @9 w, O! ^# l      满分:4  分. q; V. c3 m* |7 W/ [! n
18.  Which of the following methods must be used for deleting a row using the Statement interface in JDBC?4 [: I+ U4 \2 b7 D% P
A. delete()
5 W6 t. L% g& Q0 y) Y& qB. execute()
+ G; ?1 Y  v  i8 l7 y6 v  XC. executeUpdate()
" L: Y- p5 W7 j0 B/ P& R, AD. executeDelete()
% C& F; J5 J, z% x; C, Y4 }, V; p      满分:4  分7 h$ h7 E' s( N+ S% F. f
19.  对于UNIX和Intel平台上的数据库应用,如果需要存取OS/400、VM/VSE和OS/390系统上的数据库,需要DB2哪种产品的支持?9 f- A) z) H; Y" `
A. DB2 Connect
& |8 W9 s7 V1 j$ d. |B. DB2 DataPropagator
' z7 q: F6 y) a$ j7 OC. DB2 Net.Data% J2 M, F2 |2 C: i7 d
D. DB2 DataJoiner- l& y9 ~, s! n# _. U$ A. h% n, i
E. DB2 Relational Connect0 ]2 _9 u( w- Y2 Q
      满分:4  分
" p6 W  P) e6 n& P2 M, k  V20.  Which of the following is TRUE for all cursors defined as FOR FETCH ONLY?
) l7 `  @$ k+ j! w' n- EA. The cursors are unambiguous.7 b$ B3 f8 X9 H7 b" T" V. c0 T
B. Only the first row is returned.+ Q5 D9 b6 X. f
C. Cursor stays open after a commit." }9 D3 z) [* e
D. A temporary table is created on the server.
1 O2 Z  M: C" V$ f+ Z      满分:4  分, {# I5 q$ d5 ^/ q# k, c9 W: m
21.  定义基本表时,若要求某一列的值不能为空,则应在定义时使用什么保留字?但如果该列是主键,则可省写。
. G+ J; E; [& t! mA. NULL
, |+ f7 x: {# ]2 F4 U: iB. NOT NULL
( R/ L2 R$ s1 w. c1 EC. DISTINCT
/ h9 |, S7 f2 l( _4 M( o- kD. UNIQUE. Y# e* ?7 C3 J
      满分:4  分! \- B% Q4 `" z+ Z9 C
22.  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?
2 b) l" @7 ]' Y& ~A. One row is inserted in EMPLOYEE5 p1 ]) I: c3 X- M; L/ H; m
B. No rows are inserted in EMPLOYEE, V0 |0 N# r2 F( A6 ~3 f
C. Two rows are inserted in EMPLOYEE4 y$ [" x$ {" x0 T4 Z
D. One row is inserted in DEPT and 2 rows are inserted in EMPLOYEE1 F! C) |1 H. ]6 g' W1 C
      满分:4  分. x1 o) w9 B; E, G$ _
23.  Which of the following CLI/ODBC functions should be used to delete rows from a DB2 table?
7 o2 |- h: T' U4 K3 eA. SQLDelete()
2 I7 V% M/ ~" Q+ \" V, B+ r& RB. SQLExecDirect()$ X4 Q/ c" k1 e8 e( K  i
C. SQLBulkDelete()
5 ?1 q( r: X) ~, k, ID. SQLExecuteUpdate()& Q. Z: T1 u9 Q
      满分:4  分
. t1 u7 V. \3 K% N6 x! U24.  下面哪个工具提供了对文本、图象、音频、视频和XML文档等非传统数据类型的处理能力?
: q/ Z3 B; D# D6 |7 m5 tA. DB2 数据仓库中心3 {0 h: \* a7 ^" m& Q- \  M! q
B. DB2数据链接管理器- \9 R# t+ f" A+ Z8 g6 {. S; }
C. DB2关系扩展器
; _8 V. q7 R8 I- ~. I7 sD. DB2 OLAP Starter Kit4 m/ h' l# C: \0 F8 \( \
      满分:4  分
: ~- C4 V  E6 B) l5 m25.  如果一个用户USER1被授予了表TAB上的CONTROL特权,如果需要限制该用户对表的存取,应使用以下哪条命令?2 ^7 @! A* f, S( V
A. REVOKE ALL ON TAB TO USER1! c3 R$ V( `+ R( u' D! a
B. REVOKE ALL ON TAB FROM USER1: ~$ x) o4 ]  ?( i+ T+ _
C. REVOKE CONTROL ON TAB TO USER1- X' f% _" Y% C" M
D. REVOKE CONTROL ON TAB FROM USER1
: t6 ~- b- }* w0 g8 W$ Z6 W      满分:4  分

本帖子中包含更多资源

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

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

本版积分规则

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

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

GMT+8, 2024-5-24 05:53 , Processed in 0.101497 second(s), 21 queries .

Powered by Discuz! X3.5

Copyright © 2001-2023 Tencent Cloud.

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