National_Instruments
200-500 · Question #182
The constructs for(), foreach(), and each() can all be used to iterate an object if the object
The correct answer is C. implements Iterator and ArrayAccess. See the full explanation below for the reasoning.
Question
The constructs for(), foreach(), and each() can all be used to iterate an object if the object
Options
- Aimplements ArrayAccess
- Bimplements Iterator
- Cimplements Iterator and ArrayAccess
- DNone of the above
How the community answered
(38 responses)- A8% (3)
- B3% (1)
- C74% (28)
- D16% (6)
Community Discussion
No community discussion yet for this question.