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

 找回密码
 会员注册

微信登录,扫一扫

手机号码,快捷登录

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

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

[复制链接]
发表于 2011-4-9 15:45:44 | 显示全部楼层 |阅读模式
谋学网
一、单选(共 25 道试题,共 100 分。)V 1.  在SELECT语句的下列子句中,通常和HAVING子句同时使用的是以下哪项?
& ]/ O$ a7 n" ~0 o  WA. ORDER BY子句
0 t( v+ n9 T) w/ yB. WHERE子句
5 t. p+ a+ B, Q1 |C. GROUP BY子句
# I) h' c1 B+ w0 XD. 均不需要
' g4 U# Z9 j8 w/ B# j  p      满分:4  分
3 B) g) [) k4 `( A2.  Which of the following is TRUE for all cursors defined as FOR FETCH ONLY?
* m0 r0 T; x0 v0 A( cA. The cursors are unambiguous.( e3 H( `! u9 B' ?9 c8 {$ b$ [' a
B. Only the first row is returned.
4 X  e" F( p6 M1 CC. Cursor stays open after a commit.
* x1 E7 W4 o5 q% z& O. OD. A temporary table is created on the server.
: d' J7 [) f4 |* U, g4 A2 y, v      满分:4  分, Q$ a' @9 q6 y+ A5 G
3.  对于支持小规模的部门级应用,这些应用不需要存取驻留在OS/400、OS/390等平台上的远程数据库,则需要哪种级别的DB2 产品?$ o) s) [* C2 [; E
A. 企业版
6 f, n+ N9 w, L' t1 NB. 工作组版  G' f6 t2 J5 t, o! r2 s1 M
C. 企业扩展版8 _) Q/ b% J9 M& X
D. 个人版
9 \- W5 f5 w  U8 \4 Y. BE. 卫星版- a. N$ ~# P6 Y* e4 ?& D+ Q
F. 微型版/ }8 @) H6 w; k6 h5 I+ n) a& L* N
      满分:4  分( l& O1 }% f& u5 l
