Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Q 1 - Can a user save all database updates in onStop 0 A - Yes, a user can save

ID: 3720102 • Letter: Q

Question

Q 1 - Can a user save all database updates in onStop 0 A - Yes, a user can save all database updates in onStop0 B - No, a user can save in onSavedInstance) C- No, a user can save in a Bundle() D No, In some situations, a user can't reach onStop( 2 Show Ansver Q 2 -What is Manifest.xml in android? A-1t has information about layout in an application B- It has the information about activities in an application C. It has all the information about an application D- None of the above # Show Answer Q3 -What is the difference between services and thread in android? A - Services performs functionalities in the background. By default services run on main thread only B- Thread and services are having same functionalities C-Thread works on services D - None of the above 2 Show Anever 71 Q 4 - How many applications are there in a given task in android? YOU M A-Two pays f 1-One Many D - Zero

Explanation / Answer

Answers:

Q1. option D : In some situations, a user can't reach onStop().

In some situations (Runtime failures), The android may force-kill your application before executing onStop() method. onPause() will be executed always before killing the application. Hence, save your DB updates in onPause() instead of onStop().

Q2. option C: It has all the information about an Application.

AndroidManifest.xml file contains information of your package, including different components of application such as activities, services, broadcast recievers, content providers etc.

Q3. option A: Services performs functionalities in the background. By default services run on main thread only.

Q4: option C: Many

Many applications can be there in a given task in android.

A Task is a collection of applications that user traverse during some task execution.

-----------------------------------------------------------------------------------------------------------------------------------------------------

Please upvote if you are happy with the answer