Quiz on Structural Patterns

Practice your learning outcomes and test your understanding of the material presented in this chapter by taking this quiz.

1

What is the Elvis operator (?:) in Kotlin?

A)

An operator that provides a default value in case a null value is received.

B)

An operator that provides a default value in case a non-null value is received.

C)

An operator that compares two nullable objects and returns true if they are equal.

D)

An operator that compares two nullable objects and returns false if they are equal.

Question 1 of 90 attempted

Get hands-on with 1400+ tech skills courses.