Total Questions : 30
Expected Time : 30 Minutes

1. How do you define an extension function in Kotlin?

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

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

4. What is the purpose of the 'noinline' modifier in Kotlin?

5. In Kotlin, what is the purpose of the 'by lazy' delegate?

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

7. How do you declare an array in Kotlin?

8. What is the purpose of the 'expect' keyword in Kotlin?

9. What is the purpose of the 'sealed class' in Kotlin?

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

11. In Kotlin, what is the purpose of the 'sequence' function?

12. How do you declare a top-level function in Kotlin?

13. How do you define a class with a private constructor in Kotlin?

14. In Kotlin, what is the 'invoke' operator used for?

15. What is the purpose of the 'reified' keyword in Kotlin?

16. In Kotlin, what is the purpose of the 'reified' keyword?

17. In Kotlin, what is the purpose of the 'let' extension function?

18. What is the purpose of the 'when' statement in Kotlin?

19. What is the purpose of the 'let' function in Kotlin?

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

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

22. What is the purpose of the 'filter' function in Kotlin?

23. Which collection type is immutable in Kotlin?

24. What is the purpose of the 'flatMap' function in Kotlin?

25. What is the purpose of the 'crossinline' modifier in Kotlin?

26. In Kotlin, what is the purpose of the 'noinline' modifier for functions?

27. What is the purpose of the 'tailrec' modifier in Kotlin?

28. How does Kotlin handle default arguments in functions?

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

30. What is the purpose of the 'inline' modifier in Kotlin?