Oracle 1z0-148 Exam Practice Questions (P. 3)
- Full Access (75 questions)
- Six months of Premium Access
- Access to one million comments
- Seamless ChatGPT Integration
- Ability to download PDF files
- Anki Flashcard files for revision
- No Captcha & No AdSense
- Advanced Exam Configuration
Question #11
Examine this function header:
FUNCTION calc_new_sal (emp_id NUMBER) RETURN NUMBER;
You want to ensure that whenever this PL/SQL function is invoked with the same parameter value across active sessions, the result is not recomputed.
If a DML statement is modifying a table which this function depends upon, the function result must be recomputed at that point in time for all sessions calling this function.
Which two actions should you perform?
FUNCTION calc_new_sal (emp_id NUMBER) RETURN NUMBER;
You want to ensure that whenever this PL/SQL function is invoked with the same parameter value across active sessions, the result is not recomputed.
If a DML statement is modifying a table which this function depends upon, the function result must be recomputed at that point in time for all sessions calling this function.
Which two actions should you perform?
- AEnsure RESULT_CACHE_MAX_SIZE is greater than 0.Most Voted
- BEnable the result cache by using DBMS_RESULT_CACHE.BYPASS (FALSE).
- CAdd the deterministic clause to the function definition.
- DAdd the RELIES_ON clause to the function definition.
- EAdd the RESULT_CACHE clause to the function definition.Most Voted
Correct Answer:
AC
AC
send
light_mode
delete
Question #12
Examine this block:

Which two will be correct after line 5?

Which two will be correct after line 5?
- Ava. LAST and va. LIMIT will return the same value.
- Bva. LAST and va. COUNT will return the same value.Most Voted
- Cva. LIMIT and va. COUNT will return the same value.
- Dva. LIMIT and va. NEXT (199) will return the same value.
- Eva. LAST will return 200.
- Fva. NEXT (199) will return NULL.Most Voted
Correct Answer:
AC
AC
send
light_mode
delete
Question #13

Examine this code:

You want to display the contents of CREATE_LIST.
Which two lines need to be corrected in the PL/SQL block?
send
light_mode
delete
Question #14
Examine the following SQL statement:
ALTER SESSION SET PLSQL_OPTIMIZE_LEVEL=3;
What is the result of executing this statements?
ALTER SESSION SET PLSQL_OPTIMIZE_LEVEL=3;
What is the result of executing this statements?
- AThe PL/SQL optimize level for some existing PL/SQL units will be changed as an immediate result.
- BThe PL/SQL optimize level for subsequently complied PL/SQL units will be set to 3 and inlining will be enabled.Most Voted
- CThe PL/SQL optimize level for subsequently compiled PL/SQL units will be set to 3 and inlining will be disabled.
- DThis statement will fail because PLSQL_OPTIMIZE_LEVEL can only be set at the system level,
Correct Answer:
C
C
send
light_mode
delete
Question #15
Which two statements describe actions developers can take to make their application less vulnerable to security attacks?
- AInclude the AUTHID DEFINER clause in stored program units.
- BDo not concatenate unchecked user input into dynamically constructed SQL statements.
- CSwitch from using DBMS_SQL to EXECUTE IMMEDIATE.
- DInclude the AUTHID CURRENT_USER clause in stored program units.
- EIncrease the amount of code that is accessible to users by default.
Correct Answer:
BD
BD
send
light_mode
delete
All Pages