Oracle Database: Program with PL/SQL — Question 73

Which two blocks of code execute successfully?

Answer options

Correct answer: A, D

Explanation

Options A and D execute successfully because they declare valid subtypes and assign values within the specified ranges. Option B fails because 'my_str' is not defined correctly, C is invalid as it assigns a value that exceeds the defined precision, and E fails due to trying to assign a negative value to a subtype that allows only positive integers.