COURSE 5: CREATE THE USER INTERFACE IN ANDROID STUDIO QUIZ ANSWERS
Week 5: Final Project
Meta Android Developer Professional Certificate
Complete Coursera Answers & Study Guide
Enroll in Coursera Meta Android Developer Professional Certification
TABLE OF CONTENT
Final Project INTRODUCTION
Learning Objectives
- Synthesize the skills you learned in this course.
- Reflect on what you learned in this course and the next steps in your journey.
- Create and style a responsive, interactive Android UI.
READINESS CHECK: HAVE YOU IMPORTED THE PROJECT?
1. Did you successfully download and import the starting project code?
- Yes (CORRECT)
- No
Well done. The starting code will help you in the subsequent exercises.
2. Did the app run successfully on your Android device/emulator?
- Yes (CORRECT)
- No
Well done. Running the app is a good method of checking progress as you work on the project.
READINESS CHECK: HAVE YOU SET UP THE MENUDISH COMPOSABLE?
1. Were you able to run the app successfully after setting up the MenuDish composable?
- Yes (CORRECT)
- No
Well done. Running the app is a good method of checking progress as you work on the project.
2. Did all the food menu items display in the app?
- Yes (CORRECT)
- No
Well done. You will build upon this feature in the next exercise.
READINESS CHECK: HAVE YOU SET UP THE DISHDETAILS COMPOSABLE?
1. Were you able to run the app successfully after setting up the DishDetail composable?
- Yes (CORRECT)
- No
Well done. Running the app is a good method of checking progress as you work on the project.
2. When you press on the food menu item, does the app navigate to the detail view?
- Yes (CORRECT)
- No
Well done. You will build upon this feature in the next exercise.
3. When the food item detail view is displayed, which of the following are displayed in the app? Select all that apply.
- Dish Name (CORRECT)
- Dish Image (CORRECT)
- Dish Description (CORRECT)
- Dish Calories
Well done. The dish name displays with a heading level 1 style.
Well done. The dish image displays at the maximum available width in the app.
Well done. The dish description displays with a body level 1 style.
READINESS CHECK: HAVE YOU SET UP THE LITTLE LEMON THEME?
1. Were you able to run the app successfully after setting up the Little Lemon theme?
- Yes (CORRECT)
- No
Well done. Running the app is a good method of checking progress as you work on the project.
2. Does the app look similar to the image below?

