Quiz 1
1. Which keyword is used to declare a read-only variable?
2. What does the '!!' operator do in Kotlin?
3. How do you declare a nullable String in Kotlin?
4. Which keyword is used to define a function?
5. What is the standard way to perform string interpolation in Kotlin?
6. What is the default return type of a function that returns no value?
7. Which expression is used as a replacement for the Java switch statement?
8. Which class type automatically generates equals(), hashCode(), and toString()?
9. How do you allow a class to be inherited by other classes?
10. Which operator is used to check if an object is of a certain type?
Previous Next