100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

Android - How to Program Final Exam Questions with Correct Answers Fully Solved

Rating
-
Sold
-
Pages
12
Grade
A+
Uploaded on
05-04-2025
Written in
2024/2025

Android - How to Program Final Exam Questions with Correct Answers Fully Solved Intents - Answers Typically used to launch activities - they indicate an action to be performed and the data on which that action is to be performed. RecyclerView - Answers A flexible, customizable view that enables you to control how an app displays a scrolling list of data Lengthy data access should never be done in the UI thread; otherwise, the app will display a(n) _________ dialog - typically after five seconds of inactivity - Answers ANR (Application not responding) An Intent is a description of an action to be performed with associated __________ - Answers data Explicit Intents - Answers Specify an exact Activity class to run in the same app. Class RecyclerView formalizes the view-holder pattern by requiring you to create a subclass of _________ - Answers RecyclerView.ViewHolder LinearLayoutManager - Answers A subclass of RecyclerView.LayoutManager that can be used to display items in a vertical list (T/F) Extensive input/output should be performed on the UI thread; otherwise this will affect your app's responsiveness. - Answers False (should NOT be used) (T/F) RecyclerView was designed as a better ListView. It provides better separation of the data's presentation from the RecyclerView's capabilities for reusing views, as well as more flexible customization options for presenting the RecyclerView's items - Answers True (T/F) An AlertDialog.Builder's setList method receives a String array resource containing names of the options to display as a list in the dialog as a list in the dialog and an event handler that's called when the user touches one of the items in the list. - Answers False (The AlertDialog.Builder's setItems method does this) (T/F) Each RecyclerView item has a corresponding object of a subclass of class RecyclerView.ViewHolder that maintains references to the item's view(s) for reuse. - Answers True A layout fills the entire client area of the screen if the layout's Width and Height properties window (in the Layout Parameters section of the Properties window) are each set to _________ - Answers match_parent _________ object stores key-value pairs - Answers SharedPreference C - Answers A static method of class Collections from package , sorts the List in its first argument Intent chooser - Answers A GUI that shows a list of apps that can handle a specified Intent. RecyclerView.ItemDecoration - Answers Can be used to display a line between RecyclerView items. (T/F) An Algorithm specifies an action to be performed and the data to be acted upon - Android uses Algorithms to launch the appropriate activities - Answers False (Intent) (T/F) You implement interface View.OnclickListener of package to specify the code that should execute when the user touches a Button - Answers True (T/F) The first argument passed to Intent's constructor is the data to be operated on - Answers False (T/F) An explicit Intent allows the system to launch the most appropriate Activity based on the type of data - Answers False (implicit) Cursor - Answers Manages a SQLite database query results. ContentProvider - Answers Exposes an app's data for use in that app or in other apps getArguments - Answers A Fragment method that returns the bundle of arguments to the Fragment result set - Answers A Cursor returned by method query contains all the table rows that match the method's arguments. A Fragment Transaction (package ) obtained from the _________ allows an Activity to add, remove, and transition between Fragments - Answers FragmentManager _________ and the _________ help you perform asynchronous data access from any Activity or Fragment - Answers Loaders, Load Manager (T/F) It's good practice to release resources like database connections when they are not being used so that other activities can use the resources - Answers True (T/F) It's considered good practice to ensure that Cursor method moveToFirst returns false before attempting to get data from the Cursor - Answers False (returns true) (T/F) A ContentProvider defines URIs that help determine the task to perform when the ContentProvider receives a request - Answers True (T/F) An Activity's or Fragment's LoadManagers are tied to the Activity's or Fragment's lifecycle - Answers False (T/F) To invoke a ContentProvider's query, insert, update, and delete capabilities, you use the corresponding methods of ContentResolver - Answers True (T/F) You must coordinate communication between a ContentProvider and ContentResolver - Answers False (they handle it for you) To see your apps on Google Play, you'll need a(n) _________ merchant account - Answers Google Payments

Show more Read less
Institution
Android - How To Program
Course
Android - How to Program









Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
Android - How to Program
Course
Android - How to Program

Document information

Uploaded on
April 5, 2025
Number of pages
12
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

Android - How to Program Final Exam Questions with Correct Answers Fully Solved

Intents - Answers Typically used to launch activities - they indicate an action to be performed and the
data on which that action is to be performed.

RecyclerView - Answers A flexible, customizable view that enables you to control how an app displays a
scrolling list of data

Lengthy data access should never be done in the UI thread; otherwise, the app will display a(n)
_________ dialog - typically after five seconds of inactivity - Answers ANR (Application not responding)

An Intent is a description of an action to be performed with associated __________ - Answers data

Explicit Intents - Answers Specify an exact Activity class to run in the same app.

Class RecyclerView formalizes the view-holder pattern by requiring you to create a subclass of
_________ - Answers RecyclerView.ViewHolder

LinearLayoutManager - Answers A subclass of RecyclerView.LayoutManager that can be used to display
items in a vertical list

(T/F) Extensive input/output should be performed on the UI thread; otherwise this will affect your app's
responsiveness. - Answers False (should NOT be used)

(T/F) RecyclerView was designed as a better ListView. It provides better separation of the data's
presentation from the RecyclerView's capabilities for reusing views, as well as more flexible
customization options for presenting the RecyclerView's items - Answers True

(T/F) An AlertDialog.Builder's setList method receives a String array resource containing names of the
options to display as a list in the dialog as a list in the dialog and an event handler that's called when the
user touches one of the items in the list. - Answers False (The AlertDialog.Builder's setItems method
does this)

(T/F) Each RecyclerView item has a corresponding object of a subclass of class RecyclerView.ViewHolder
that maintains references to the item's view(s) for reuse. - Answers True

A layout fills the entire client area of the screen if the layout's Width and Height properties window (in
the Layout Parameters section of the Properties window) are each set to _________ - Answers
match_parent

