Exam 1z0-149 All QuestionsBrowse all questions from this exam
Question 39

The SH schema contains the PRODUCTS table with column PDT_NAME defined as VARCHAR2(10).

Which two blocks of code execute successfully when invoked by user SH? (Choose two.)

    Correct Answer: A, C

    To determine which blocks of code execute successfully, we should consider the data type constraints and syntax. The block containing PDT_NAME defined as VARCHAR2(10) implies a character limit for the column data. Blocks of code that attempt to initialize or manipulate the PRODUCTS table with compliant data will execute successfully. Option A works because it deals with character data within the limits set by VARCHAR2(10). Option C is also valid as it correctly manipulates the table without violating any constraints or requiring initialization specifically mentioned. Other options either present issues related to initialization or constraints that are not met, rendering them unsuccessful.

Discussion
jm9999Options: AD

Choice D also worked fine, along with A and C.

egznrd

D is Wrong. PLS-00681: named association syntax is required

egznrdOptions: AC

A, C is correct.

zangadoOptions: AC

A. Doesn't work on 12C but works on 19C B. TABLE has to be initialized C. Works fine D. PLS-00681: named association syntax is required E. VARRAY has to be initialized