4.  The following commands are issued against a data source containing table user2.org: CREATE ALIAS user1.org FOR sample.org CREATE TABLE org.sample ( c CHAR(1)) CREATE ALIAS sample.org FOR user2.org CREATE ALIAS user2.sample FOR sample.org Given the user SAMPLE issues the following statement: SELECT * FROM sample For which of the following database objects will access be attempted?
% ~. |  ?9 b% v; i+ j( E0 gA. user2.org8 [+ N+ v" Y2 J$ ~4 U
B. org.sample
  i& ^: q5 P2 K& P8 u! TC. sample.org% a# o; y% ^: o. ^5 v
D. sample.sample3 E$ {& k5 T7 Q6 n
      满分:4  分0 H; C/ d, E) F  ~. I; {7 k6 n6 \
5.  A cursor is declared with the WITH HOLD option. Which of the following statements is always true?; ]; [1 V' [/ i4 x8 Z7 I3 k
A. The cursor will remain open after a COMMIT.) R& t/ Q/ e2 C9 L, I; W# g0 l8 Z
B. All rows retrieved are locked until a COMMIT.
; e9 X) p" X: jC. A COMMIT will not be allowed until the cursor is closed., J+ x2 `9 O% |6 Z, W+ p
D. Locks obtained by the cursor will be kept after a COMMIT.
( N; j1 S0 C$ [7 s+ z4 I  p      满分:4  分
  {! x" I1 r# A: V6 b# Y& v6.  使用SQL语句进行查询操作时,若希望查询结果不出现重复元组,应在SELECT子句中使用什么保留字?
; ^7 M# p% F; J" }* SA. NIQUE
" [7 q+ u* H- Q) S8 aB. ALL4 e" w" H2 m& h
C. EXCEPT7 F( `1 y* p8 ~
D. DISTINCT
) n! g4 ^" u% B3 F5 q$ W) C      满分:4  分* _+ D0 {0 s1 Q1 |( \7 ]1 [) R
7.  如果用户在SQL语句中没有指定数据库对象的SCHEMA,则其缺省的SCHEMA是:
. b( n# ]2 g% h0 iA. SYSIBM7 m3 i0 d( ]9 i3 ?
B. SYSCAT( P8 M7 V( M: Q
C. SYSSTAT& g' G' B' S, |1 H4 t! _
D. 该用户连接到数据库时所使用的用户名( [# Y* b" V% [4 Z  s+ ]2 t
E. 以上都不对& `; D$ P7 d8 p' K# E
      满分:4  分' ?6 E2 I6 I  P
8.  数据库系统的并发控制的主要方法是采用()制。7 e9 e- m6 ~* K. S( E5 t
A. 拒绝& C3 d; y2 c7 M/ |/ y
B. 改为串行! M! Q0 k$ a9 D
C. 锁
% S. q+ O" N+ M4 QD. 不加任何控制4 z( a7 t1 Z' n5 C1 m. ~. `
      满分:4  分
: Z$ [! R3 Z+ B, }9.  Given the expression: 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 * FROM most_cities In which of the following does MOST_CITIES exist?& b  ~" D  A* W- i( \  O" b
A. user tables
+ b: N5 T5 P8 B" J( tB. server memory  |  `, f8 U6 [5 N( S
C. user table space3 _3 O5 N" F4 D  j9 S. W
D. system catalog tables
# a4 U% d/ `/ ]2 {+ t; k4 t) Z( R5 p/ ?      满分:4  分
" B! t: `# g9 N3 E7 }. w10.  关系模式中各级模式之间的关系为()
' ?+ m3 i% `- Q( eA. 3NF 2NF 1NF5 w' E* ~5 I/ }  H8 f  N
B. 3NF 1NF 2NF! e0 r! h1 l' j% z
C. 1NF 2NF 3NF
6 G' H4 n0 U6 Y  b* Q1 S( |  iD. 2NF 1NF 3NF% {3 a; V) a; ]! y# o
      满分:4  分
1 o& Q$ k  J" [2 B. y* T, C) n0 Y11.  创建一个DMS类型的表空间,可以使用以下哪两种文件系统对象作为容器?) p$ O+ Y4 J. A2 }/ v) _- ]  [
A. 目录6 j8 }  g0 U5 S/ t. J: b6 i, \4 q8 c. p4 z
B. 文件
; [! B2 U' r+ ?7 WC. DEVICE
( a" s$ t* d: \3 g& P0 Z% {      满分:4  分
! j4 L+ e+ l0 N3 `12.  执行下面两条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上有几个索引?& A0 H  _6 N6 I/ j  `* k  v- a
A. 0
4 Z9 _3 w" J' u) y: H  Q0 JB. 1
5 j9 M- H: [; [C. 2
1 w9 e5 d( X2 B6 T) V! X( F8 h* ]+ |D. 3# c# |$ y! g& A
E. 4
2 M( A, c9 \( K$ A7 V      满分:4  分
# M1 m: ^" ]3 [4 t, g: h# H- L13.  缺省的数据库日志文件的类型是:: z. z8 ~1 D  @. H& E5 d2 Q
A. Circular Log
% }, ]9 B1 M# `! `& F4 WB. Archival Log" r2 _  Y6 [5 W2 j% P
C. Primary Log0 w8 o9 ?( B; L  O0 e+ l
D. Secondary log1 ^8 ^$ L0 A/ W* W
      满分:4  分
% y. p: T3 ^/ c5 Z/ V7 U; g; x, s14.  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?! x0 J" |$ Z, R2 O4 M, ]
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.6 u$ E. ]5 b0 Z( R) @4 ~/ n$ z
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.
+ J- ^3 s- Y( b  i% I3 ?  @: J( QC. 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.3 U8 [, p- R. t* W6 |; p! t
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.
# s% q0 P) A% _3 n      满分:4  分7 _3 L* h" U3 |/ R: Z" n
15.  给定三个表:学生表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语句是哪个?
3 d# N/ W9 z, d- G9 vA. SELECT S# FROM SC WHERE C#=“C2” AND GRADE >= (SELECT GRADE FROM SC WHERE C#=” C2”)
2 l7 ^! [: u2 w* ~5 jB. SELECT S# FROM SC WHERE C#=”C2” AND GRADE IN (SELECT GRADE FROM SC WHERE C#=”C2”)
9 g2 p! Z6 V$ r. G! VC. SELECT S# FROM SC WHERE C#=”C2” AND GRADE NOT IN (SELECT GRADE FROM SC WHERE C#=”C2”)
" w( P" s: c- G' i# m) n: L/ ZD. SELECT S# FROM SC WHERE C#=”C2” AND GRADE>=ALL (SELECT GRADE FROM SC WHERE C#=”C2”)
( Y% m7 R( h! E8 Z      满分:4  分
. \/ |: {0 t) L, a. t- O6 g+ O' {16.  数据库系统的独立性是指():( @5 G, r6 w/ N6 Z% n+ ~) P1 h( N) s
A. 不会因为数据的变化而影响应用程序
) U: }. b( i9 p7 mB. 不会因为系统数据存储结构与数据逻辑结构的变化而影响应用程序: n6 N- H2 B( M3 y4 G; i/ O( ]
C. 不会因为存储策略的变化而影响存储结构
" o  z0 o! C3 i( l' s+ W0 j3 ID. 不会因为某些存储结构的变化而影响其它的存储结构
3 {" t; w* Q, j      满分:4  分( A* t1 G* [3 V$ s2 F7 B. s: A
17.  若用如下的SQL语句创建一个student表: CREATE TABLE student(NO CHAR(4) NOT NULL, NAME CHAR(8) NOT NULL, SEX CHAR(2), AGE NUMBERIC(2))可以插入到student表中的是哪一项?
7 I) o3 I! T- H2 I. ?A. (‘1031’,‘曾华’,男,23)) _, h+ a5 z7 @
B. (‘1031’,‘曾华’,NULL,NULL)+ ~, W/ M6 Q2 x* F  B
C. (NULL,‘曾华’,‘男’,‘23’)/ C. c* v' s/ k) o0 w
D. (‘1031’,NULL,‘男’,23)( j' v( F. r3 B. i
      满分:4  分# d2 z4 x" ]. |" r
18.  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?. g: V' K; t, z6 ?
A. SQLCODE 0, SQLSTATE 00000: {, F& m9 k1 M" S4 H
B. SQLCODE 100, SQLSTATE 02000
8 {# J0 E0 ~0 I0 ]& t8 A0 mC. SQLCODE -100, SQLSTATE 00100
+ H% j9 ?6 W4 W5 o4 cD. SQLCODE -501, SQLSTATE 24501
" s9 c* P0 \0 P3 ~8 K. U# [1 q      满分:4  分
! f4 K6 g  z1 O' f6 E, j19.  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 i. `8 S+ S8 W5 O, y/ g
A. One row is inserted in EMPLOYEE' F$ u, ^$ x/ S# [3 ]( ?
B. No rows are inserted in EMPLOYEE( A8 {+ R0 U* O2 ^* a# k
C. Two rows are inserted in EMPLOYEE
/ K8 i/ }! e" QD. One row is inserted in DEPT and 2 rows are inserted in EMPLOYEE
* E" U6 l  K! i! G      满分:4  分
, g! d9 k' l& d4 D9 n: V20.  下列那种隔离级对于只读操作不在数据行上加锁?- I. _8 I( @7 p. h
A. RR' ?: N% B  t: Q/ d
B. RS
2 i; `5 T1 h  ?8 W! @  [; P* aC. CS
* q& s+ ^6 E6 p1 x# x8 q- ?" ?D. UR2 t* p$ d: |" O% ]% L
      满分:4  分8 l+ _, c6 `6 X5 B) ?( U% L4 i/ W
21.  如果想在数据导入的过程中创建表,应该/ k3 }7 R- G5 G$ x3 T9 M1 m, ^+ b5 K
A. 使用IXF文件格式进行LOAD# D: {. a/ W5 D2 f
B. 使用WSF文件格式进行LOAD
' d; o- D3 `  G! m! v1 }' M9 M( dC. 使用IXF文件格式进行IMPORT
+ v$ r& }( O) M9 ^2 \" X5 uD. 使用WSF文件格式进行IMPORT- V  n7 N6 d8 E) e" @$ G8 J+ w
      满分:4  分( g; U! c2 N2 v6 s# r; q
22.  下面哪一工具允许用户开发存储过程?
. D% V. m6 ^% h4 W# `$ d7 ZA. 控制中心
' S4 p% W" s, O8 FB. 命令中心# ^- u; f7 w8 k! R
C. 任务中心
$ ]- ?' U% w. g! B7 s! I  ]D. 开发中心: P2 f" @* t- o- ^2 o& d% c# @; ]
E. 健康中心
& ]; }' y# A' o9 G- ?/ }      满分:4  分
: T/ Z) ?+ G. x( A- U5 B7 a3 p23.  Which of the following CLI/ODBC functions should be used to delete rows from a DB2 table?* R2 ]+ Z$ c8 `2 u# s9 J7 b
A. SQLDelete()
9 o) ?* z6 m6 x! ?8 ^) s  O! y1 k& OB. SQLExecDirect()
! m" O. U+ I" `) |7 EC. SQLBulkDelete()
/ K* u# v; c; rD. SQLExecuteUpdate()4 }4 K) w" x* H% g3 O3 J( K
      满分:4  分6 w# c  {5 [" j. v6 c) W
24.  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?# X- b3 `; |9 d! v0 A4 u. }
A. String sql = "UPDATE employee SET salary=salary*?WHERE workdept=?"; statement stmt=con.createStatement(sql);
2 `3 d1 w- T8 t6 G9 l- RB. String sql = "UPDATE employee SET salary=salary*?WHERE workdept=?"; statement stmt=con.createStatement(sql);
- M- ]2 g8 K5 U& K3 m9 t, b+ XC. String sql = "UPDATE employee SET salary=salary*?WHERE workdept=?"; statement stmt=con.createStatement(sql);
: D" w2 ^2 K5 u: q6 z; A/ c" A8 iD. String sql = "UPDATE employee SET salary=salary*?WHERE workdept=?"; statement stmt=con.createStatement(sql);9 q/ e$ ~3 v% o
      满分:4  分6 a9 j& a4 F: W. a: A
25.  Given the table T1 with the following data: C1 C2 -- -- 1 1 2 2 An application issues the following SQL statements with AUTOCOMMIT disabled: UPDATE t1 SET c1 = 10 WHERE c2 = 1 UPDATE t1 SET c1 = 20 WHERE c2 = 2 SAVEPOINT sp1 UPDATE t1 SET c1 = 30 WHERE c2 = 1 UPDATE t1 SET c1 = 40, c2 = 3 WHERE c2 = 2 SAVEPOINT sp1 UPDATE t1 SET c1 = 50 WHERE c2 = 1 UPDATE t1 SET c1 = 60 WHERE c2 = 2 ROLLBACK TO SAVEPOINT sp1 UPDATE t1 SET c1 = 50 WHERE c2 = 3 COMMIT What is the result of the following query? SELECT c1, c2 FROM t1 ORDER BY c2* |) i- P( i  C1 g2 X
A. 10 1 20 2
8 K2 p% R% x" a8 JB. 30 1 50 3! h: y, @- \; g8 D7 ?  i/ _6 B
C. 30 1 40 32 Z9 ~. Q  O, F1 S8 ?
D. 10 1 50 37 i$ e# f+ N! f$ S
      满分:4  分

本帖子中包含更多资源

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

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

本版积分规则

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

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

GMT+8, 2025-1-31 01:53 , Processed in 0.114400 second(s), 20 queries .

Powered by Discuz! X3.5

Copyright © 2001-2025 Tencent Cloud.

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