When will be FIRST and LAST collection elements return null values?

Options
- If the collection contains more than one elements
- If the collection is empty
- If the collection contains only one element
- B and C


CORRECT ANSWER : If the collection is empty

Discussion Board
Collection elements

FIRST and LAST return the first and last (smallest and largest) index numbers in a collection that uses integer subscripts. If the collection is empty, FIRST and LAST return NULL. If the collection contains only one element, FIRST and LAST return the same index value.

Prajakta Pandit 02-21-2017 12:07 AM

Write your comments


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement