Question 1
Which two PL/SQL elements can be deprecated using the DEPRECATE pragma? (Choose two.)
- PACKAGES
- VARIABLES
- ANONYMOUS BLOCK
- TRIGGER BODY
- DATABASE LINKS
Question 2
Which three are true about functions and procedures? (Choose three.)
- The ACCESSIBLE BY clause can be used only for procedures.
- In a function, every execution path must lead to a RETURN statement.
- Both can have only constants as actual parameters for IN mode parameters.
- Both can be invoked from within SQL statements.
- In a procedure the RETURN statement cannot specify an expression.
- In a function every RETURN statement must specify an expression.
Question 3
Which two are true about Conditional Compilation in PL/SQL using $IF, $ELSE, $END, and $ERROR? (Choose two.)
- PL/SQL code can be compiled and executed based on different versions of the operating system.
- PL/SQL code can be compiled and executed based on different versions of Oracle.
- It is newer syntax that works the same way as 'IF , ELSEIF , ELSE, and END IF'.
- Conditional compilation is disabled by default.
- The PL/SQL compiler can conditionally include selected parts of a program.
Question 4
Which three are true about the NOCOPY hint, the PARALLEL ENABLE hint, and the DETERMINISTIC clause? (Choose three.)
- The PARALLEL_ENABLE clause can be used only in the CREATE FUNCTION statement.
- The NOCOPY hint asks the compiler to pass the actual parameters by reference.
- A deterministic function's results always depend on the state of session variables.
- The NOCOPY hint asks the compiler to pass the actual parameters by value.
- A function is deterministic if it always returns the same result for a specific combination of input values.
- The PARALLEL_ENABLE clause can be specified for a nested function.
- A function defined with the PARALLEL_ENABLE clause may be executed in parallel in a SELECT statement or a subquery in a DML statement.
Question 5
Which two are true about INDEX-BY tables? (Choose two.)
- The index can be integer or string.
- The index can be integer only.
- INDEX-BY table types can be created in PL/SQL blocks only.
- INDEX-BY table types can be created both with the CREATE TYPE statement and in PL/SQL blocks.
- INDEX-BY table types can be created with the CREATE TYPE statement.