You are on page 1of 6

1.- The type of data structure that s used n a reatona mode s?

a. Reaton
b. Tree
c. Node
d. None of the above
2.- Whch of the foowng s FALSE about DB2 Instances?
a. It has a stand-aone DB2 envronment.
b. Ony one nstance can exst usng the same DB2 executabe fes.
c. Each nstance has ts own confguraton fe.
d. There coud be mutpe nstances per data server.
3.- Consder the foowng scenaro: You are currenty connected to a database caed
MYDB as the user MYUSER. When creatng a tabe wthn ths database, you use the
command:
CREATE TABLE MYTABLE (DEPT CHAR(3) NOT NULL)
Under whch schema s the tabe MYTABLE created?
a. MYDB
b. MYUSER
c. DB2INST1
d. You get an error because your command s ambguous, as the tabe
schema s not specfed.
4.- Consder a tabe TAB1 havng the foowng vaues:
TAB1
-----------------
COL1 COL2
---- ----
A 10
B 20
C 30
A 10
D 40
C 20
Consder the resut of a gven query:
COL1
----
A
B
C
D
Whch of the foowng statements woud produce the gven query resut:
a. SELECT COL1 FROM TAB1 ORDER BY COL1 FETCH FIRST 4
ROWS ONLY
b. SELECT COL1 FROM TAB1 FETCH FIRST 4 ROWS ONLY
c. SELECT DISTINCT COL1 FROM TAB1
d. SELECT UNIOUE COL1 FROM TAB1
ANSWER: C
5.- Consder TB1 has no rows ntay and that the auto commt feature s dsabed.
After
executon of the foowng statements:
INSERT INTO TB1 VALUES (1, ABC)
INSERT INTO TB1 VALUES (2, DEF)
COMMIT
INSERT INTO TB1 VALUES (3, GHI)
ROLLBACK
COMMIT
How many rows w be nserted n TB1?
a. 0
b. 1
c. 2
d. 3
6.- If the current sesson has an soaton eve of CS, whch of the foowng w
change
the soaton eve to UR for the current statement?
a. SELECT * FROM sampe ISOLATION UR
b. SELECT * FROM sampe UR
c. SELECT * FROM sampe USE UR
d. SELECT * FROM sampe WITH UR
7.- Whch of the foowng s NOT a vad authentcaton type that can be used by
DB2?
a. CLIENT
b. CLIENT_ENCRYPT
c. SERVER
d. SERVER_ENCRYPT
8.- Consder the foowng scenaro:
Sunday: fu backup
Monday: deta ncrementa
Tuesday: ncrementa
Wednesday: deta ncrementa
Thursday: system crashed
Whch of the foowng optons contans the correct restore order so that the
database can be restored to the ast stabe moment before the crash?
RESTORE DATABASE SAMPLE TABLESPACE (MYTBSP) FROM /tbspbkp
a. Restore the ncrementa backup from Tuesday and the ncrementa backup
from Wednesday, then ro forward the database usng the transacton og
fes.
b. Restore ony the deta ncrementa backup from Wednesday.
c. Restore the fu backup from Sunday, the ncrementa cumuatve backup
from Tuesday, the ncrementa deta from Wednesday, then ro forward
the database usng the transacton og fes.
d. Restore the fu backup from Sunday, the deta ncrementa from
Wednesday, then ro forward the transacton og fes.
9.- Whch of the foowng packages have the smaest footprnt but s st sutabe for
executng |DBC appcatons?
a. IBM Data Server Cent
b. IBM Data Server Runtme Cent
c. IBM Data Server Drver for |DBC and SOL|
d. IBM Data Server Drver Package
10.- Whch one of the foowng s a vad XPATH expresson to retreve an attrbute
vaue
wthn an XML document?
a. /customernfo/name/cd
b. /customernfo/name/text(@cd)
c. /customernfo/name/data(@cd)
d. /customernfo/name/"cd"
11. If there s tabe contanng two coumns.There s no prmary or unque key coumn
n a tabe.whch s the best way to make sure there w be unque vaues n frst
coumn.
A) ater a tabe and make the frst coumn as prmary key
B) ater a tabe and make the frst coumn as unque key coumn.
C) ater a tabe and make the frst coumn as dentty
D) create an unque ndex on frst coumn.
12. About Reatona Databases and the Reatona Data Mode whch of the foowng
s true?
A. A tabe does not aow to store data.
B. A tupe s the smaest unt of data.
C. A coumn s the equvaent to a row.
D. A doman s the set of some possbe vaues for a specfc fed
13) In whch of the confguraton fes the AUTHENTICATION parameter can be found?
a) Database Confguraton
b) Response fe
c) Database Manager Confguraton
d) Regstry Confguraon fe
14) From whch of the foowng toos , a Stored Procedure can be deveoped/wrtten?
a) CLP
b) Command Edtor
c) IBM Data Studo
d) A of the above
15. To update the comment assocated wth a tabe Whch of the foowng prveges
permts a user?
A. ALTER
B. EXECUTE
C. ALTERIN
D. UPDATE
16. Whch of foowng best descrbe the beow statement:
create database TESTDB2 ON c:
A) database s created on drve C:
B) automatc storage s enabed
C) storage path s c:
D) None of the above
17. Whch of the foowng statements s not true about nstance?
A) there can be mutpe nstance on one server
B) we can create nstance by usng db2crt command
C) a the nstances share a common confguraton fe
D) n one nstance we can mutpe databases.
18. Gven the foowng tabe:
USERS
--------------------------
ID INTEGER NOT NULL
NAME CHAR(20) NOT NULL
PASSWORD VARCHAR(30)
Whch INSERT statement s not correct?
A) INSERT INTO USERS VALUES ( 13, 'ABC', 'xyz')
B) INSERT INTO USERS VALUES ( 13, 'ABC', NULL )
C) INSERT INTO USERS VALUES ( 13, '', 'xyz')
D) INSERT INTO USERS VALUES ( 13, NULL, 'xyz')
19. Whch of the foowng statements can be used to ncrease the marks of a
students n scence sub|ect by 10%:
A) UPDATE student WHERE sub|ect = scence SET marks = marks * 1.1
B) UPDATE student SET marks = (marks * 1.1)
C) UPDATE student SET marks = marks * 1.1 WHERE sub|ect = scence
D)UPDATE marks = marks * 1.1 ON TABLE student WHERE sub|ect =
scence'
20. Conder the Foowng statements: (AUTO COMMIT s off)
-> connect to sampe
-> create tabe Student(stud_d char(3), name varchar(30))
-> commt
-> nsert nto student vaues(A01,TOM)
-> nsert nto student vaues(B01,|OHN)
-> commt
-> nsert nto student vaues(C01,MARY)
->roback
-> nsert nto student vaues(D01,STEVEN)
->commt
What s the output when the command s ssued:
SELECT COUNT(*) FROM STUDENT.
a) 2
b) 3
c) 5
d) 6
21. In whch of the foowng Loggng type , SECONDARY og fes are aocated f
Prmary Log fes are
fu?
a) Incrementa
b) Crcuar
c) Archva
d) Deta
22. The nk between a coumn or set of coumns n one tabe that refers to a coumn
or
the set of coumns n another tabe s?
a. Ponter
b. Cursor
c. Prmary key
d. Foregn key
23. Whch of the foowng s FALSE about DSAC?
a. Database must be added to the connecton st before t can be montored.
b. Dashboard tab dspays performance metrcs and ther vaues.
c. Aert Lst tab shows warnngs assocated for each database.
d. Heathy Summary tab summarzes the status of the ast operaton to run n
the database.
24. Consder the foowng. As the user MYUSER, you ssue the foowng command:
CREATE ALIAS A1 for T1
What w be the resut of the command?
a. The aas DEFAULT.A1 s created for DEFAULT.T1.
b. The aas MYUSER.A1 s created for MYUSER.T1.
c. The aas ALIAS.A1 s created for ALIAS.T1.
d. You get an error because your command s ambguous, as the schema s
not specfed.
25. Whch of the foowng events w NOT cause a trgger to be actvated?
A) A seect operaton
B) An nsert operaton
C) An update operaton
D) A deete operaton
26. In a DB2 server the authentcaton method s defned wthn:
A. The database confguraton.
B. Insde Instance.
C. Insde Database tabes.
D. The database manager confguraton.
27. Whch of the foowng statements can remove a tabe from a database?
A. DELETE
B. ALTER
C. UPDATE
D. DROP
28. Whch of the foowng statements s TRUE?
a. Lcensng by PVU s avaabe on DB2 Express-C edton.
b. DB2 Express-C ncudes support to Tabe Parttonng.
c. DB2 Express can ony be censed by Authorzed User.
d. The Storage Optmzaton feature for DB2 Enterprse edton ncudes
Row, Index, Temporary Tabe and XML Compresson.
29. Whch of the foowng statements s ncorrect?
a. A user can defne mutpe ndexes for a snge tabe n DB2.
b. An ndex for a tabe s used to mprove SOL query performance.
c. An ndex can be defned on a vew.
d. None of the above.
30. Gven the foowng tabe:
USERS
--------------------------
ID INTEGER NOT NULL
NAME CHAR(20) NOT NULL
PASSWORD VARCHAR(30)
Whch INSERT statement s not correct?
a. INSERT INTO USERS VALUES ( 23, '|m', 'password')
b. INSERT INTO USERS VALUES ( 23, '|m', NULL )
c. INSERT INTO USERS VALUES ( 23, '', 'password')
d. INSERT INTO USERS VALUES ( 23, NULL, 'password')
31. Whch of the foowng s not true for we-formed XML document:
A) Each eement begns wth a start tag and ends wth an end tag.
B) An eement can contan other eements, attrbutes, or text
nodes.
C) Attrbute vaues must be encosed n doube quotes. Text nodes,
on the other hand, shoud not.
D) It can have one or more root eement.
32. Whch of the foowng s NOT a vad method of authentcaton that can be used
by DB2 9?
A. SERVER
B. SERVER_ENCRYPT
C. CLIENT
D. DCS
33. Whch of the foowng s the correct syntax to revoke connect prevage on
database sampe from user bob
A) revoke connect from user bob
B) revoke connect on sampe from user bob
C) revoke connect for sampe from user bob
D) reboke connect on sampe from bob user
34. Whch keyword s used to seect the records n a specfc range?
A) between
B) n
C) nto
D) st
35. Whch of the foowng s the correct syntax for usng the XMLTRANSFORM
SOL/XML functon?
a. UPDATE XSLTRANSFORM (XMLDOC USING XSLT) FROM
XMLDATA, XMLTRANS WHERE ID = 1 and XSLID = 2 ;
b. SELECT FROM XSLTRANSFORM (XMLDOC USING XSLT) FROM
XMLDATA, XMLTRANS WHERE ID = 1 and XSLID = 2 ;
c. SELECT INTO XSLTRANSFORM (XMLDOC USING XSLT) FROM
XMLDATA, XMLTRANS WHERE ID = 1 and XSLID = 2 ;
d. SELECT XSLTRANSFORM (XMLDOC USING XSLT) FROM
XMLDATA, XMLTRANS WHERE ID = 1 and XSLID = 2

You might also like