Académique Documents
Professionnel Documents
Culture Documents
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
A) BINDADD
B) BIND
C) CONNECT
D) EXECUTE
E) USE
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
18. Given the following table:
USERS
--------------------------
ID INTEGER NOT NULL
NAME CHAR(20) NOT NULL
PASSWORD VARCHAR(30)
Which INSERT statement is not correct?
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
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
A) 0
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
Best of luck
ANSWER
1. A 29. B
2. D 30. C and E
3. D 31. D
4. D 32. C
5. C 33. A
6. C and E 34. C
7. A and B 35. b
8. C 36. a
9. B and D 37. d
11. b 39. b
12. b 40. d
13. d 41. a
14. a 42. c
15. c 43. d
16. a 44. d
17. d 45. A
18. d
19. c
20. d
21. b
22. c
23. c
24. A
25. B and C
26. A
27. D
28. C