Kotlin Multiple Choice Questions And Answers

Kotlin Multiple Choice Questions And Answers: Kotlin MCQs

Kotlin language is becoming popular day by day. Many developers are using Kotlin to develop Android applications. In this section, we try to cover up basic and advanced level Kotlin multiple-choice questions. Kotlin MCQs for all levels and this will help you in learning and understanding the Kotlin language. So here is Kotlin Multiple Choice Questions And Answers.


Kotlin Multiple Choice Questions


1- Who developed Kotlin?



(C) JetBrains

(D) Microsoft


2- Which extension is responsible to save Kotlin files?

(A) .kot

(B) .android

(C) .src

(D) .kt or .kts


3- How to do a multi-line comment in Kotlin language?

(A) //

(B) \\

(C) /* */

(D) None of the above


4- Kotlin only works for supporting Java language?

(A) True 

(B) False


5- The two types of constructors in Kotlin are? 

(A) Primary and Secondary constructor  

(B) First and second constructor

(C) Constant and Parameterized constructor

(D) None of these


6- Does Kotlin use the “static” keyword?

(A) Yes 

(B) No


7- What handles null exception in Kotlin?

(A) Sealed classes

(B) Lambda functions

(C) The Kotlin extension

(D) Elvis operator


8- The correct function to get the length of a string in Kotlin language is?

(A) str.length

(B) string(length)

(C) lengthof(str)

(D) None of these


9- Kotlin language name came from the “Koltin Island” of Russia? 

(A) True

(B) False


10- Can we convert Java code into Kotlin code?

(A) Yes 

(B) No


Answers | Kotlin Multiple Choice Questions And Answers

1- (C) JetBrains
2- (D) .kt or .kts
3- (C) /* */
4- (B) False
5- (A) Primary and Secondary constructor  
6- (B) No
7- (D) Elvis operator
8- (C) lengthof(str)
9- (A) True
10- (A) Yes 


Read More


Leave a Comment

Your email address will not be published. Required fields are marked *