- Yes (CORRECT)
- No
Well done. You are ready to proceed to the peer review.
FINAL GRADED QUIZ: CREATE THE USER INTERFACE
1. In Compose, the hierarchy is built through composition.
- Yes
- No (CORRECT)
Correct! A composable, as the name suggests, can be composed within another composable.
2. What can a layout contain? Select all that apply.
- Other layouts (CORRECT)
- Screens
- UI Elements (CORRECT)
- Activities
Correct! Layouts may contain other layouts.
Correct! Layouts may contain simple UI elements.
3. Applying modifiers to composable in different order may produce a different result.
- True (CORRECT)
- False
Correct! Changing the order may have a different effect on the overall arrangement, positioning, size or even behavior of the elements.
4. Which layout is used to place its children in a horizontal sequence?
- Grid
- Row (CORRECT)
- Column
- Cell
Correct! NavCompose is not a part of Jetpack navigation. There are three major parts of Navigation are NavGraph, NavHost and NavController.
5. Each item in a Grid is known as a:
- Row
- Column
- Image
- Cell (CORRECT)
Correct! In Android, a Grid is a scrollable layout that displays the items in two dimensions. A grid consists of both Rows and Columns. Each item in a Grid is known as a Cell.
6. Modifying the Button style in the theme will change the appearance of every button in the application unless theme style is overridden.
- True (CORRECT)
- False
Correct! A theme change will be applied to every screen in the application. For example, a new background color for a Button will be applied to all buttons in every application screen.
7. The main difference between dp (density independent pixel) and sp (scalable pixel) is that sp takes the text size setting of the user device into consideration when deciding what text size should be displayed.
- True (CORRECT)
- False
Correct! The user may modify sp this setting in the Android system preferences and the text size is scaled accordingly in the application.
8. The ___________________ composable animates the appearance and disappearance of its content.
- Visible Animation
- Animation
- Visibility
- Animated Visibility (CORRECT)
Correct! The Animated Visibility composable smooths out Text transition from one state to another, from the component being visible to invisible and vice versa.
9. Android application starts by first creating the __________.
- Activity (CORRECT)
- Composable
- View
- Fragment
Correct! Activity is one of the most important components of an Android application and it serves as the program entry point. Activity is created before Fragments, Views and Composables.
10. One of the fundamental differences between the traditional View system and Compose is their development philosophy. What are their approaches?
- The View system follows the declarative approach, while Compose is based on the imperative approach to building UI. (CORRECT)
- The View system follows the imperative approach, while Compose is based on the declarative approach to building UI.
Correct! The Declarative approach describes desired result (what), while imperative approach descripts exact sequence of steps (how).
11. Theme is represented as a collection of attributes.
- True (CORRECT)
- False
Correct! Theme is represented as a collection of attributes such as color, button heigh or text size.
12. The manifest file contains:
Check all that apply.
- Fragents
- Permissions (CORRECT)
- Activities (CORRECT)
- Composables
Correct! You must register information about application permissions in the manifest.
Correct! You must register information about application activities in the manifest.
13. How is a Compose UI element represented?
- Tag in the XML file
- View Object
- Special function (CORRECT)
- AppCompatActivity
Correct! The function is called composable and it is annotated with an @Composable annotation.
14. Which statements are true about modifiers?
- A modifier is responsible for modifying Activity behavior.
- When augmenting appearance, modifiers can act as decorators. (CORRECT)
- Modifiers allow to impart specific interactivity or behavior to the elements. (CORRECT)
Correct! Modifiers decorate or style the UI elements or composables. Modifiers can, for example, modify the size, position, spacing and color.
Correct! You can, for example, make a button or a text clickable using modifiers.
15. Which item is not a part of the Jetpack navigation?
- NavHost
- NavController
- NavCompose (CORRECT)
- NavGraph
Correct! NavCompose is not a part of Jetpack navigation. There are three major parts of Navigation are NavGraph, NavHost and NavController.
16. Lazy components only compose a subset of composables that are visible in viewport rather than composing it all at once.
- True (CORRECT)
- False
Correct! If you need to have large number of items or items of unknown length, they can cause performance issues. That’s why you can’t compose all items at once.
17. Select all the composable layouts that can be used in Jetpack Compose.
- Row (CORRECT)
- Stack
- Column (CORRECT)
- Box (CORRECT)
Correct! Row is one of the most used composable layouts that can be used in Jetpack Compose.
Correct! Column is one of the most used composable layouts that can be used in Jetpack Compose.
Correct! Box is one of the most used composable layouts that can be used in Jetpack Compose.
18. The ___________ modifier adds some space around the element.
- FillMaxWidth
- Size
- Padding (CORRECT)
- Background
Correct! A Padding modifier will add a spacing around all four sides of the composable.
19. What is the reason behind usage of the remember function and mutableStateOf observable?
val value = remember { mutableStateOf(/*some value*/) }
- Reset of the variable value during recomoposition.
- Prevent reset of the variable value during recomposition. (CORRECT)
- Reset of the variable value during function call.
Correct! To retain the value, you have to use the remember function and mutableStateOf observable. Otherwise, the function would reset the variable to its initial value.
20. Which lazy composable is not included in Jetpack compose?
- LazyColumn
- LazyGrid
- LazyButton (CORRECT)
- LazyRow
Correct! Lazy composables deal with a large number of items or items of unknown length, because they can cause performance issues. Button does not deal with lists of items, so it doesn’t have to be lazy.
21. Modifying the Button style in the theme will change the appearance of every button in the application unless theme style is overridden.
- True (CORRECT)
- False
Correct! A theme change will be applied to every screen in the application. For example, a new background color for a Button will be applied to all buttons in every application screen.
22. How are composables positioned in the Box layout?
- Lay out horizontally
- Placed on top of each other (CORRECT)
- Lay out vertically
- Screens
Correct! When in a stack fashion, the composables of different sizes ensure they are properly visible. For example, you can place a small icon over an image.
Interactive CSS CONCLUSION
TBW
Subscribe to our site
Get new content delivered directly to your inbox.
Quiztudy Top Courses
Popular in Coursera
- Meta Marketing Analytics Professional Certificate.
- Google Digital Marketing & E-commerce Professional Certificate.
- Google UX Design Professional Certificate.
- Meta Social Media Marketing Professional Certificate
- Google Project Management Professional Certificate
- Meta Front-End Developer Professional Certificate
Liking our content? Then, don’t forget to ad us to your BOOKMARKS so you can find us easily!