MCQ Chapter 5


Chapter 5
Native data handling
1) Android component that controls external elements of file is called
  1. intent
  2. resource
  3. view
  4. manifest
Ans:B: resource
2) Android library that provides access to database is
  1. android.database
  2. android.content
  3. android.app
  4. android.opengl
Ans:A: android.database
3) Android component that manages app's configuration file is called
  1. manifest
  2. fragment
  3. view
  4. intent
Ans:A: manifest

4) Tab that shows system and error messages is
  1. terminal
  2. messages
  3. TODO
  4. comments
Ans:B: messages

5) In android studio, tab in which memory usage of app is shown is called
  1. CPU
  2. memory
  3. ADB logs
  4. logcat
Ans:B: memory

6) Android library that provides access to standard functions of an operating system is
  1. android.os
  2. android.text
  3. android.view
  4. android.webkit
Ans:A: android.os

7) Multiple inheritance concept is indirectly used by using
  1. public class
  2. child class
  3. sub class
  4. super class
Ans:C: sub class

8) One of application component, that manages database issues is called
  1. Services
  2. Content Providers
  3. Broadcast Receivers
  4. Activities
Ans:B: Content Providers

9) Android library that provides access to model of application is
  1. android.opengl
  2. android.content
  3. android.app
  4. android.database

Ans:C: android.app

10) In android, functionality of one class can be used in other class by using option
  1. extends
  2. extended
  3. extending
  4. extend
Ans:A: extends

11) Tab that stores history of most visited places is
  1. Favorites
  2. Structure
  3. Build variants
  4. Project
Ans:A: Favorites
12) By default in android studio during app development, directory made for xml files is
  1. res/layout
  2. res/values
  3. AndroidManifest.xml
  4. Build.gradle
Ans:B: res/values

13) Method that is used to produce log messages in android is
  1. Log.d()
  2. Log.D()
  3. Log.R()
  4. Log.r()
Ans:A: Log.d()

14) In android studio, quick options can be accessed from
  1. tool bar
  2. menu bar
  3. navigation bar
  4. editor tab
Ans:B: menu bar

15) By default in android studio during app development, file that holds information about app's fundamental features and components is
  1. AndroidManifest.xml
  2. res/values
  3. Build.gradle
  4. res/layout
Ans:A: AndroidManifest.xml
16) Requests from Content Provider class is handled by method
  1. onCreate
  2. onSelect
  3. onClick
  4. ContentResolver

Ans:D: ContentResolver

17) A type of class that will be responsible to design main screen activity on first time launch of application is called
  1. Activity class
  2. Parent class
  3. Child class
  4. Inherited class
Ans:A: Activity class
18) On implementing method of onStartCommand(), service must be stopped after task is completed using
  1. stopSelf()
  2. stopService()
  3. stopSelf() or stopService()
  4. endService()
Ans:C: stopSelf() or stopService()
19)  A class that allows to display messages on logcat windows is
  1. Toast Class
  2. Log class
  3. makeTest class
  4. Show class
Ans:B: Log class

20)  In android studio, virtual console type tab that is used as command line interface is called
  1. memory
  2. CPU
  3. logcat
  4. ADB logs
Ans:D: ADB logs



Comments