1Z0-146 · Question #14
Which two statements are true about associative arrays and nested tables? (Choose two.)
The correct answer is B. Only associative arrays can use numbers and strings for subscripts. C. Both associative arrays and nested tables can hold an arbitrary number of elements. Associative arrays, also known as index-by tables, let you look up elements using arbitrary numbers and strings for subscript values. These are similar to hash tables in other programming languages. Nested tables hold an arbitrary number of elements. They use sequential numbers…
Question
Which two statements are true about associative arrays and nested tables? (Choose two.)
Options
- AOnly associative arrays can hold an arbitrary number of elements.
- BOnly associative arrays can use numbers and strings for subscripts.
- CBoth associative arrays and nested tables can hold an arbitrary number of elements.
- DBoth associative arrays and nested tables can use numbers and strings for subscripts.
How the community answered
(66 responses)- A20% (13)
- B71% (47)
- D9% (6)
Explanation
Associative arrays, also known as index-by tables, let you look up elements using arbitrary numbers and strings for subscript values. These are similar to hash tables in other programming languages. Nested tables hold an arbitrary number of elements. They use sequential numbers as subscripts. You can define equivalent SQL types, allowing nested tables to be stored in database tables and manipulated through SQL.
Topics
Community Discussion
No community discussion yet for this question.