Intro to Programming

  1. Which of the following variable declarations is valid?

  2. It is considered best practice to declare a variable that will not change using var instead of val.

  3. Which of the following are valid ways to update a variable?

    Choose as many answers as you see fit.

  4. In Kotlin, comments can be single or multi-line and are ignored by the compiler.

  5. Which of the following is not a data type in Kotlin?

  6. Float also represents a decimal, but is less precise than Double.

  7. In Kotlin, the entrypoint of a program is the ___.

  8. Which of the following are true about function return values?

    Choose as many answers as you see fit.

  9. Which of the following are true about functions?

    Choose as many answers as you see fit.

  10. With named arguments, you can change the order in which you pass arguments into a function.