True/False Questions for Android Activities

  • 1 Persist operation can also be performed in onStop() instead of onPause() because both are always called before activity destruction. False View Answer

  • 2 Process state depends on the state of the activity running in the process of android app. True View Answer

  • 3 Room is a persistence library that provides an abstraction layer over SQLite. True View Answer

  • 4 Completion of the onPause() method does not mean that the activity leaves the Paused state. True View Answer

  • 5 You should USE onPause() to save application or user data, make network calls, or execute database transactions. False View Answer

  • 6 A parent activity CAN launch a child activity even if both activities have different permissions in their manifest. False View Answer

  • 7 You can use the manifest's <activity> tag to control which apps can start a particular activity. True View Answer

  • 8 The <data> element of intent-filter for activity in app manifest specifies the type of data that this activity can send. True View Answer

  • 9 Declaring the <category> element as DEFAULT enables the activity to receive launch requests in the intent-filter of activity. True View Answer

  • 10 The <action> element of intent-filter while declaring activity in app manifest specifies that this activity sends data. True View Answer

  • 11 An activity provides the window in which the app draws its user interface. True View Answer

  • 12 Every activity you define for your android application must be declared in your AndroidManifest.xml file True View Answer

  • 13 An android application can have one or more activities without any restriction on the number of activities. True View Answer

  • 14 An android application can have only one activity. False View Answer

  • 15 An activity class loads all the UI component using the XML file available in res/layout folder of the project. True View Answer

  • 16 The onPause() callback method is called when the current activity is being paused and the previous activity is being resumed. True View Answer

  • 17 The paused activity does not receive user input and cannot execute any code. True View Answer

  • 18 When you create a new Activity, It is important that you will have to implement all the life cycle callbacks methods from onCreate till onDestroy. False View Answer

Contact Us

support@subexpert.com
Write to Us View Help
Subject Expert Logo

Subject Expert

Learn and Evaluate

Follow Us
© 2020 - Subject Expert