1. Which of the following best describes the Data Dictionary?
Incorrect. Refer to Section 9 Lesson 3.
6. When creating a user-defined function that will be called from a SQL statement, the size of the returned values may be up to the size of any PL/SQL data type. True or False?
Incorrect. Refer to Section 9 Lesson 2.
7. Which of the following is NOT a legal location for a function call in a SQL statement?
Incorrect. Refer to Section 9 Lesson 2.
8. Which of the following is NOT a benefit of user-defined functions?
Incorrect. Refer to Section 9 Lesson 2.
9. The database administrator has granted the DROP ANY PROCEDURE privilege to user KIM. This allows Kim to remove other users' procedures and functions from the database. How would Kim now drop function GET_EMP, which is owned by user MEHMET?
Incorrect. Refer to Section 9 Lesson 4.
10. You want to see the names, modes, and data types of the formal parameters of function MY_FUNC in your schema. How can you do this? (Choose two)
Incorrect. Refer to Section 9 Lesson 4.
11. You try to create a function named MYFUNC. The function does not compile correctly because there are errors in your code. Which Dictionary view can you query to see the errors?
Incorrect. Refer to Section 9 Lesson 1.
12. Consider the following function:CREATE FUNCTION ADD_EM
(a NUMBER := 1,
b NUMBER := 2 )
RETURN NUMBER
IS BEGIN
RETURN (a+b);
END ADD_EM;
Which one of the following blocks will NOT work correctly?
Incorrect. Refer to Section 9 Lesson 1.
Incorrect. Refer to Section 9 Lesson 1.
14. User REYHAN creates the following procedure:CREATE PROCEDURE proc1
AUTHID CURRENT_USER IS
v_count NUMBER;
BEGIN
SELECT COUNT(*) INTO v_count
FROM tom.employees;
END;
User BILL wants to execute this procedure. What privileges will BILL need?
Incorrect. Refer to Section 9 Lesson 6.
15. User SALLY's schema contains a NEWEMP table. Sally uses Invoker's rights to create procedure GET_NEWEMP which includes the line: SELECT ... FROM NEWEMP ... ;
Sally also grants EXECUTE privilege on the procedure to CURLY, but no other privileges. What will happen when Curly executes the procedure?
Incorrect. Refer to Section 9 Lesson 6.
2. You want to see the names of all the columns in a table in your schema. You want to query the Dictionary instead of using the DESCRIBE command. Which Dictionary view should you query?
Incorrect. Refer to Section 9 Lesson 3.
3. You have forgotten the name of the Dictionary view USER_TABLES. Which of the following statements is the best and quickest way to remind yourself?
Incorrect. Refer to Section 9 Lesson 3.
4. You want to allow user JOE to query the CD_DETAILS table in your schema. Which command should you use?
Incorrect. Refer to Section 9 Lesson 5.
5. Your schema contains two procedures named CHILD1 and CHILD2. You now create a third procedure by executing:CREATE OR REPLACE PROCEDURE parent IS
BEGIN
child1;
child2;
END;
You now want user JOE to be able to invoke PARENT. Which of the following gives JOE the privileges he needs, but no unnecessary privileges?
Incorrect. Refer to Section 9 Lesson 5.
Komentar
Posting Komentar