• Kotlin Basics Quiz Form

    Test your knowledge of Kotlin fundamentals with this short quiz. All questions are required.
  • Which of the following is the correct way to declare a variable in Kotlin?*
  • What is the default visibility modifier for classes and functions in Kotlin?*
  • Which keyword is used for defining an immutable variable in Kotlin?*
  • How do you define a function in Kotlin?*
  • What is the output type of the following function? fun add(a: Int, b: Int): Int { return a + b }*
  • Select the correct way to create a nullable variable of type String.*
  • Which of these is NOT a valid Kotlin data type?*
  • What is the result of 5 / 2 in Kotlin?*
  • Which function is used to print output to the console in Kotlin?*
  • Should be Empty:
Select theme: