MCQs > IT & Programming > C# > Performance-wise, which of the following is the most efficient way to calculate the sum of integers stored in an object array?

C# MCQs

Performance-wise, which of the following is the most efficient way to calculate the sum of integers stored in an object array?

Answer

Correct Answer: int FindSum (object[] values) { int sum = values.OfType<int>().Sum(); return sum; }

Explanation:

Note: This Question is unanswered, help us to find answer for this one

C# Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

More C# MCQ Questions

search

C# Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it