Practice exercise
Which two statements are true about associative arrays?
Associative arrays can have negative subscripts.
Associative arrays are always dense collections.
Associative arrays don't need initialization in a PL/SQL block.
The upper limit of associative arrays can be dynamically modified.
Which of the following statements is true about nested tables?
Nested tables are stored in a segment different from that of the parent table.
Nested table columns can have string subscripts
Nested tables can grow dynamically up to any extent.
A database column of the nested table collection type can be separately queried by its storage name.
Only varrays can have sequential numbers as subscripts.
True
False
Which of the following associative array declarations is/are correct?
DECLARE TYPE T1 IS TABLE OF NUMBER INDEX BY BOOLEAN; TYPE T2 IS TABLE OF VARCHAR2(10) INDEX BY NUMBER; TYPE T3 IS TABLE OF DATE INDEX BY SIGNTYPE; TYPE T4 IS TABLE OF EMPLOYEES%ROWTYPE INDEX BY POSITIVE; BEGIN … … END;
T1
T2
T3
T4...