A

Admin • 828.03K Points
Coach

Q. What does the keyword 'in' do in a for-loop in Kotlin?

  • (A) Checks the data type
  • (B) Declares a new variable
  • (C) Indicates the range to loop through
  • (D) Includes a file
  • Correct Answer - Option(C)
  • Views: 4
  • Filed under category Kotlin
  • Hashtags:

Explanation by: Admin
The 'in' keyword is used in for-loops to iterate through ranges or collections.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.