Total Questions : 20
Expected Time : 20 Minutes

1. How does Kotlin handle default arguments in functions?

2. How do you declare an infix function in Kotlin?

3. In Kotlin, what is the 'typealias' keyword used for?

4. What is the purpose of the 'apply' function in Kotlin?

5. In Kotlin, what is the 'getter' keyword used for?

6. What is the purpose of the 'forEach' function in Kotlin?

7. What is the syntax for a single-line comment in Kotlin?

8. How do you declare a nullable variable in Kotlin?

9. In Kotlin, what is the purpose of the 'repeat' function?

10. What is the purpose of the 'with' function in Kotlin?

11. In Kotlin, what is the 'operator overloading' feature used for?

12. How do you declare an extension property in Kotlin?

13. What is the purpose of the 'operator' keyword in Kotlin?

14. Which keyword is used for type casting in Kotlin?

15. Which collection type is immutable in Kotlin?

16. What is the purpose of 'lateinit' in Kotlin?

17. What is the purpose of the 'use' function in Kotlin?

18. What is the purpose of the 'by' keyword in Kotlin?

19. How do you declare a generic class in Kotlin?

20. How do you declare a generic function in Kotlin?