Explore topic-wise MCQs in Technical MCQs.

This section includes 10 Mcqs, each offering curated multiple-choice questions to sharpen your Technical MCQs knowledge and support exam preparation. Choose a topic below to get started.

1.

Is there any Ternary Conditional Operator in Kotlin like in Java?

A. TRUE
B. FALSE
C. Can be true or false
D. Can not say
E.
Answer» C. Can be true or false
2.

What is the use of data class in Kotlin?

A. extract the basic data types
B. delete the basic data types
C. present the basic data types
D. holds the basic data types
Answer» E.
3.

Which of the following is Use for reading contents of file to ByteArray?

A. bufferedReader()
B. readText()
C. readBytes()
D. readLines()
Answer» D. readLines()
4.

How many types of constructors available in Kotlin?

A. 1
B. 2
C. 3
D. 4
Answer» C. 3
5.

How can you declare a variable in Kotlin?

A. value my_var: Char
B. value Char : my_var
C. my_var: Char
D. value my_var: Char
Answer» E.
6.

Kotlin is interoperable with Java because it uses JVM bytecode.

A. Yes
B. No
C. Can be yes or no
D. Can not say
Answer» B. No
7.

____________ feature allows removing the risk of occurrence of NullPointerException in real time.

A. Null Risk
B. Null Safety
C. Null Pointer
D. All of the above
Answer» C. Null Pointer
8.

Why you should switch to Kotlin from Java?

A. Kotlin language is quite simple compared to Java
B. It reduces may redundancies in code as compared to Java
C. Kotlin can offer some useful features which are not supported by Java
D. All of the above
Answer» E.
9.

Kotlin is a statically-typed programming language which runs on the?

A. JCM
B. JVM
C. JPM
D. JDM
Answer» C. JPM
10.

Kotlin was developed by?

A. IBM
B. NetBeans
C. JetBrains
D. Oracle
Answer» D. Oracle