The “arrayOfPointsGainedByParticipant” Object array is created and initialized with the following values: {“7”, “4”, “1”}. Which is the value and data type returned, at runtime, by arrayOfPointsGainedByParticipant(1)?
Select an option, then click Submit answer.
Reference / correct answer:
Value: 4 - Data Type: Object
Most accepted answer: A. Value: 4 - Data Type: Object
Community votes: A=2, C=1
Selected Answer: C Tested in Studio. Created assign with object array value: new Object(){"7", "4", "1"}. Log message for array(1) was 4. Log message for array(1).GetType was System.String upvoted 3 times 2526be0 1 year, 2 months ago Same, arrOfPoint(1).GetType -> System.String upvoted 1 times ...
Same, arrOfPoint(1).GetType -> System.String upvoted 1 times
Selected Answer: A Since it is declared with object[], it naturally returns as object. Same logic as adding ToString() to DataRow upvoted 1 times
Selected Answer: A A - Object array upvoted 1 times
@Sanjib40, i have tested in studio, it is C. Furthermore, u are giving lots of wrong answers, can you dont give any comments anymore? Thanks upvoted 2 times Karthiiii28 1 year, 8 months ago wrong answer... Answer is A. Tested in studio upvoted 2 times ... 19b3ff8 1 year, 7 months ago Once you examine the relationship between the Object type and the String type, you will become more interested in object-oriented. upvoted 1 times ...