Oracle 1z0-144 Exam Practice Questions (P. 5)
- Full Access (112 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 #21
User SCOTT has been granted CREATE ANY TRIGGER AND ALTER ANY TABLE by the DBA. HR is an existing schema in the database.
SCOTT creates the following trigger:
CREATE OR REPLACE TRIGGER drop_trigger
BEFORE DROP ON hr.SCHEMA -
BEGIN -
RAISE_APPLICATION_ERROR (-20000, Cannot drop object');
END:
SCOTT does not grant the execute privilege on this trigger to any other users.
For which user(s) would this trigger fire by default when they drop an object in the hr schema?
SCOTT creates the following trigger:
CREATE OR REPLACE TRIGGER drop_trigger
BEFORE DROP ON hr.SCHEMA -
BEGIN -
RAISE_APPLICATION_ERROR (-20000, Cannot drop object');
END:
SCOTT does not grant the execute privilege on this trigger to any other users.
For which user(s) would this trigger fire by default when they drop an object in the hr schema?
send
light_mode
delete
Question #22
Which two statements are true about the continue statement? (Choose two.)
- AThe PL/SQL block execution terminates immediately.
- BThe CONTINUE statement cannot appear outside a loop.
- CThe loop completes immediately and control passes to the statement after end loop.
- DThe statements after the continue statement in the iteration are executed before terminating the LOOP.
- EThe current iteration of the loop completes immediately and control passes to the next iteration of the loop.
Correct Answer:
BE
BE
send
light_mode
delete
Question #23
View the Exhibit and examine the code and its outcome on execution:

What would be the effect on the two procedures if the value of debug is set to false? (Choose two.)

What would be the effect on the two procedures if the value of debug is set to false? (Choose two.)
- AMY_PROC2 is not recompiled.
- BMY_PROC1 is recompiled but remains unchanged.
- CMY_PROC2 is recompiled but remains unchanged.
- DMY_PROC1 is recompiled without the debugging code.
Correct Answer:
CD
CD
send
light_mode
delete
Question #24
View Exhibit 1 and examine the structure of the DO table.

View Exhibit 2 and examine the code.

The anonymous block gives an error on execution. What is the reason?

View Exhibit 2 and examine the code.

The anonymous block gives an error on execution. What is the reason?
- AThe assignment in line 7 is not valid.
- BThe SQL does not support the Boolean data type.
- CA null value cannot be applied to the bind arguments in the using clause in line 10.
- DThe names of bind variables must be the same as the using clause bind arguments in line 10.
Correct Answer:
B
B
send
light_mode
delete
Question #25
View the Exhibit and examine the structure of the departments table in SCOTTs schema.

Examine the following block of code:
CREATE OR REPLACE PROCEDURE add_dept(
p_id NUMBER, p_name VARCHAR2) IS
BEGIN -
INSERT INTO departments VALUES <p_id, p_name, NULL, NULL);
END;
/
The above procedure is created by user SCOTT. Another user JONES needs to use the procedure.
Which two statements are true in the above scenario? (Choose two.)

Examine the following block of code:
CREATE OR REPLACE PROCEDURE add_dept(
p_id NUMBER, p_name VARCHAR2) IS
BEGIN -
INSERT INTO departments VALUES <p_id, p_name, NULL, NULL);
END;
/
The above procedure is created by user SCOTT. Another user JONES needs to use the procedure.
Which two statements are true in the above scenario? (Choose two.)
- AJONES executes the procedure with definer's rights.
- BJONES executes the procedure with invoker's rights.
- CSCOTT should grant only the execute privilege for the procedure to JONES.
- DSCOTT should grant both the BXKCOTE privilege for the procedure and insert privilege for the table to
Correct Answer:
AC
AC
send
light_mode
delete
All Pages