What is the purpose of the is keyword in Kotlin?
To check the type of an object
To define an interface
To declare a variable
To create a loop
Correct Answer: A — To check the type of an object
Explanation:
The is keyword in Kotlin is used to check the type of an object, similar to the instanceof operator in Java.