wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Compose Camp - Session 1 Quiz

Total questions: 10

Worksheet time: 6mins

Name
Class
Date
1.

What is Jetpack Compose?

a)

A modern toolkit to develop Android user

b)

Toolkit to design libraries

c)

Database interface

d)

Plugin to build APK

2.

Which of the following is false about Compose?

a)

The Empty Compose Activity template is used to create a simple app.

b)

Layouts can be viewed in the Preview window, without actually running your app.

c)

All elements and themes in a Compose app are contained in a Surface.

d)

Themes, such as GreetingCardTheme allow you to style Composables.

3.

 

Which of the following variable declarations is valid?

a)

var hello: Int? = ""

b)

String "hello" = hello

c)

val hello = "hello"

d)

hello: String = "hello"

4.

Which of the following are true about functions? (Select all that applies)

a)

Function parameters are required to have default arguments.

b)

Functions can take parameters, or variables as inputs.

c)

When calling a function with parameters, the values passed in are called arguments.

d)

Breaking your code in multiple functions can make your code cleaner and easier to maintain.

5.

The Box layout stacks the UI elements on top of one another.

a)

True

b)

False

6.

What parameter is used to align the child element to the beginning of the parent?

a)

Alignment.End

b)

Alignment.Left

c)

Alignment.Begin

d)

Alignment.Start

7.

 Padding is an example of a ___

a)

Property

b)

Attribute

c)

Modifier

d)

Composable

8.

 

A ___ is a Composable that has a background color and can contain other Composables.

a)

Color

b)

Container

c)

Surface

d)

Box

9.

What is the purpose of using a virtual device, or emulator, in Android Studio?

a)

To show a variety of error messages to users

b)

To experiment with app code safely.

c)

To test your app on device without having a physical device

d)

To see what your app looks like in a web browser

10.

The three basic standard layout elements in Compose are (select all that applies):

a)

Column

b)

Row

c)

Text

d)

Box