Professional Documents
Culture Documents
Fullquizz
Fullquizz
radio_button_unchecked .java
radio_button_unchecked .kot
radio_button_unchecked .kt or .kts
radio_button_unchecked .android
radio_button_unchecked var
radio_button_unchecked val
radio_button_unchecked immulvar
radio_button_unchecked immutableVar
https://developer.android.com/courses/quizzes/android-development-with-kotlin-1/android-development-with-kotlin-1?continue=https%3A%2F%2Fdev… 1/3
12/4/23, 4:40 PM Lesson 1: Kotlin basics | Android Developers
radio_button_unchecked str.length
radio_button_unchecked length(str)
radio_button_unchecked str.lengthOf
radio_button_unchecked str.getLength()
radio_button_unchecked Range
radio_button_unchecked Sealed Class
radio_button_unchecked Elvis Operator
radio_button_unchecked Lambda Function
Submit answers
https://developer.android.com/courses/quizzes/android-development-with-kotlin-1/android-development-with-kotlin-1?continue=https%3A%2F%2Fdev… 2/3
12/4/23, 4:41 PM Lesson 2: Functions | Android Developers
Lesson 2: Functions
Let's do a quick test! You must answer at least 4 questions correctly to pass this quiz.
radio_button_unchecked void
radio_button_unchecked fun
radio_button_unchecked function
radio_button_unchecked def
radio_button_unchecked Int
radio_button_unchecked Double
radio_button_unchecked void
radio_button_unchecked Unit
radio_button_unchecked println()
radio_button_unchecked printLine()
https://developer.android.com/courses/quizzes/android-development-with-kotlin-2/android-development-with-kotlin-2?continue=https%3A%2F%2Fdev… 1/3
12/4/23, 4:41 PM Lesson 2: Functions | Android Developers
radio_button_unchecked linePrint()
radio_button_unchecked line()
radio_button_unchecked if
radio_button_unchecked break
radio_button_unchecked switch
radio_button_unchecked continue
Submit answers
https://developer.android.com/courses/quizzes/android-development-with-kotlin-2/android-development-with-kotlin-2?continue=https%3A%2F%2Fdev… 2/3
12/4/23, 4:41 PM Lesson 3: Classes and Objects | Android Developers
2. Which of the following is the correct way of declaring objects for class
Book in Kotlin?
check_box_outline_blank Allows you to write new functions for a class that you cannot modify
https://developer.android.com/courses/quizzes/android-development-with-kotlin-3/android-development-with-kotlin-3?continue=https%3A%2F%2Fdev… 1/3
12/4/23, 4:41 PM Lesson 3: Classes and Objects | Android Developers
check_box_outline_blank Use dot notation to call them on variables of the type you are extending
check_box_outline_blank It must be declared in the same file as the original class you are extending
check_box_outline_blank Use the extend keyword to declare these functions
radio_button_unchecked public
radio_button_unchecked protected
radio_button_unchecked internal
radio_button_unchecked open
Submit answers
https://developer.android.com/courses/quizzes/android-development-with-kotlin-3/android-development-with-kotlin-3?continue=https%3A%2F%2Fdev… 2/3
12/4/23, 4:50 PM Lesson 4: Build your first Android app | Android Developers
1. Which method on an Activity inflates the app's layout and makes its
views available as objects?
radio_button_unchecked onCreate()
radio_button_unchecked setClickListener()
radio_button_unchecked setContentView()
radio_button_unchecked show()
2. Which view attribute do you use to set the width of a View so that it
adjusts to fit the content?
radio_button_unchecked android:view_width="wrap"
radio_button_unchecked android:layout_width="wrap_content"
radio_button_unchecked android:layout_height="wrap_content"
radio_button_unchecked android:layout_width="match_parent"
https://developer.android.com/courses/quizzes/android-development-with-kotlin-4/android-development-with-kotlin-4?continue=https%3A%2F%2Fdev… 1/3
12/4/23, 4:50 PM Lesson 4: Build your first Android app | Android Developers
radio_button_unchecked setImageResource()
radio_button_unchecked setImageURI()
radio_button_unchecked setImage()
radio_button_unchecked setImageRes()
5. Which Gradle configuration indicates the most recent API level your app
has been tested with?
radio_button_unchecked minSdkVersion
radio_button_unchecked compileSdkVersion
radio_button_unchecked targetSdkVersion
radio_button_unchecked testSdkVersion
radio_button_unchecked In Android Studio, Refactor > Add RTL support where possible
https://developer.android.com/courses/quizzes/android-development-with-kotlin-4/android-development-with-kotlin-4?continue=https%3A%2F%2Fdev… 2/3
12/4/23, 4:50 PM Lesson 4: Build your first Android app | Android Developers
Submit answers
https://developer.android.com/courses/quizzes/android-development-with-kotlin-4/android-development-with-kotlin-4?continue=https%3A%2F%2Fdev… 3/3
12/4/23, 4:51 PM Lesson 5: Layouts | Android Developers
Lesson 5: Layouts
Let's do a quick test! You must answer at least 9 questions correctly to pass this quiz.
radio_button_unchecked EditText
radio_button_unchecked LinearLayout
radio_button_unchecked TextView
radio_button_unchecked Button
3. Styles are resources defined in styles.xml . Using styles, you can define
colors, fonts, text size, and many other characteristics of a view. True or
false?
https://developer.android.com/courses/quizzes/android-development-with-kotlin-5/android-development-with-kotlin-5?continue=https%3A%2F%2Fdev… 1/4
12/4/23, 4:51 PM Lesson 5: Layouts | Android Developers
4. A View can contain any number of View or ViewGroup as its children. True
or false?
radio_button_unchecked TextField
radio_button_unchecked LinearLayout
radio_button_unchecked TextView
radio_button_unchecked Button
radio_button_unchecked visible
radio_button_unchecked invisible
radio_button_unchecked gone
radio_button_unchecked hide
https://developer.android.com/courses/quizzes/android-development-with-kotlin-5/android-development-with-kotlin-5?continue=https%3A%2F%2Fdev… 2/4
12/4/23, 4:51 PM Lesson 5: Layouts | Android Developers
10. What are some benefits of using the Layout Editor in Android Studio?
Choose as many answers as you see fit.
check_box_outline_blank Drag and drop UI elements onto the screen with the visual design editor
check_box_outline_blank Edit view attributes
https://developer.android.com/courses/quizzes/android-development-with-kotlin-5/android-development-with-kotlin-5?continue=https%3A%2F%2Fdev… 3/4
12/4/23, 4:51 PM Lesson 5: Layouts | Android Developers
check_box_outline_blank Test button click behavior and see how the app will respond
check_box_outline_blank Select device type and size for the preview of your layout
12. Which is the correct way to reference bound data in the XML layout?
radio_button_unchecked android:text="@={myDataClass.property}"
radio_button_unchecked android:text="@={myDataClass}"
radio_button_unchecked android:text="@={myDataClass.property.string}"
radio_button_unchecked android:text="@={myDataClass.bound_data.property}"
Submit answers
https://developer.android.com/courses/quizzes/android-development-with-kotlin-5/android-development-with-kotlin-5?continue=https%3A%2F%2Fdev… 4/4
12/4/23, 4:54 PM Lesson 6: App navigation | Android Developers
1. Which of the following statements about fragments are true? Select all
that apply.
Choose as many answers as you see fit.
check_box_outline_blank Use the <fragment> tag to define the place in a layout file where a Fragment is to be inserted.
radio_button_unchecked Make sure every Activity class extends the class NavigationActivity .
radio_button_unchecked Use the NavigationController class as the launch activity.
radio_button_unchecked Add uses-navigation to the AndroidManifest.xml file.
radio_button_unchecked Add dependencies for navigation-fragment-ktx and navigation-ui-ktx in the
build.gradle (module) file.
3. Where are the possible navigation routes through your app defined?
https://developer.android.com/courses/quizzes/android-development-with-kotlin-6/android-development-with-kotlin-6?continue=https%3A%2F%2Fdev… 1/4
12/4/23, 4:54 PM Lesson 6: App navigation | Android Developers
radio_button_unchecked In a file (often called navigation.xml ) in the res > layout folder.
radio_button_unchecked In a file (often called navigation.xml ) in the app > navigation folder.
radio_button_unchecked In a file (often called navigation.xml ) in the res > navigation folder.
radio_button_unchecked In the AndroidManifest.xml file, under the element.
check_box_outline_blank As the user moves between destinations defined in the navigation graph, the
NavHostFragment swaps the fragments in and out as necessary.
check_box_outline_blank You can click the NavHostFragment in the project view to open the navigation graph.
check_box_outline_blank You add the NavHostFragment to the main layout by adding a fragment whose name is
androidx.navigation.fragment.NavHostFragment .
check_box_outline_blank You must create a single NavHostFragment subclass and implement the onNavigate()
method to handle different kinds of navigation (such as button clicks)
radio_button_unchecked In the fragment layout file, either by setting the ID attribute in the design editor or in the layout
XML file in the res > layout folder.
radio_button_unchecked In the project navigation file, either by setting the ID attribute in the navigation graph or in the
navigation.xml file in the res > navigation folder.
radio_button_unchecked You need to set the ID in both the navigation file for the app and the layout file for the
fragment.
https://developer.android.com/courses/quizzes/android-development-with-kotlin-6/android-development-with-kotlin-6?continue=https%3A%2F%2Fdev… 2/4
12/4/23, 4:54 PM Lesson 6: App navigation | Android Developers
radio_button_unchecked It depends on where the menu will be shown. For a navigation drawer menu, add an <item>
tag for each menu item in the menu.xml file in the res > drawer folder. For the options menu,
add an <item> tag for each menu item in the menu.xml file in the res > options folder.
radio_button_unchecked In the layout file for the fragment or activity that displays the menu, add a <menu> tag that
contains <item> tags for each item.
radio_button_unchecked In a menu_name.xml file in the res > menu folder, add an <item> tag for each menu item.
Create separate XML files for each separate menu.
radio_button_unchecked In the AndroidManifest.xml file, add a <menus> tag that contains a <menu> tag for each
menu, that in turn contains an <item> tag for each menu item.
7. What do you need to do to enable the overflow menu (also known as the
options menu)? You can assume you have already defined the menu items.
Choose as many answers as you see fit.
8. What does the Safe Args Gradle plugin do? Select all that apply.
Choose as many answers as you see fit.
check_box_outline_blank Generates simple object and builder classes for type-safe access to arguments specified for
destinations and actions.
check_box_outline_blank Creates Navigation classes that you can edit to simplify the passing of parameters between
fragments.
https://developer.android.com/courses/quizzes/android-development-with-kotlin-6/android-development-with-kotlin-6?continue=https%3A%2F%2Fdev… 3/4
12/4/23, 4:54 PM Lesson 6: App navigation | Android Developers
check_box_outline_blank Generates a method for each action that you have defined in the navigation graph.
check_box_outline_blank Prevents your code from using the wrong key when extracting data from a bundle.
Submit answers
https://developer.android.com/courses/quizzes/android-development-with-kotlin-6/android-development-with-kotlin-6?continue=https%3A%2F%2Fdev… 4/4
12/4/23, 4:54 PM Lesson 7: Activity and fragment lifecycles | Android Developers
radio_button_unchecked During the phone call, you should continue computing the positions of objects in the physics
simulation.
radio_button_unchecked During the phone call, you should stop computing the positions of objects in the physics
simulation.
2. Which lifecycle method should you override to pause the simulation when
the app is not on the screen?
radio_button_unchecked onDestroy()
radio_button_unchecked onStop()
radio_button_unchecked onPause()
radio_button_unchecked onSaveInstanceState()
radio_button_unchecked Lifecycle
https://developer.android.com/courses/quizzes/android-development-with-kotlin-7/android-development-with-kotlin-7?continue=https%3A%2F%2Fdev… 1/3
12/4/23, 4:54 PM Lesson 7: Activity and fragment lifecycles | Android Developers
radio_button_unchecked LifecycleOwner
radio_button_unchecked Lifecycle.Event
radio_button_unchecked LifecycleObserver
radio_button_unchecked onPause()
radio_button_unchecked onVisible()
radio_button_unchecked onStart()
radio_button_unchecked onDestroy()
radio_button_unchecked onResume()
radio_button_unchecked onVisible()
radio_button_unchecked onStart()
radio_button_unchecked onFocus()
https://developer.android.com/courses/quizzes/android-development-with-kotlin-7/android-development-with-kotlin-7?continue=https%3A%2F%2Fdev… 2/3
12/4/23, 4:55 PM Lesson 8: App architecture (UI layer) | Android Developers
radio_button_unchecked ViewModel
radio_button_unchecked LiveData
radio_button_unchecked Fragment
radio_button_unchecked Activity
radio_button_unchecked When the associated UI controller is destroyed and recreated during a device-orientation
change.
https://developer.android.com/courses/quizzes/android-development-with-kotlin-8/android-development-with-kotlin-8?continue=https%3A%2F%2Fdev… 1/5
12/4/23, 4:55 PM Lesson 8: App architecture (UI layer) | Android Developers
radio_button_unchecked Inside the ViewModel object, change the data type of the data to private LiveData . Use a
backing property to expose read-only data of the type MutableLiveData .
radio_button_unchecked Inside the ViewModel object, change the data type of the data to private MutableLiveData .
Use a backing property to expose read-only data of the type LiveData .
radio_button_unchecked Inside the UI controller, change the data type of the data to private MutableLiveData . Use a
backing property to expose read-only data of the type LiveData .
radio_button_unchecked Inside the ViewModel object, change the data type of the data to LiveData . Use a backing
property to expose read-only data of the type LiveData .
https://developer.android.com/courses/quizzes/android-development-with-kotlin-8/android-development-with-kotlin-8?continue=https%3A%2F%2Fdev… 2/5
12/4/23, 4:55 PM Lesson 8: App architecture (UI layer) | Android Developers
radio_button_unchecked Resumed
radio_button_unchecked In the background
radio_button_unchecked Paused
radio_button_unchecked Stopped
8. In which class should you add the data-formatting logic that uses the
Transformations.map() method to convert LiveData to a different value or
format?
radio_button_unchecked ViewModel
radio_button_unchecked Fragment
radio_button_unchecked Activity
radio_button_unchecked MainActivity
https://developer.android.com/courses/quizzes/android-development-with-kotlin-8/android-development-with-kotlin-8?continue=https%3A%2F%2Fdev… 3/5
12/4/23, 4:55 PM Lesson 8: App architecture (UI layer) | Android Developers
Submit answers
https://developer.android.com/courses/quizzes/android-development-with-kotlin-8/android-development-with-kotlin-8?continue=https%3A%2F%2Fdev… 4/5
12/4/23, 4:55 PM Lesson 9: App architecture (persistence) | Android Developers
2. The DAO (data access object) is an interface that Room uses to map
Kotlin functions to database queries. How do you indicate that an interface
represents a DAO for a Room database?
https://developer.android.com/courses/quizzes/android-development-with-kotlin-9/android-development-with-kotlin-9?continue=https%3A%2F%2Fdev… 1/3
12/4/23, 4:55 PM Lesson 9: App architecture (persistence) | Android Developers
3. Which of the following annotations can you use in your @Dao interface?
Choose all that apply.
Choose as many answers as you see fit.
check_box_outline_blank @Get
check_box_outline_blank @Update
check_box_outline_blank @Insert
check_box_outline_blank @Query
radio_button_unchecked When execution is blocked, no other work can be executed on the blocked thread.
https://developer.android.com/courses/quizzes/android-development-with-kotlin-9/android-development-with-kotlin-9?continue=https%3A%2F%2Fdev… 2/3
12/4/23, 4:55 PM Lesson 9: App architecture (persistence) | Android Developers
radio_button_unchecked When execution is suspended, the thread can do other work while waiting for the offloaded
work to complete.
radio_button_unchecked Suspending is more efficient, because threads may not be waiting, doing nothing.
radio_button_unchecked Whether blocked or suspended, execution is still waiting for the result of the coroutine before
continuing.
Submit answers
https://developer.android.com/courses/quizzes/android-development-with-kotlin-9/android-development-with-kotlin-9?continue=https%3A%2F%2Fdev… 3/3
12/4/23, 4:55 PM Lesson 10: Advanced RecyclerView use cases | Android Developers
2. What are the benefits of using RecyclerView ? Select all that apply.
Choose as many answers as you see fit.
3. What are some of the reasons for using adapters? Select all that apply.
Choose as many answers as you see fit.
https://developer.android.com/courses/quizzes/android-development-with-kotlin-10/android-development-with-kotlin-10?continue=https%3A%2F%2Fd… 1/4
12/4/23, 4:55 PM Lesson 10: Advanced RecyclerView use cases | Android Developers
4. Which of the following are true of ViewHolder ? Select all that apply.
Choose as many answers as you see fit.
5. Which of the following are necessary to use DiffUtil ? Select all that
apply.
Choose as many answers as you see fit.
https://developer.android.com/courses/quizzes/android-development-with-kotlin-10/android-development-with-kotlin-10?continue=https%3A%2F%2Fd… 2/4
12/4/23, 4:55 PM Lesson 10: Advanced RecyclerView use cases | Android Developers
check_box_outline_blank Binding adapters are a good solution when you need to transform complex data.
check_box_outline_blank LinearLayoutManager
check_box_outline_blank GridLayoutManager
check_box_outline_blank CircularLayoutManager
check_box_outline_blank StaggeredGridLayoutManager
check_box_outline_blank Add it to the layout file for an item in the row. If you want the entire item to be clickable, add it
to the parent view that contains the items in the row.
check_box_outline_blank Add it to the layout file for an item in the row. If you want a single TextView in the item to be
clickable, add it to the <TextView> .
https://developer.android.com/courses/quizzes/android-development-with-kotlin-10/android-development-with-kotlin-10?continue=https%3A%2F%2Fd… 3/4
12/4/23, 4:55 PM Lesson 10: Advanced RecyclerView use cases | Android Developers
radio_button_unchecked An Adapter can use multiple ViewHolder classes to hold headers and various types of data.
radio_button_unchecked You can have exactly one view holder for data, and one view holder for a header.
radio_button_unchecked A RecyclerView supports multiple types of headers, but the data has to be uniform.
radio_button_unchecked When adding a header, you subclass RecyclerView to insert the header at the correct
position.
Submit answers
https://developer.android.com/courses/quizzes/android-development-with-kotlin-10/android-development-with-kotlin-10?continue=https%3A%2F%2Fd… 4/4
12/4/23, 4:55 PM Lesson 11: Connect to the internet | Android Developers
1. What are the two key things Retrofit needs to build a web services API?
radio_button_unchecked The base URI for the web service, and a GET query.
radio_button_unchecked The base URI for the web service, and a converter factory.
radio_button_unchecked A network connection to the web service, and an authorization token.
radio_button_unchecked A converter factory, and a parser for the response.
3. Which Glide method do you use to indicate the ImageView that will
contain the loaded image?
radio_button_unchecked into()
https://developer.android.com/courses/quizzes/android-development-with-kotlin-11/android-development-with-kotlin-11?continue=https%3A%2F%2Fd… 1/3
12/4/23, 4:55 PM Lesson 11: Connect to the internet | Android Developers
radio_button_unchecked with()
radio_button_unchecked imageview()
radio_button_unchecked apply()
5. How do you add a query option to a REST web service call in Retrofit?
Submit answers
https://developer.android.com/courses/quizzes/android-development-with-kotlin-11/android-development-with-kotlin-11?continue=https%3A%2F%2Fd… 2/3
12/4/23, 4:56 PM Lesson 12: Repository pattern and WorkManager | Android Developers
radio_button_unchecked ViewModel
radio_button_unchecked LiveData
radio_button_unchecked Repository
radio_button_unchecked Activities
2. What is the best way to save structured data on the device file system for
offline caching?
radio_button_unchecked Room
radio_button_unchecked Files
radio_button_unchecked Shared preferences
radio_button_unchecked Retrofit caching
https://developer.android.com/courses/quizzes/android-development-with-kotlin-12/android-development-with-kotlin-12?continue=https%3A%2F%2Fd… 1/3
12/4/23, 4:56 PM Lesson 12: Repository pattern and WorkManager | Android Developers
radio_button_unchecked ViewModel
radio_button_unchecked LiveData
radio_button_unchecked Repository
radio_button_unchecked DAO object
radio_button_unchecked Create separate classes to represent the network, domain, and database objects.
radio_button_unchecked Create a single class to represent the network, domain, and database objects.
radio_button_unchecked Create a single class to represent the network and domain objects, and another class to
represent the database object.
radio_button_unchecked Create a single class to represent the network object and another class to represent the
database and domain objects.
radio_button_unchecked OneTimeWorkPeriodicRequest
radio_button_unchecked OneTimeWorkRequest and PeriodicWorkRequest
radio_button_unchecked OneTimeWorkRequest and RecurringWorkRequest
radio_button_unchecked OneTimeOffWorkRequest and RecurringWorkRequest
radio_button_unchecked setConstraints()
radio_button_unchecked addConstraints()
https://developer.android.com/courses/quizzes/android-development-with-kotlin-12/android-development-with-kotlin-12?continue=https%3A%2F%2Fd… 2/3
12/4/23, 4:56 PM Lesson 12: Repository pattern and WorkManager | Android Developers
radio_button_unchecked setConstraint()
radio_button_unchecked addConstraintsToWorkRequest()
Submit answers
https://developer.android.com/courses/quizzes/android-development-with-kotlin-12/android-development-with-kotlin-12?continue=https%3A%2F%2Fd… 3/3
12/4/23, 4:56 PM Lesson 13: App UI design | Android Developers
radio_button_unchecked <style>
radio_button_unchecked <theme>
radio_button_unchecked <meta-tag>
radio_button_unchecked <styling>
radio_button_unchecked Themes cannot inherit from other themes, but styles can inherit from other styles.
radio_button_unchecked Themes apply to the entire app, while you can apply styles to specific views.
https://developer.android.com/courses/quizzes/android-development-with-kotlin-13/android-development-with-kotlin-13?continue=https%3A%2F%2Fd… 1/4
12/4/23, 4:56 PM Lesson 13: App UI design | Android Developers
radio_button_unchecked Styles cannot inherit from other styles, but themes can inherit from other themes.
radio_button_unchecked Themes are provided by the Android system, while styles are defined by the developer.
4. Which of the following is true about the floating action button (FAB)?
radio_button_unchecked The FAB is usually associated with a primary action the user can take on the screen.
radio_button_unchecked The FAB must be positioned in the bottom-right corner, 16 dp from the edge of the screen.
radio_button_unchecked The FAB uses a special click handler so that you do not have to write your own ViewModel
code.
radio_button_unchecked The FAB is a mandatory element for apps that implement Material Design principles.
radio_button_unchecked StackedViewsLayout
radio_button_unchecked ConstraintLayout
radio_button_unchecked CoordinatorLayout
radio_button_unchecked You cannot stack views
https://developer.android.com/courses/quizzes/android-development-with-kotlin-13/android-development-with-kotlin-13?continue=https%3A%2F%2Fd… 2/4
12/4/23, 4:56 PM Lesson 13: App UI design | Android Developers
check_box_outline_blank Allows you to apply attributes from a different theme to a view and all its children.
check_box_outline_blank With a theme overlay, all the styles of that theme are applied automatically.
check_box_outline_blank You create a theme overlay by defining styles in XML.
check_box_outline_blank When you apply a theme to a view, you can use that theme attribute for the view and all its
children.
8. Which of the following are reasons for defining and using dimensions?
Select all that apply.
Choose as many answers as you see fit.
check_box_outline_blank Makes it easier to apply the same measurements across the app.
check_box_outline_blank Allows you to give meaningful semantic names to measurements.
check_box_outline_blank Makes it easier to change measurements across your app.
check_box_outline_blank Dimensions are required for using Material Design.
radio_button_unchecked Replace Left and Right in properties with Start and End
radio_button_unchecked Switch to an RTL language
radio_button_unchecked Make sure all icons use android:autoMirrored="true"
radio_button_unchecked Provide content descriptions
Submit answers
https://developer.android.com/courses/quizzes/android-development-with-kotlin-13/android-development-with-kotlin-13?continue=https%3A%2F%2Fd… 3/4