Complete the code to declare a non-nullable integer variable named age with value 30.
val age: Int = [1]The variable age is declared as a non-nullable Int, so it must be assigned a non-null integer value like 30.
Complete the code to declare a non-nullable string variable name with value "Alice".
val name: String = [1]Strings must be enclosed in double quotes. Since name is non-nullable, it cannot be assigned null.
Fix the error in the code by completing the declaration of a non-nullable Boolean variable isActive with value true.
val isActive: Boolean = [1]True instead of lowercase true.null to a non-nullable variable.The Boolean value true is lowercase in Kotlin and must not be in quotes. Non-nullable variables cannot be assigned null.
Fill both blanks to declare a non-nullable variable height of type Double with value 1.75.
val height: [1] = [2]
Float instead of Double when the type is specified as Double.null to a non-nullable variable.The variable height is declared as a non-nullable Double type and assigned the value 1.75.
Fill all three blanks to create a non-nullable variable score of type Int, assigned the value 100, and print it.
val [1]: [2] = [3] println(score)
null as value for a non-nullable variable.This code declares a non-nullable integer variable score with value 100 and prints it.