Professional Documents
Culture Documents
date
char(20)
7)which of the following db2 client/driver packages is not suitable for developing
odbc application
a)Ibm data server client
b)ibm data server for odbc & cli
c)Ibm data server runtime client
d)ibm data server driver package
---------------------------------------------------------------------------------------------------------------------------------------8)which of the following statement is false
a)primary key uniquely identifies a row in a table
b)foreign key is asset of column that refers to a primary key of another table
c)a primary key must always be defined in a table
d)primary keys and foreign key are used to enforce data integrity
---------------------------------------------------------------------------------------------------------------------------------------9)given the following two tables:
Names
Student _name
Student_number
Wayne gretzky
99
Jaromirjagr
68
Bobby orr
Brett hull
23
Mario Lemieux
66
Marks(table)
Name
Marks
Wayne gretzky
Bobby orr
80
94
Brett hull
77
Mario Lemieux
83
---------------------------------------------------------------------------------------------------------------------------------------12)which of the following best describes the benifit of supporting xquerys transform
expression in db2
a)it can be used to modify both xml and relational data,providing a common
language for developers to handle the database data
b)when used in a update statement , it simplifies the update of xml
documents stored in the database
c)it is very useful to transform xml documents into other formats using style sheets
d)it can be used to automatically clean up unnecessary tags in a xml
documents,providing smaller documents thus saving space in the database
13)Consider the following scenario. You have 3 tables with the same
name(TABLE_1)under 3 different schemas( SYSIBM,DEFAULT AND DB2INSTL).You
are cancelled to a db2 database in your linux server as default and issue the
following statement.
Select * from table_1
Which table will you be selected data from.
a)you get an error because your query is ambious,as the table schema is not
specified.
b)db2 inst1.table_1
c)default _table_1
d)sysibm_table_1
---------------------------------------------------------------------------------------------------------------------------------------14)when using a relational database which of the following is false?
a)retrieve data using sqls data manipulation language(dml)
b)define the datbase structure using sqls ddl
c)store the data in class instance and fields
d)use normalisation to avoid redundant data in your tables.
col_2
10
12
14
Col_A
col_B
21
23
25
col_2
col_A
col_B
10
21
12
14
23
25
</customerinfo>
Consider the following update expression
Update xml customer
Set info=xmlquery(transform copy$new:=$i
Modify(
Do insert <phone type=cell>777-555-3333</phone> after 4new/customer
info/addr,for$j in
$new/customer info/addr/phone
Return do rename $j as telephone
)
Return $new passing info as i
Where cid=1000;
Which of the following represents the xml document after the transform repression
has been executed.
a) <customerinfo>
<name>john smith</name>
<addrcountry=canada>
<street>fourth</street>
<prov_state>alberta</prov_state>
<pcode_zip>m1t 2A9</pcode_zip>
</addr>
<phone.type=work>963-289-4136</phone>
<phone.type=work>777-555-3333</phone>
</customerinfo>
b) <customerinfo>
<name>john smith</name>
<addrcountry=canada>
<street>fourth</street>
<prov_state>alberta</prov_state>
<pcode_zip>m1t 2A9</pcode_zip>
</addr>
<phone.type=work>777-555-3333</phone>
<telephone.type=work>963-289-4136</telephone>
</customerinfo>
c) <customerinfo>
<name>john smith</name>
<addrcountry=canada>
<street>fourth</street>
<prov_state>alberta</prov_state>
<pcode_zip>m1t 2A9</pcode_zip>
</addr>
<phone.type=work>777-555-3333</phone>
<telephone.type=work>963-289-4136</telephone>
</customerinfo>
d) <customerinfo>
<name>john smith</name>
<addrcountry=canada>
<street>fourth</street>
<prov_state>alberta</prov_state>
<pcode_zip>m1t 2A9</pcode_zip>
<phone.type=work>777-555-3333</phone>
</addr>
<telephone.type=work>963-289-4136</telephone>
</customerinfo>
col2
10
20
30
40
a. Delete from tab1 Insert into tab1 values(c 40) Insert into values(d
40)
b. Update tab1 set col1null where col2in (10,20)
c. Delete from tab1 where col2 not in (30,40)
d. Delete from tab1 where col2 in (30,40)
d. References
---------------------------------------------------------------------------------------------------------------------------------------38.Which of the following statements is true about pure xml technology?
a. With pure xml technology there is a part of the db2 engine that can
natively handle xquery
b. In pure xml,a query can combine sql with xml constructs;therefore
integrating relational and hierarchical data in one query
c. In pure xml,the format in which xml data is processed is the same as
the format in which it is stored, that is, there is no conversion required
d. All the above
---------------------------------------------------------------------------------------------------------------------------------------39.Which of the following best describe the advantages of executing the set of dml
statements inside a single transactions
a. The dbms records those operations in the audit logs since they are
grouped inside a transaction
b. The dbms stores the transaction operation so that the client
applications can return the transaction easily
c. The dbms guarantees that either all changes performed by the dml are
stored or in case of errors,the changes are undone leaving the
database in a consists state
d. The dbms guarantees that all operations are always executed
successfully
----------------------------------------------------------------------------------------------------------------------------------------
D. IBMDEFAULT buffer pool is the default buffer pool automatically created when a
database is created
-----------------------------------------------------------------------------------------------------------------------------------------41.BUFFER POOL are associated with table space so that they can increase
performance by cashing data in memory,which is from
A. A tablespace can only be associated with a buffer pool that has same
page size
B. A tablespace can only be associated with a buffer pool that has a smaller or same
page size
C. A tablespace can only be associated with a buffer pool that has larger or same
page size
D. A tablespace can only be associated with a buffer pool that has larger page size
-----------------------------------------------------------------------------------------------------------------------------------------42.which of the following programming language can be used to develop
applications that required access to a DB2 database application
A. java
B. php
C. c#
D.all the above
-----------------------------------------------------------------------------------------------------------------------------------------43.which is not DML statement?
A. alter
B. insert
C. select
D. update
-----------------------------------------------------------------------------------------------------------------------------------------
age
Jenny
34
Rodney
36
Oliver
21
Angie
42
Tom
28
Vinlenzo
25
col2
colA
10
colB
21
12
14
23
25
col_2
col_A
10
12
14
col_b
21
23