Vidyalelo
Computer Science · all questions

Kotlin Programming MCQ for Competitive Exams, Interviews, and Certifications
practice.

Practice every MCQ with options. Use Show answers when you want the correct option and solution.

292

Questions

4/15

Page

Pick an option on a question to see the right answer and solution.

Identify the bits allocated in Kotlin for Float data type

Select an option to see the answer and solution.

The Kotlin code can be implemented without JVM?

Select an option to see the answer and solution.

Array indexes start with:

Select an option to see the answer and solution.

What paradigm(s) does the Kotlin programming language follow?

Select an option to see the answer and solution.

How do you define a variable in Kotlin that cannot be reassigned?

Select an option to see the answer and solution.

What is the when expression used in Kotlin?

Select an option to see the answer and solution.

What does ?. operator do in Kotlin?

Select an option to see the answer and solution.

The value of a string variable must be surrounded by single quotes.

Select an option to see the answer and solution.

What is the default visibility modifier for functions in Kotlin?

Select an option to see the answer and solution.

Which keyword is used to create a singleton in Kotlin?

Select an option to see the answer and solution.

What is the main purpose of the let function in Kotlin?

Select an option to see the answer and solution.

What is the purpose of the open modifier in Kotlin?

Select an option to see the answer and solution.

Which Kotlin construct allows a block of code to be executed a specific number of times?

Select an option to see the answer and solution.

Which keywords are used to handle conditional statements in Kotlin?

Select an option to see the answer and solution.

In Kotlin, what is the main purpose of the return keyword?

Select an option to see the answer and solution.

What is the primary use of the with function in Kotlin?

Select an option to see the answer and solution.

Which of these is not a loop structure in Kotlin?

Select an option to see the answer and solution.

What methods can be used to achieve abstraction in Kotlin?

Select an option to see the answer and solution.

Which of the following is not a basic data type in Kotlin?

Select an option to see the answer and solution.

Which property can be used to find the length of a string?

Select an option to see the answer and solution.