Complete the code to declare a constant integer named MAX_COUNT with value 100.
const val MAX_COUNT: Int = [1]The keyword const val declares a compile-time constant. Here, MAX_COUNT is assigned the integer value 100.
Complete the code to declare a constant string named APP_NAME with value "MyApp".
const val APP_NAME: String = [1]String constants must be enclosed in double quotes in Kotlin. So "MyApp" is correct.
Fix the error in the constant declaration for PI with value 3.14.
const val PI: Double = [1]Decimal numbers use a dot . as the decimal separator in Kotlin. The value must be a number, not a string.
Fill both blanks to declare two constants: MAX_SPEED as 120 and MIN_SPEED as 0.
const val MAX_SPEED: Int = [1] const val MIN_SPEED: Int = [2]
Constants are assigned their values directly. Here, MAX_SPEED is 120 and MIN_SPEED is 0.
Fill all three blanks to declare constants: PI as 3.1415, E as 2.718, and GREETING as "Hello".
const val PI: Double = [1] const val E: Double = [2] const val GREETING: String = [3]
Assign the correct numeric values for PI and E as doubles, and the string "Hello" for GREETING.