MCQs > IT & Programming > Scala > Correct output of given code fragment?

Scala MCQs

Choose the correct output of the following code fragment?

List("Who","is","longest?").foldLeft((0,""))((i,s) => if (i._1 < s.length) (s.length,s) else i )

Answer

Correct Answer: (8,longest?)

Explanation:

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

Scala Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Scala Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it