Oracle Database 19c: Program with PL/SQL (1Z0-149) Free Practice Test
Question 1
Examine the SH.PRODUCTS table:

A row exists in SH.PRODUCTS with PDT_ID = 1.
Now, examine this code and output executed by SH:

Now, examine this block of code:

Which error message(s) does it display on execution by user SH?

A row exists in SH.PRODUCTS with PDT_ID = 1.
Now, examine this code and output executed by SH:

Now, examine this block of code:

Which error message(s) does it display on execution by user SH?
Correct Answer: C
Question 2
In one of your databases, table HR.EMPLOYEES includes the columns FIRST_NAME and EMPLOYEE_ID.
A row exists with EMPLOYEE_ID 201.
Examine these packages created by user HR:

EXECUTE privilege is granted to user SH, on the HR.API and HR.HELPER packages.
Which two will execute successfully? (Choose two.)
A row exists with EMPLOYEE_ID 201.
Examine these packages created by user HR:

EXECUTE privilege is granted to user SH, on the HR.API and HR.HELPER packages.
Which two will execute successfully? (Choose two.)
Correct Answer: A,E
Question 3
Examine this table in the SH schema:

User SH executes this code:

The program must terminate with a user-defined message and no rows displayed if more than one product's price is 1000.
With which option must "---placeholder" be replaced?

User SH executes this code:

The program must terminate with a user-defined message and no rows displayed if more than one product's price is 1000.
With which option must "---placeholder" be replaced?
Correct Answer: D
Question 4
Which is true about EXIT and CONTINUE statements?
Correct Answer: D
Question 5
Which three statements are true about passing parameters to subprograms? (Choose three.)
Correct Answer: A,C,D
Question 6
Which three are true about DDL triggers? (Choose three.)
Correct Answer: A,F,G
Question 7
Which three are valid PL/SQL variable names? (Choose three.)
Correct Answer: B,F,G