MCQs > IT & Programming > Scala > For the code below, which statement is True?

Scala MCQs

For the code below, which of the following statement is True?

val data = "test" list = List("this", "is", "a", "test") what will be the effect of applying the expression below to the list list.filterNot(elm => elm == data)

Answer

Correct Answer: will return all elements from the list except those which aren't equal to "test"

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