Total Questions : 50
Expected Time : 50 Minutes

1. How do you declare an array in Kotlin?

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

3. In Kotlin, what is the 'elvis operator' used for?

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

5. In Kotlin, how do you create a secondary constructor?

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

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

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

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

10. How do you define a function in Kotlin?

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

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

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

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

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

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

17. How do you declare a package in Kotlin?

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

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

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

21. How does Kotlin handle null safety?

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

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

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

25. What is the default visibility modifier in Kotlin?

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

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

28. In Kotlin, what is the purpose of the 'inline' modifier for functions?

29. What is a primary constructor in Kotlin?

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

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

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

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

34. What is the purpose of the 'sealed' modifier in Kotlin?

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

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

37. What is the purpose of the 'if' expression in Kotlin?

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

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

40. Which collection type is immutable in Kotlin?

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

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

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

44. How does Kotlin handle extension properties?

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

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

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

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

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

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