Kotlin MCQ Quiz

  1. Kotlin is developed by?
  2. Which of following is used to handle null exceptions in Kotlin?
  3. Which file extension is used to save Kotlin files.
  4. All classes in Kotlin classes are by default?
  5. What is correct way to create an arraylist in Kotlin?
  6. What is an immutable variable?
  7. Which of follwing targets currently not supported by Kotlin?
  8. How to make a multi lined comment in Kotlin?
  9. How do you get the length of a string in Kotlin?
Kotlin MCQ

Take Kotlin Quiz To test your Knowledge

Below are few Kotlin MCQ test that checks your basic knowledge of Kotlin. This Kotlin Test contains around 20 questions of multiple choice with 4 options. You have to select the right answer to a question. You can see the correct answer by clicking view answer link.

  • Google
  • JetBrains
  • Microsoft
  • Adobe
View Answer
  • Range
  • Sealed Class
  • Elvis Operator
  • Lambda function
View Answer
  • .java
  • .kot
  • .kt or .kts
  • .andriod
View Answer
  • public
  • final
  • sealed
  • abstract
View Answer
  • val map = hashMapOf(1 to "one", 2 to "two", 3 to "three")
  • enum class Color {RED, GREEN, BLUE}
  • val list = arrayListOf(1, 2, 3)
  • val set = hashSetOf(1, 2, 3)
View Answer
  • A variable that cannot change, read-only
  • A variable that can be changed
  • A variable used for string interpolation
View Answer
  • LLVM
  • .NET CLR
  • Javascript
View Answer
  • //
  • /* */
  • / multi line comment /
View Answer
  • str.length
  • length(str)
  • str.lengthOf
View Answer