What is a default argument in Kotlin?
An argument that is required to be passed when calling the function.
An argument that is passed to a function by reference.
An argument that is provided a default value in the function signature.
An argument that is automatically inferred by the compiler.
How do you pass a lambda expression as an argument to a function in Kotlin?
By using the 'function' keyword before the lambda expression.
Lambda expressions cannot be passed as arguments in Kotlin.
By simply passing the lambda expression without any special syntax.
By enclosing the lambda expression in parentheses.
What is a lambda expression in Kotlin?
A special kind of variable.
A way to define anonymous functions.
A keyword used for error handling.
A type of loop in Kotlin.
What is a field in Kotlin?
A backing field for a property
A constant value
A property declared inside a function
A static variable
How can you check if a value is within a range in Kotlin?
None of the above
Using the 'contains' method
Both 'in' operator and 'contains' method can be used
Using the 'in' operator
How can you add an element to a mutable list in Kotlin?
You cannot add elements to a mutable list once it's created.
Using the append() function
append()
Using the push() function
push()
Using the add() function
add()
What is the output of listOf(1, 2, 2, 3).toSet() in Kotlin?
listOf(1, 2, 2, 3).toSet()
{1, 2, 3}
[1, 2, 3]
[1, 2, 2, 3]
{1, 2, 2, 3}
Can you modify the elements of an immutable list in Kotlin?
No
Yes
Which method adds an element to the end of a mutable list in Kotlin?
insert()
What is the most appropriate collection type in Kotlin to store a list of unique user IDs?
Map
MutableList
Set
List