MCQs > IT & Programming > .NET > Which of the following arrays will be returned as result when you run the following LINQ query in .Net framework 4.0? object[] varnumbers = { null, 1.0, 'two', 3, 'four', 5, 'six', 7.0 }; var doubles = varnumbers.OfType(); foreach (var d in doubles) { Response.Write(d); }

.NET MCQs

Which of the following arrays will be returned as result when you run the following LINQ query in .Net framework 4.0?

object[] varnumbers = { null, 1.0, "two", 3, "four", 5, "six", 7.0 };

var doubles = varnumbers.OfType<double>();

foreach (var d in doubles)
{
    Response.Write(d);
}


Answer

Correct Answer: 1, 7

Explanation:

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

.NET Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

.NET Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it