100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
PRM 392 Final Exam | Answered with complete solutions $22.99   Add to cart

Exam (elaborations)

PRM 392 Final Exam | Answered with complete solutions

 0 view  0 purchase
  • Course
  • PRM 392
  • Institution
  • PRM 392

PRM 392 Final Exam | Answered with complete solutions What Activity lifecycle methods are called when a device-configuration change (such as rotation) occurs? Choose one: A. Android immediately shuts down your Activity by calling onStop(). Your code must restart the Activity. B. Android shuts do...

[Show more]

Preview 3 out of 30  pages

  • November 16, 2024
  • 30
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • PRM 392
  • PRM 392
avatar-seller
NurseHenny
PRM 392 Final Exam



What Activity lifecycle methods are called when a device-configuration change (such as
rotation) occurs? Choose one:

A. Android immediately shuts down your Activity by calling onStop(). Your code must
restart the Activity.
B. Android shuts down your Activity by calling onPause(), onStop(), and onDestroy().
Your code must restart the Activity.
C. Android shuts down your Activity by calling onPause(), onStop(), and onDestroy(),
and then starts it over again, calling onCreate(), onStart(), and onResume().
D. Android immediately calls onResume().

What are components in Room?

A. Entity
B. DatabaseHelper
C. Repository
D. DAO

Which component is used to open an Activity when user taps a notification?

A. Action button
B. PendingIntent that's sent when the user taps the action button
C. Title that describes the action
D. Icon that represents the action

How to store heavy structured data in android?

A. Not possible
B. SQlite database
C. Cursor
D. Shared Preferences

Which of the following are true statements about implicit and explicit intent? (3 answers)

A. Android delivers an explicit intent to a target component without consulting filters in
the AndroidManifest.xml file
B. Implicit intents are typically used to interact with components residing in other apps
C. Explicit intents are typically used to interact with components residing in other apps
D. Android delivers an implicit intent to a target component only if it matches one of its
intent filters in the AndroidManifest.xml file

,How do you send data from an activity to a fragment?

A. Set a Bundle and use the Fragment.setArguments(Bundle) method tosupply the
construction arguments for the fragment.
B. Use the Fragment method getArguments() to get the arguments.
C. Define an interface in the Fragment class, and implement the interface in the activity.
D. Call addToBackStack() during a transaction that removes the fragment.

Which of the following should be used to save the unsaved data and release resources
being used by Android application?

A. Activity onStop()
B. Activity onDestroy()
C. Activity onPause()
D. Activity on Shutdown()

Android Architecture Components provide some convenience annotations for DAOS.
Which of the following are available? (Choose 4 answers)

A. @Query
B. @Insert
C. @Delete
D. @Update
E. @Select

Suppose you want to create an app that has a white background, dark text, and a dark
action bar. Which base style does your application style inherit from?

A. Theme.AppCompat.Light
B. Theme.AppCompat Dark.NoActionBar
C. Theme.AppCompat.Light.DarkActionBar
D. Theme.AppCompat.NoActionBar

What are the advantages of using a Room database? (Choose 3 answers)

A. Creates and manages an Android SQLite database for you.
B. Eliminates a lot of boilerplate code.
C. Helps you manage multiple applications.
D. Using a DAO, provides a mechanism for mapping Java methods to database queries

When in the Activity lifecycle is onSavelnstanceState() called?

A. onSavelnstanceState() is called before the onStop() method.
B. onSavelnstanceState() is called before the onResume() method.
C. onSavelnstanceState() is called before the onCreate() method.
D. onSavelnstanceState() is called before the onDestroy() method

, Which of the following correctly describe what Android's IntentService does? (2
answers)

A. It's a framework that handles asynchronous requests on demand
B. It expresses requests as intent & passes them between threads and/or process
C. It is a component that provides a screen within which users can interact in order to
do something
D. It is an event handler that reponds to system-side broadcast announcement

If an AsyncTask is defined as follows
private class DownloadFiles Task extends AsyncTask<URL, Integer, Long>
What is the type of the value that is passed to doInBackground() in the AsyncTask?

A. URL
B. Integer
C. Void
D. Long

Which of the following are methods in the activity and fragment lifecycles? (Choose 3
answers)

A. onCreate()
B. onDraw()
C. onClick()
D. onStart()
E. onPause()

Which of the following are reasons why the SQLite query() method returns a Cursor?

A. It allows buffering of query results It is efficient since all data needn't be loaded into
memory
B. It is efficent since data needn't be loaded into memory
C. It ensures that query results are right
D. It alleviates the need to explicitly call close() on the Cursor

Which component do we use to open an URL in Android application?

A. Implicit Intent
B. Explicit Intent
C. Content Provider
D. Service

Which of the following are types of Android intent broadcast mechanisms? (Choose 2
answers)

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller NurseHenny. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $22.99. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

77254 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$22.99
  • (0)
  Add to cart