What is the process of a subclass providing a specific implementation for a method declared in its superclass called?
Encapsulating
Overloading
Overriding
Abstracting
What happens if you try to access a lateinit property before it has been initialized?
lateinit
An UninitializedPropertyAccessException is thrown.
An IllegalArgumentException is thrown.
A KotlinNullPointerException is thrown.
A NullPointerException is thrown.
What annotation must be added to a method in the superclass to allow it to be overridden in a subclass?
@Override
@Overrideable
@Open
@Abstract
Which keyword is used to cancel an ongoing coroutine in Kotlin?
stop
cancel
interrupt
terminate
Which Kotlin function is used to combine elements of two collections into pairs?
merge()
pair()
combine()
zip()
What keyword is used to call the superclass implementation of an overridden method from within the subclass?
base
this
parent
super
Which function is used to launch a new coroutine in Kotlin?
withContext
runBlocking
launch
async
Which keyword is used to implement an interface in Kotlin?
inherits
extends
uses
implements
What is the purpose of the StringBuilder class in Kotlin?
StringBuilder
To convert between different string encodings.
To perform regular expression matching.
To create immutable strings.
To efficiently build mutable strings.
Which keyword guarantees immutability for a collection in Kotlin?
let
val
const
var