GenericArray & String concatenation

Question: We have an array with values GenericArray = {“4 Oranges”,”3 Pineapples”}. We have a variable Result = GenericArray(0)+GenericArray(1). What is the value of Result?

  •   Error: “Input string has incorrect format”
  •   “7 tropical fruit”
  •   7
  •   “4 Oranges3 Pineapples”

Answer

Option D is correct.

This is a simple string concatenation. It does not take individual parts and add thm. We would need to build an object with its own addition function to perform that.