Reader small image

You're reading from  Oracle Advanced PL/SQL Developer Professional Guide

Product typeBook
Published inMay 2012
Reading LevelExpert
PublisherPackt
ISBN-139781849687225
Edition1st Edition
Languages
Right arrow
Author (1)
Saurabh K. Gupta
Saurabh K. Gupta
author image
Saurabh K. Gupta

Saurabh K. Gupta is a seasoned database technologist with extensive experience in designing high performance and highly available database applications. His technology focus has been centered around Oracle Database architecture, Oracle Cloud platform, Database In-Memory, Database Consolidation, Multitenant, Exadata, Big Data, and Hadoop. He has authored the first edition of this book. He is an active speaker at technical conferences from Oracle Technology Network, IOUG Collaborate'15, AIOUG Sangam, and Tech Days. Connect with him on his twitter handle (or SAURABHKG) or through his technical blog www.sbhoracle. wordpress.com, with comments, suggestions, and feedback regarding this book.
Read more about Saurabh K. Gupta

Right arrow

Chapter 3, Using Collections


Question No.

Answer

Explanation

1

a and c

Associative arrays can have negative integer subscripts, positive integer subscripts and string subscripts.

As associative arrays are treated as local arrays, initialization is not required for them.

2

c

Nested tables are an unbounded collection which can grow dynamically.

3

a

Varrays are always dense collections. Sparse varray doesn't exist.

4

c and d

BOOLEAN and NUMBER are not suitable index types for an associative array.

5

a and c

Yes, varray limit can be increased during runtime using the ALTER TABLE statement.

If all the cells of a varray are populated with elements, LAST is equal to COUNT. This also holds true when the varray is empty.

6

b

The first DBMS_OUTPUT prints the first element from the default constructor. Once it is reassigned with a value in the executable section, the default values are overwritten.

7

a and c

Varrays are bounded collections which can accommodate data maximum up to the specified limit.

8

a, b, and c

EXISTS doesn't raises any exception.

DELETE cannot be used with varrays.

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Oracle Advanced PL/SQL Developer Professional Guide
Published in: May 2012Publisher: PacktISBN-13: 9781849687225

Author (1)

author image
Saurabh K. Gupta

Saurabh K. Gupta is a seasoned database technologist with extensive experience in designing high performance and highly available database applications. His technology focus has been centered around Oracle Database architecture, Oracle Cloud platform, Database In-Memory, Database Consolidation, Multitenant, Exadata, Big Data, and Hadoop. He has authored the first edition of this book. He is an active speaker at technical conferences from Oracle Technology Network, IOUG Collaborate'15, AIOUG Sangam, and Tech Days. Connect with him on his twitter handle (or SAURABHKG) or through his technical blog www.sbhoracle. wordpress.com, with comments, suggestions, and feedback regarding this book.
Read more about Saurabh K. Gupta