최신 IBM Specialist 000-545 무료샘플문제:
1. Given the following SQL:
Which statement is incorrect?
A) The cursor declaration requires the WITH RETURN clause in order to return a result set.
B) The cursor declaration requires the WITH RETURN TO CLIENT clause in order to return a result set.
C) The cursor declaration requires the WITH RETURN TO CALLER clause in order to return a result set.
D) The procedure declaration requires the DYNAMIC RESULT SETS 1 clause in order to return a result set.
2. The CREATE OR REPLACE PROCEDURE statement is similar semantically to which of the following combined statements?
A) UPDATE and CREATE PROCEDURE
B) ALTER and CREATE PROCEDURE
C) DROP and ALTER PROCEDURE
D) DROP and CREATE PROCEDURE
3. Click the Exhibit button.
If the procedure TEST1 shown in the exhibit is called with the value 'A00' specified for the SOMEID parameter, what is the expected return code?
A) -2
B) 0
C) -1
D) -3
4. Which statement is true about the data types VARCHAR and VARCHAR2?
A) The VARCHAR2 data type length is limited to 2000 bytes; the VARCHAR data type length can be up to 32K.
B) The VARCHAR2 data type treats empty strings as null; the VARCHAR data type treats empty strings as not null with zero length.
C) The VARCHAR data type cannot be used with a database that has been created in Oracle compatibility mode.
D) The VARCHAR2 data type cannot be used in a database that has not been created in Oracle compatibility mode.
5. Which statement describes what must be done to create an SQL procedure that returns a result set?
A) Execute the CREATE PROCEDURE statement using the defaults; declare a cursor within the procedure body; open the cursor; exit the procedure without closing the cursor.
B) Specify the clause DYNAMIC RESULT SETS 1 in the CREATE PROCEDURE statement; declare a cursor within the procedure body; open the cursor; exit the procedure without closing the cursor.
C) Execute the CREATE PROCEDURE statement using the defaults; declare a cursor within the procedure body; open the cursor; retrieve each row into output variables; close the cursor before exiting the procedure.
D) Specify the clause DYNAMIC RESULT SETS 1 in the CREATE PROCEDURE statement; code a SELECT statement in the procedure body.
질문과 대답:
질문 # 1 정답: D | 질문 # 2 정답: D | 질문 # 3 정답: B | 질문 # 4 정답: B | 질문 # 5 정답: B |