0 of 25 Questions completed
Questions:
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading…
You must sign in or sign up to start the quiz.
You must first complete the following:
0 of 25 Questions answered correctly
Time has elapsed
You have reached 0 of 0 point(s), (0)
Earned Point(s): 0 of 0, (0)
0 Essay(s) Pending (Possible Point(s): 0)
Is Kotlin a functional language or an object-oriented one?
Does Kotlin fully interoperate with Java?
What will be the output?
val a : String = null val b : Int? = null println("$a $b")
What is the difference between a val and a var declaration?
Does Kotlin allow to use of primitive types?
How can we perform a runtime check that identifies whether an object conforms to a String?
What will be the output?
val a : Any = 1 println(a as Long)
What will be the output?
val a : Any = 1 println(a as? Long)
What’s the difference between a Void and a Unit?
What visibility modifiers are presented in Kotlin?
What is the default visibility used if there is no explicit modifier?
Are private members of an inner class visible to the outer class?
Will the following code compile? If not, then why?
val myInt = 10 var myLong = 22L myLong = myInt
Which line will be the KotlinNullPointerException thrown in the following code?
val one = null val two = one!! val three = two.toUpperCase()
What happens when we compare a null reference with another object?
What is the difference between one and two in the following example?
class SomeClass(val one: String, two: String) {}
What are Varargs in Kotlin?
How many varargs might be placed in a parameter list?
Does the vararg parameter have to be the last one in a parameter list?
Do we have to declare a class as open when it is already declared as abstract?
Can data classes be extended?
Is an anonymous object a singleton?
How can we check if a value is in a range?
What will be the output of the following code?
val a = if (someCondition) { 12 } println(a)
Can try, catch, or finally blocks return a value?
To make Codersee work, we log user data. By using our site, you agree to our Privacy Policy and Terms of Use.