Font size
WorksheetsCompose Camp - Session 1 Quiz
Total questions: 10
Worksheet time: 6mins
What is Jetpack Compose?
A modern toolkit to develop Android user
Toolkit to design libraries
Database interface
Plugin to build APK
.
Which of the following is false about Compose?
The Empty Compose Activity template is used to create a simple app.
Layouts can be viewed in the Preview window, without actually running your app.
All elements and themes in a Compose app are contained in a Surface.
Themes, such as GreetingCardTheme allow you to style Composables.
Which of the following variable declarations is valid?
var hello: Int? = ""
String "hello" = hello
val hello = "hello"
hello: String = "hello"
Which of the following are true about functions? (Select all that applies)
Function parameters are required to have default arguments.
Functions can take parameters, or variables as inputs.
When calling a function with parameters, the values passed in are called arguments.
Breaking your code in multiple functions can make your code cleaner and easier to maintain.
The Box layout stacks the UI elements on top of one another.
True
False
What parameter is used to align the child element to the beginning of the parent?
Alignment.End
Alignment.Left
Alignment.Begin
Alignment.Start
Padding is an example of a ___
Property
Attribute
Modifier
Composable
A ___ is a Composable that has a background color and can contain other Composables.
Color
Container
Surface
Box
What is the purpose of using a virtual device, or emulator, in Android Studio?
To show a variety of error messages to users
To experiment with app code safely.
To test your app on device without having a physical device
To see what your app looks like in a web browser
The three basic standard layout elements in Compose are (select all that applies):
Column
Row
Text
Box
