Total Questions : 40
Expected Time : 40 Minutes

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

2. In Kotlin, how do you create a class with a primary constructor?

3. What is the 'when' expression used for in Kotlin?

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

5. How do you declare an enum class in Kotlin?

6. What is the 'by' keyword used for in Kotlin?

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

8. What is the purpose of the 'first' function in Kotlin?

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

10. In Kotlin, what is the purpose of the 'init' block?

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

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

13. How do you define a function in Kotlin?

14. In Kotlin, how do you declare a variable without initializing it?

15. How do you declare a package in Kotlin?

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

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

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

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

20. How do you declare an array in Kotlin?

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

22. In Kotlin, what is the purpose of the 'step' parameter in a range?

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

24. In Kotlin, what is the purpose of the 'also' function?

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

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

27. Which collection type is immutable in Kotlin?

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

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

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

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

32. What is the default visibility modifier in Kotlin?

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

34. What is the purpose of the 'break' statement in Kotlin?

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

36. How do you declare an interface in Kotlin?

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

38. What is the purpose of the 'reduce' function in Kotlin?

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

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