Question: 1. In the manifest file, the action element value _________________ indicates that this activity is the main activity that opens where we open the app

1. In the manifest file, the action element value _________________ indicates that this activity is the main activity that opens where we open the app on the device Select one: a. android.intent.action.LAUNCHER b. android.intent.category.LAUNCHER c. android.intent.category.MAIN d. android.intent.action.MAIN

2. The value for the XML attribute that responds to the click event of a radio button must be ________________ Select one: a. The name of the radio group it belongs to b. The radio button id c. The method you want to call d. None of the options

3. We can use ____________ on the RadioGroup to know whenever the user clicks on any of its radio buttons Select one: a. setOnClickListener b. setOnCheckedChangeListener c. setOnRadioChangeListener d. setOnSelectedRadioListener

4. After requesting runtime permissions, the application uses _________ method to check whether the user has granted permissions or not Select one: a. onPermissionsResult b. onRequestPermissionsResult c. onActivityResult d. All the options are correct

5. Which of the following is a valid android activity life cycle? Select one: a. onCreate() > onStart() > onActivityStarted() > onResume() > onPause() > onStop() > onActivityDestroy() > onDestroy() b. onCreate() > onStart() > onResume() > onPause() > onStop() > onDestroy() c. OnCreate() > onStart() > onPause() > onResume() > onStop() > onDestroy() d. onCreate() > onResume()

6. To define the menu items, you ____________ Select one: a. Create an XML file inside res/menu/ b. Add the items configuration to the layout XML file c. Add the items configuration to the strings.xml file d. None of the options

7. ______ intents specify an exact activity class to run in the same app Select one: a. Explicit b. Implicit c. None of the options

8. The onStop() method is called when an activity is no longer visible to the user, typically because another activity has _________ Select one: a. been launched b. been destroyed c. been stopped d. All the options

9. Use __________ method if you need to use only one shared preference file for the current activity Select one: a. getPreferences() b. getSharedPreferences() c. getKey() d. MODE_PRIVATE

10. The SharedPreferences class allows you to save and retrieve ___________ Select one: a. Relational SQL table b. Text files of any structure c. Key-Value pairs d. None of the options

11. The HTTP client class in android consists of __________ Select one: a. httprequest(get/post) and returns response from the server b. Cookies management c. Authentication management d. None of the options

12. We want to show to the user, while he/she is typing in a EditText how many characters are left, so whenever he/she types a character, the number is decreased by 1. We add the listener addTextChangedListener. Which method inside the listener should be used? Select one: a. beforeTextChanged b. onTextChanged c. afterTextChanged d. None of the options

13. When using the Volley library, the database ___________ Select one: a. Is local inside the phone memory b. Is only hosted on a local sever using Xampp c. Can be hosted on any server d. None of the options

14. android:usesCleartextTraffic is used _______________ Select one: a. To transfer text that is not encrypted b. To clear the text after the transfer c. To encrypt the text before sending it over https d. None of the options

15. Is it mandatory to use XML for designing the interfaces in android? Select one: a. No, we can design the interface components programmatically in Java without using XML b. Yes, we must design the interface in XML c. Yes, we must combine Java and XML for the app to work correctly d. None of the options

16. When you compile your android app, each XML layout file is compiled into a View resource. You should load the layout resource from your app code, in your __________ callback implementation. Do so by calling ________, passing it the reference to your layout resource in the form of R.layout.layout_file_name Select one: a. Activity.onCreate() / setContentView() b. setContentView() / Activity.onCreate() c. findViewById() / setContentView() d. setContentView() / findViewById()

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!