A

Admin • 828.03K Points
Coach

Q. What will be the output of `println(listOf(1,2,3).contains(2))`?

  • (A) false
  • (B) true
  • (C) 2
  • (D) 1
  • Correct Answer - Option(B)
  • Views: 6
  • Filed under category Kotlin
  • Hashtags:

Explanation by: Admin
contains() checks if the list has the specified element.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.