Exam Number/Code: 000-543

Exam Name: DB2 9.7 Application Development

Updated:3/15/2010

Questons and Answers : 100 questions

Exam Language(s): English

cheapTestInside Practice Exams for IBM 000-543 are written to the highest standards of technical accuracy, using only certified subject matter experts and published authors for development.

1. Which condition will prevent a developer from using the DB2 Call Level Interface in an application?
A. The developer must control the cursor names to comply with company naming standards.
B. An SQL precompiler is not available to the developer.
C. The application must create an external scalar function with the CREATE FUNCTION statement.
D. The DECLARE CURSOR statement needs to be used.
Answer: D
2. The statement below was used to create a cursor named CSR1:
DECLARE csr1 DYNAMIC SCROLL CURSOR FOR
SELECT * FROM employee;
After fetching all of the rows in the result set associated with cursor CSR1, which two statements can be
used to fetch the data starting at the end of the result set? (Choose two.)
A. FETCH LAST
B. FETCH PRIOR
C. FETCH RELATIVE
D. FETCH OFFSET
Answer: BC
3. Click the Exhibit button.
CREATE TABLE store(sid INTEGER, info XML);
INSERT INTO store VALUES (1,
‘<storeinfo sid=”1″>
<name>Grocery A</name>
<items>
<fruit><name>Mango</name><price>1.20</price></fruit>
<fruit><name>Apple</name><price>0.50</price></fruit>
<dessert><name>Ice Cream</name><price>6.00</price></dessert>
</items>
</storeinfo>’);

TestInside Help You Pass Any IT Exam http://www.cheapTestInside.com
Given the statements shown in the exhibit, a user executes the query shown below:
XQUERY for $store in db2-fn:xmlcolumn(’STORE.INFO’)/storeinfo
let $items := $store/items/fruit, $count := fn:count($items)
return <itemcount>$count</itemcount>
What is the output?
A. 2
B. <itemcount>2</itemcount>
C. <itemcount>1</itemcount>
D. <itemcount>$count</itemcount>
Answer: D
4. You have created a stored procedure (MULTIRESULTS()) on the server which will return multiple result
sets. While developing a PHP application using the IBM_DB2 extension, you want to call the stored
procedure. The code shown below will execute the stored procedure:
$stmt = db2_exec($conn, ‘CALL multiResults()’);
How can you fetch all of the result sets from $stmt?
A. Call db2_fetch_object($stmt) for the first result set; call db2_next_result($stmt) for more result sets.
B. Call db2_next_result($stmt) for each result set.
C. Call db2_fetch_object($stmt) for each result set.
D. Call db2_next_result($stmt) for each result set; call db2_fetch_object($stmt) for each row in the result
set.
Answer: A
5. An existing table has the definition shown below:
CREATE TABLE hr.employees (
empid INTEGER NOT NULL PRIMARY KEY,
deptno INTEGER,
authid VARCHAR(255),
salary DECIMAL (10,2),
commission DECIMAL (5,3) DEFAULT 0,
Testinside
TestInside Help You Pass Any IT Exam http://www.TestInside.com
benefits XML )
Only members of the HR_ADMIN group have privilege to SELECT, INSERT, UPDATE, or DELETE from
the HR.EMPLOYEES table. A Web-based application is under development that connects to the database
with a user’s AUTHID and enables a user to see their record. No other records are visible.
Which type of database object can be created by a member of the HR_ADMIN that provides the necessary
information without changing the privileges on the HR.EMPLOYEES table?
A. trigger
B. view
C. alias
D. index
Answer: B


Categories : cheap practice questions

No Response