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?
  10. Which of the followings constructors are available in Kotlin?
  11. Does Kotlin works only for Java?
  12. Is Kotlin compatible with the Java programming language?
  13. Which of the following extension methods are used in Kotlin?
  14. There are two types of constructors in Kotlin which are-
Kotlin MCQ

Take Kotlin Quiz to Test Your Knowledge

Practice below the best Kotlin MCQ Questions, that checks your basic knowledge of Kotlin. This Kotlin MCQ Test contains around 20+ Multiple Choice Questions and Answers. Choose the right answers to every question to check your final preparation for your Exam or Interview. Apart from this, you can also download Kotlin MCQ PDF, completely free.

  • 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)
Download Free : Kotlin MCQ PDF
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
  • Primary constructor
  • Secondary constructor
  • Both 1 & 2
  • None of the above
View Answer
  • Read texts () & Headlines ()
  • Buffer reader ()
  • Read each line ()
  • All of the above
View Answer
  • Primary & Secondary constructor
  • Default & No-arg constructor
  • Parameterized & constant Constructor
  • None of the above
View Answer
  • Range
  • Elvis Operator
  • Sealed Class
  • Lambda function
View Answer
  • Apache 1.0
  • Apache 2.0
  • Apache 1.1
  • None of the above
View Answer