Oracle 1z0-148 Exam Practice Questions (P. 4)
- 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 #16
Examine this code:

What is the correct statement to get the value of attribute ACCOUNT_MGR after the procedure has been executed?

What is the correct statement to get the value of attribute ACCOUNT_MGR after the procedure has been executed?
- ASELECT USERENV (‘ACCOUNT_MGR’) FROM dual;
- BSELECT SYS_CONTEXT (‘USERENV’, ‘ACCOUNT_MGR’) FROM dual;
- CSELECT SYS_CONTEXT (‘ORDER_CTX’, ‘ACCOUNT_MGR’) FROM dual;Most Voted
- DSELECT SYS_CONTEXT (‘ACCOUNT_MGR’, ‘ORDER_CTX’) FROM dual;
- ESELECT USERENV (‘ORDER_CTX’) FROM dual;
Correct Answer:
B
B
send
light_mode
delete
Question #17
Which data dictionary view contains the list of procedures and functions defined within package specification that you can execute?
- AALL_SOURCE
- BALL_DEPENDENCIES
- CALL_OBJECTS
- DALL_PROCEDURES
- EALL_PLSQL_OBJECT_SETTINGS
Correct Answer:
D
D
send
light_mode
delete
Question #18
Examine this code:

Examine this DML statement executed in the SCOTT schema:
UPDATE emp SET comm = 1000 WHERE deptno= 20;
What is the outcome after executing this statement?

Examine this DML statement executed in the SCOTT schema:
UPDATE emp SET comm = 1000 WHERE deptno= 20;
What is the outcome after executing this statement?
- ACOMM is set to 1000 for all records in the EMP table where DEPTNO = 30.
- BThe statement executes successfully but no rows are updated.Most Voted
- CCOMM is set to 1000 for all records in the EMP table where DEPTNO=20.
- DThe statement fails with error ORA-28115: policy with check option violation.
Correct Answer:
D
D
send
light_mode
delete
Question #19
Identify the two correct scenarios where a function can be optimized using the function result cache feature.
- AA function which inserts multiple records into a DEPARTMENTS table as part of one-time data setup for an HR application.
- BA function which accesses multiple tables and calculates the commission to be given to a sales representative based on the number of products sold by that representative.Most Voted
- CA function which deletes all the records from an EMPLOYEES_AUDIT table based on their LOG_DATE.
- DA function which updates the SALARY of all the employees in an EMPLOYEES table by a fixed percentage based on their DESIGNATION.
- EA function which calculates the factorial of a given number without accessing any table.Most Voted
Correct Answer:
DE
DE
send
light_mode
delete
Question #20
Select the correct statement regarding BEQUEATH CURRENT_USER.
- AIf a view references a PL/SQL function then BEQUEATH CURRENT_USER allows the function to execute with DBA privileges, regardless of the invoking users privileges.
- BThe BEQUEATH CURRENT_USER clause allows invoker’s rights functions referenced in a view to execute with the privileges of the invoking user.Most Voted
- CAny view calling a PL/SQL function with BEQUEATH CURRENT_USER in effect will execute with the privileges of the function owner.
- DWith the BEQUEATH CURRENT_USER clause, a definer’s rights function referenced in a view executes with the privileges of the view owner, not the function
Correct Answer:
B
Reference:
https://docs.oracle.com/database/121/DBSEG/dr_ir.htm#DBSEG558
B
Reference:
https://docs.oracle.com/database/121/DBSEG/dr_ir.htm#DBSEG558
send
light_mode
delete
All Pages