Questions for Kotlin Basics & Syntax

1. What is the difference between `val` and `var` in Kotlin?

2. Explain data classes in Kotlin.

3. What is a sealed class in Kotlin?

4. How does Kotlin handle null safety?

5. What are extension functions in Kotlin?

6. What is the purpose of `lateinit` in Kotlin?

7. What is the difference between `==` and `===` in Kotlin?

8. Explain the `apply` function in Kotlin.

9. What are coroutines in Kotlin?

10. What is the difference between `launch` and `async` in Kotlin coroutines?

11. How does Kotlin differ from Java in terms of exception handling?

12. What is an inline function in Kotlin?

13. What is the use of the `companion object` in Kotlin?

14. What is the purpose of the `by` keyword in Kotlin?

15. What is the difference between `object` and `class` in Kotlin?

16. Explain higher-order functions in Kotlin.