DB2 Associate Mock Test Time Duration: 1 Hr. 30 Min. Passing Percentage: 60
DB2 Associate Mock Test Time Duration: 1 Hr. 30 Min. Passing Percentage: 60
1. Which allows to access other DB2 servers, but cannot accept requests from other remote clients?
2. Which is the lowest cost DB2 product that can be legally installed on an HP-UX server?
A) DB2 Express-C
B) DB2 Express
A) SQL Assist
B) Control Center
C) Command Editor
D) Developer Workbench
A) Control Center
B) Command Center
D) Task Center
C) Relational data must be tabular; XML data does not have to be tabular
D) Relational data is comprised of entities; XML data is comprised of numbers, characters, and
dates
A) System Catalog
D) Communications layer
E) Application Server
A) SYSADMN
B) SYSCTRL
C) SYSMAINT
D) DBADM
E) CREATEDB
8. Which will allow user USER1 to change the comment associated with a table named TABLE1?
A) Sequence
B) Nickname
C) Schema
D) View
E) Index
10. Which two privileges is required in order to use a package?
A) BINDADD
B) BIND
C) CONNECT
D) EXECUTE
E) USE
13. Which of the following commands below to drop(if it already exists) sample database
A) db2 drop sample
B) db2 drop db
C) drop db sample
D) db2 drop db sample
17. If table TABLE1 contains 250 rows, which of the following statement will only return
the first 25 of the rows?
A) SELECT * FROM table1 MAXROWS 25
B) SELECT * FROM table1 RETURN FIRST 25 ROWS
C) SELECT * FROM table1 WHILE ROW < 25
D) SELECT * FROM table1 FETCH FIRST 25 ROWS ONLY
19. Which of the following statements can be used to increase the marks of all
students in science subject by 10%:
A)UPDATE student WHERE subject = ‘science’ SET marks = marks * 1.1
B)UPDATE student SET marks = (marks * 1.1)
C)UPDATE student SET marks = marks * 1.1 WHERE subject = ‘science’
D)UPDATE marks = marks * 1.1 ON TABLE student WHERE subject = ‘science'
B)
MAX_SALARY TITLE
12000 MGR
45000 ENTRY
75000 SENIOR
C)
SALARY TITLE
12000 MGR
45000 ENTRY
75000 SENIOR
22. Consider Table1 has no rows initially and that the auto commit feature is disabled. After
execution of the following statements:
INSERT INTO Table1 VALUES (1, ‘ABC’)
INSERT INTO Table1 VALUES (2, ‘DEF’)
INSERT INTO Table1 VALUES (3, ‘DEF’)
COMMIT
ROLLBACK
INSERT INTO Table1 VALUES (4, ‘GHI’)
COMMIT
INSERT INTO Table1 VALUES (5, ‘DEF’)
ROLLBACK
COMMIT
How many rows will be inserted in TB1?
A) 0
B) 1
C) 4
D) 3
23. Given the following queries:
A) UNION
B) INTERSECT
C) EXCEPT
D) MERGE
A) %
B) *
C) ?
D) \
25. Which two statements are true about the HAVING clause?
B) The HAVING clause uses the same syntax as the WHERE clause.
C) The HAVING clause can only be used with the GROUP BY clause.
A) Positioned
B) Searched
C) Embedded
D) Dynamic
C) The rows are ordered based on when they were inserted into the table.
28. Which DB2 data types does NOT have a fixed length?
A) INT
B) CHAR
C) XML
D) DOUBLE
E)
29. Given the requirements to store employee names, employee numbers, and when employees were hired,
which built-in data types CANNOT be used to store the day an employee was hired?
B) Time
D) Timestamp
E)
30. Which two are optional and do not have to be specified when creating a table?
A) Table name
B) Column name
C) Default constraint
31. Which CANNOT be used to restrict specific values from being inserted into a column in a particular table?
A) Index
B) Check constraint
C) Referential constraint
D) Default constraint
B) NULL
C) 100
D) '100'
33. Which causes a lock that is being held by an application using the Cursor Stability isolation level to be
released?
34. A table contains a list of all seats available at a football stadium. A seat consists of a section number, a seat
number, and whether or not the seat has been assigned. A ticket agent working at the box office generates a list
of all unassigned seats. When the agent refreshes the list, it should only change if another agent assigns one or
more unassigned seats. Which is the best isolation level to use for this application?
A) Repeatable Read
B) Read Stability
C) Cursor Stability
D) Uncommitted Read
36. Query: SELECT * FROM TABLE T1 INNER JOIN T2 ON T1.ID = T2.ID is equivalent to :
39. Which one of the following is true for Granting SYSADM authority to the group 'grp':
A) UPDATE DB CFG USING SYS_GROUP GROUP1
B) UPDATE DBM CFG USING SYSADM_GROUP GROUP1
C) UPDATE DBM USING SYSADM_GROUP GROUP1
D) UPDATE DBM CFG USING SYSADM GROUP1
43. Which of the following is not true for well-formed XML document:
A) Each element begins with a start tag and ends with an end tag.
B) An element can contain other elements, attributes, or text nodes.
C) Attribute values must be enclosed in double quotes. Text nodes, on the other hand,
should not.
D) It can have one or more root element.
44. Which of the following is NOT a valid method of authentication that can be used by DB2 9?
A. SERVER
B. SERVER_ENCRYPT
C. CLIENT
D. DCS
45. Which are NOT stored in the system catalog tables?
D) Table names
1.A
2.D
3.D
4.D
5.C
6.C and E
7.A and B
8.C
9.B and D
10.C and D
11. b
12. b
13. d
14. a
15. c
16. a
17. d
18. d
19. c
20. d
21. b
22. c
23. c
24. A
25. B and C
26. A
27. D
28. C
29. B
30. C and E
31. D
32. C
33. A
34. C
35. b
36. a
37. d
38. c
39. b
40. d
41. a
42. c
43. d
44. d
45. A