You are on page 1of 2

Android App Development - Grand

Assessment
Slot – 1
1. Who developed Kotlin?
(c) JetBrains

2. How to do a multi-line comment in Kotlin language?


(c) /* */

3. Kotlin only works for supporting Java language?


(a) True

4. The two types of constructors in Kotlin are?


(a) Primary and Secondary Constructors

5. Does Kotlin use the “static” keyword?


(b) No

6. What handles null exceptions in Kotlin?


(d) Elvis operator

7. The correct function to get the length of a string in Kotlin language is?
(a) str.length

8. Kotlin language name came from the “Kotlin island” of Russia?


(a) True

9. The function to print in Kotlin is ?


(d) println() and print()

10. In Kotlin, the default visibility modifier is ?


(b) public

11. What is Jetpack Compose?


(a) A modern toolkit to develop Android user interface.

12. Which of the following is false about Compose?


(c) All elements and themes in a Compose app are contained in a Surface

13. Which of the following variable declarations is valid?


(c) val hello = ”hello”

14. Which of the following are true about functions? (Select all that applies)?
(c) When calling a function with parameters, the values passed in are
called arguments

15. The Box layout stacks the UI elements on top of one another.
(a) True

16. Kotlin code can be executed without JVM?


(a) True

17. Which of the following features are available in Kotlin but not in the Java
language?
(d) All of the above

18. _____ tell a UI element how to lay out, display or behave within its parent
layout.
(a) Modifier parameters

19. _____ layout allows you to implement a UI with the basic Material Design
layout structure.
(c) Scaffold

20. A route is defined with a(n) _____ data type.


(c) String

21. With a NavHost, you must explicitly specify a starting screen.


(b) True

22. It’s considered best practice to not pass a NavHostController to individual


composables.
(b) True

23. _____ is a composable that manages which screen is displayed based on a


given route.
(c) NavHost

24. Which is Composable in Jetpack Compose?


(a) A function that returns a UI element

25. All classes in Kotlin are by default?


(b) final

You might also like