Geschreven door studenten die geslaagd zijn Direct beschikbaar na je betaling Online lezen of als PDF Verkeerd document? Gratis ruilen 4,6 TrustPilot
logo-home
Tentamen (uitwerkingen)

PRM391 ASSIGNMENT - QUESTIONS AND CORRECT DETAILED ANSWERS 2024/2025

Beoordeling
-
Verkocht
-
Pagina's
220
Cijfer
A+
Geüpload op
08-01-2025
Geschreven in
2024/2025

PRM391 ASSIGNMENT - QUESTIONS AND CORRECT DETAILED ANSWERS 2024/2025

Instelling
Vak

Voorbeeld van de inhoud

STUDENTS SUCCESS

Revision Examination Tests
“Come all for this Greatness”



... 100% Correct Ans ...
PRM392, PRM391 - TEST 2 2024-2025- QUESTIONS AND CORRECT DETAILED

ANSWERS 2024/2025


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 on Stop(). Your code
must restart the Activity.
B. Android shuts down your Activity by calling on Pause(), on Stop(), and on
Destroy(). Your code must restart the Activity.
C. Android shuts down your Activity by calling on Pause(), on Stop(), and on
Destroy(), and then starts it over again, calling on Create(), on Start(), and on
Resume().
D. Android immediately calls on Resume().

Ans: C

Quiz What are components in Room?
A. Entity
B. Database Helper
C. Repository
D. DAO

Ans: ACD

Quiz Which component is used to open an Activity when user taps a notification?
A. Action button
B. Pending Intent that's sent when the user taps the action button
C. Title that describes the action
D. Icon that represents the action

Ans: B

Quiz How to store heavy structured data in android?
A. Not possible
B. SQlite database
C. Cursor

,D. Shared Preferences

Ans: B

Quiz 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

Ans: ABD

Quiz 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.

Ans: AB

Quiz 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()

Ans: B

Quiz 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

Ans: ABCD

Quiz 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

Ans: C

Quiz 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

Ans: ABD

Quiz 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

Ans: A

Quiz 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

Ans: AB

Quiz 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

Ans: A

Quiz 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()

, Ans: ADE

Quiz 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

Ans: D

Quiz Which component do we use to open an URL in Android application?
A. Implicit Intent
B. Explicit Intent
C. Content Provider
D. Service

Ans: A

Quiz Which of the following are types of Android intent broadcast mechanisms?
(Choose 2 answers)
A. Dynamic
B. Ordered
C. Static
D. Normal

Ans: AC

Quiz What are the two key things Retrofit needs to build a web-services API?
A. The base URI for the web service and a GET query
B. The base URI for the web service and a converter factory
C. A network connection to the web service and an authorization token
D. A converter factory and a parser for the response

Ans: B

Quiz Which parameter specifies the Android API level that Gradle should use
compile your app?
A. minSdkVersion
B. compileSdkVersion
C. targetSdkVersion
D. testSdkVersion

Ans: B

Quiz Which Intent action do you use to take a picture with a camera app?A. Intent
takePicture=new Intent(Intent ACTION VIEW);
B. Intent takePicture = new Intent(Intent.ACTION MAIN);
C. Intent takePicture = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);

Geschreven voor

Vak

Documentinformatie

Geüpload op
8 januari 2025
Aantal pagina's
220
Geschreven in
2024/2025
Type
Tentamen (uitwerkingen)
Bevat
Vragen en antwoorden

Onderwerpen

$9.89
Krijg toegang tot het volledige document:

Verkeerd document? Gratis ruilen Binnen 14 dagen na aankoop en voor het downloaden kun je een ander document kiezen. Je kunt het bedrag gewoon opnieuw besteden.
Geschreven door studenten die geslaagd zijn
Direct beschikbaar na je betaling
Online lezen of als PDF

Maak kennis met de verkoper
Seller avatar
kamasimungu
4.0
(1)

Maak kennis met de verkoper

Seller avatar
kamasimungu Albany College Of Pharmacy
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
4
Lid sinds
1 jaar
Aantal volgers
0
Documenten
1884
Laatst verkocht
6 maanden geleden
EDUCATION NEVER FAILS

At Education Never Fails, we believe in the transformative power of knowledge and learning. Our store is dedicated to providing high-quality educational resources, tools, and products to inspire lifelong learning and success. Whether you're a student, educator, or simply a curious mind, you'll find everything you need to unlock your full potential. Because with education, every door is open.

4.0

1 beoordelingen

5
0
4
1
3
0
2
0
1
0

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Bezig met je bronvermelding?

Maak nauwkeurige citaten in APA, MLA en Harvard met onze gratis bronnengenerator.

Bezig met je bronvermelding?

Veelgestelde vragen