Multiple choice technology web technology

How do define an Array Collection ?

  1. private var arrC :ArrayCollection = new ArrayCollection([{label:"abc"},{label:"def"}]);

  2. private var arrC :ArrayCollection =([{label:"abc"},{label:"def"}]);

  3. private var arrC :ArrayCollection = new ArrayCollection([{"abc"},{"def"}]);

  4. private var arrC :ArrayCollection = new ArrayCollection({label:"abc"},{label:"def"});

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

ArrayCollection must be instantiated with the 'new' keyword and constructor. Option A shows correct syntax: 'new ArrayCollection([{label:"abc"},{label:"def"}])'. Option B is missing 'new' and constructor call. Option C has malformed objects without proper key-value structure. Option D passes two separate objects instead of an array.