Loading practice questions
What is the purpose of the fun keyword in Kotlin?
Correct Answer: D — To declare a function
Explanation:
In Kotlin, the fun keyword is used to define a function. For example, fun sayHello() {} is a simple Kotlin function declaration.