Which statement is correct about the above snippets of code?

Examine the following snippet of code from the DECLARE section of PL/SQL
DECLARE
Cust_name VERCHAR2 (20) NOT NULL : = ‘Tom Jones’:
Same_name cust_name%TYPE:
Which statement is correct about the above snippets of code?
A. The SAME_NAME variable inherits only the data type from the CUST_NAME variable.
B. The SAME_NAME variable inherits only the data type and default value from the CUST_NAME variable.
C. The SAME_NAME variable inherits the data type, constraint, and default value from the CUST_NAME variable.
D. The SAME_NAME variable inherits only the data type and constraint from the CUST_NAME variable resulting in an error

Download Printable PDF. VALID exam to help you PASS.

2 thoughts on “Which statement is correct about the above snippets of code?

  1. D is correct.

    DECLARE
    Cust_name VARCHAR2(20) NOT NULL := ‘Tom Jones’;
    Same_name cust_name%TYPE;
    BEGIN
    null;
    END;
    /

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.