Oracle Database 19c: Program with PL/SQL - 1z1-149 Exam Practice Test
Examine this DECLARE section:

Which two lines are valid? (Choose two.)

Which two lines are valid? (Choose two.)
Correct Answer: A,B
Examine this table definition in the SH schema.

A row with PDT_ID = 1 exists. Which two blocks of code will execute successfully by user SH and give the same output? (Choose two.)

A row with PDT_ID = 1 exists. Which two blocks of code will execute successfully by user SH and give the same output? (Choose two.)
Correct Answer: A,D
Examine these statements which execute successfully:

Which anonymous block executes successfully?

Which anonymous block executes successfully?
Correct Answer: A
Examine these facts:
Table EMP exists in schema USERA with columns SALARY and EMP_ID.
EMP_ID is the primary key with values ranging from 1 to 100.
USERA now executes these statements successfully:

USERA then grants execute privilege on procedure MYPROC to USERB.
USERB exists in the database identified by pdb1 but does not have select privilege on USERA.EMP.
USERB now executes these statements:
conn userB/userB@pdb1
execute userA.myproc;
Which is true?
Table EMP exists in schema USERA with columns SALARY and EMP_ID.
EMP_ID is the primary key with values ranging from 1 to 100.
USERA now executes these statements successfully:

USERA then grants execute privilege on procedure MYPROC to USERB.
USERB exists in the database identified by pdb1 but does not have select privilege on USERA.EMP.
USERB now executes these statements:
conn userB/userB@pdb1
execute userA.myproc;
Which is true?
Correct Answer: D
Examine this row of data from the EMPLOYEES table:

Now, examine this block of code which executes successfully:

What is the value of v_commission?

Now, examine this block of code which executes successfully:

What is the value of v_commission?
Correct Answer: C
Which three are true about PL/SQL subprograms? (Choose three.)
Correct Answer: C,F,G
Which two are true about named notations in a PL/SQL subprogram? (Choose two.)
Correct Answer: A,B