Total Questions : 40
Expected Time : 40 Minutes

1. How do you declare a constant property in a class in Kotlin?

2. Which keyword is used to define a constant in Kotlin?

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

4. In Kotlin, what is the purpose of the 'yield' function?

5. How do you declare a function with an infix notation in Kotlin?

6. What is the purpose of the 'coroutine' keyword in Kotlin?

7. What is the default visibility modifier in Kotlin?

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

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

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

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

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

13. What is the syntax for a multiline string in Kotlin?

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

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

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

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

18. How do you declare a package in Kotlin?

19. How do you define a function in Kotlin?

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

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

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

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

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

25. Which collection type is immutable in Kotlin?

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

27. In Kotlin, how do you handle exceptions?

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

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

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

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

32. What is the purpose of the 'groupBy' function in Kotlin?

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

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

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

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

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

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

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

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