IBM Assessment: DB2 9.7 SQL Procedure Developer (A2090-545) Free Practice Test
Question 1
Which code fragment illustrates the proper way to capture and save SQL error handler values so they can be used to control procedure logic?
Correct Answer: D
Question 2
Which statement can be used to declare a variable inside an SQL procedure that can be used to represent a monetary value?
Correct Answer: C
Question 3
Which of the following steps are required to debug a stored procedure using IBM Data Studio?
Correct Answer: D
Question 4
Which command can be used to optimize static SQL statements containing parameterized queries?
Correct Answer: B
Question 5
Which command can be used to convert literals in SQL statements to parameter markers to avoid compilation of similar SQL statements?
Correct Answer: D
Question 6
In the function shown below:

Which statement can be used to invoke the function above?

Which statement can be used to invoke the function above?
Correct Answer: D
Question 7
The CREATE PROCEDURE statement shown below was executed against a database called MYDB.
CREATE PROCEDURE myschema.proc1(IN p1 INTEGER, OUT p2 CHAR(4), OUT p3 SMALLINT)
BEGIN
SET p2 = 'abc';
END
Which two CREATE PROCEDURE statements, when executed against the same database, will succeed? (Choose two.)
CREATE PROCEDURE myschema.proc1(IN p1 INTEGER, OUT p2 CHAR(4), OUT p3 SMALLINT)
BEGIN
SET p2 = 'abc';
END
Which two CREATE PROCEDURE statements, when executed against the same database, will succeed? (Choose two.)
Correct Answer: A,E
Question 8
Which steps must be followed to return a result set from an SQL procedure?
Correct Answer: C