_________ object stores key-value pairs - Answers SharedPreference

Collections.sort - Answers A static method of class Collections from package java.util, sorts the List in its
first argument

Intent chooser - Answers A GUI that shows a list of apps that can handle a specified Intent.

, RecyclerView.ItemDecoration - Answers Can be used to display a line between RecyclerView items.

(T/F) An Algorithm specifies an action to be performed and the data to be acted upon - Android uses
Algorithms to launch the appropriate activities - Answers False (Intent)

(T/F) You implement interface View.OnclickListener of package android.view to specify the code that
should execute when the user touches a Button - Answers True

(T/F) The first argument passed to Intent's constructor is the data to be operated on - Answers False

(T/F) An explicit Intent allows the system to launch the most appropriate Activity based on the type of
data - Answers False (implicit)

Cursor - Answers Manages a SQLite database query results.

ContentProvider - Answers Exposes an app's data for use in that app or in other apps

getArguments - Answers A Fragment method that returns the bundle of arguments to the Fragment

result set - Answers A Cursor returned by method query contains all the table rows that match the
method's arguments.

A Fragment Transaction (package android.app) obtained from the _________ allows an Activity to add,
remove, and transition between Fragments - Answers FragmentManager

_________ and the _________ help you perform asynchronous data access from any Activity or
Fragment - Answers Loaders, Load Manager

(T/F) It's good practice to release resources like database connections when they are not being used so
that other activities can use the resources - Answers True

(T/F) It's considered good practice to ensure that Cursor method moveToFirst returns false before
attempting to get data from the Cursor - Answers False (returns true)

(T/F) A ContentProvider defines URIs that help determine the task to perform when the ContentProvider
receives a request - Answers True

(T/F) An Activity's or Fragment's LoadManagers are tied to the Activity's or Fragment's lifecycle -
Answers False

(T/F) To invoke a ContentProvider's query, insert, update, and delete capabilities, you use the
corresponding methods of ContentResolver - Answers True

(T/F) You must coordinate communication between a ContentProvider and ContentResolver - Answers
False (they handle it for you)

To see your apps on Google Play, you'll need a(n) _________ merchant account - Answers Google
Payments

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
TutorJosh Chamberlain College Of Nursing
View profile
Follow You need to be logged in order to follow users or courses
Sold
347
Member since
1 year
Number of followers
16
Documents
29102
Last sold
1 week ago
Tutor Joshua

Here You will find all Documents and Package Deals Offered By Tutor Joshua.

3.6

55 reviews

5
19
4
14
3
12
2
0
1
10

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions