MCQ Chapter 8


Unit 8:
Taking apps to Market
1)What is JNI in android?
A - Java network interface
B - Java interface
C - Image editable tool
D - Java native interface.
Ans:D
2) What is DDMS in android?
A - Dalvik memory server
B - Device memory server
C - Dalvik monitoring services
D - Dalvik debug monitor services
Ans:D
3) What is the package name of JSON?
A - com.json
B - in.json
C - com.android.JSON
D - org.json
Ans:D
4) What are the JSON elements in android?
A - integer, boolean
B - boolean
C - null
D - Number, string, boolean, null, array, and object
Ans:D
5) What is ANR responding time in android?
A - 10 sec
B - 5 sec
C - 1 min
D - None of the above
Ans:B
6) What are the main components in android?
A - Activity
B - Services
C – All of these
D - Content provider
Ans: C
7)  How to upgrade SQlite the database from a lower version to higher version in android SQlite?
A - Using helper Class
B - Using cursor
C - Using intent
D - None of the above
Ans:A
8) How to pass the data from activity to services in android?
A - We can store the data in a common database and access the data on services as well as in Activity
B - We can't pass data from activity to services.
C - Using putExtra() method in intent, we can pass the data using setResult()
D - A & C
Ans:D
9) A type of service provided by android that shows messages and alerts to user is
  1. Content Providers
  2. View System
  3. Notifications Manager
  4. Activity Manager
Ans:C

10) Broadcast that includes information about battery state, level, etc. is
  1. android.intent.action.BATTERY_CHANGED
  2. android.intent.action.BATTERY_LOW
  3. android.intent.action.BATTERY_OKAY
  4. android.intent.action.CALL_BUTTON
Ans:A
11) One of application component, that manages application's background services is called
  1. Activities
  2. Broadcast Receivers
  3. Services
  4. Content Providers
Ans:C
12) Tab that can be used to do any task that can be done from DOS window is
  1. TODO
  2. messages
  3. terminal
  4. comments
Ans:C
13) Space outside of widget can be customized using
  1. padding
  2. height
  3. weight
  4. margins
Ans:D
14) Tab that shows hierarchy of project is
  1. Build variants
  2. Structure
  3. Favorites
  4. Project
Ans:B
15) In android, compiled code is executed by part of android system called
  1. DEX
  2. DVM
  3. JDK
  4. API
Ans:B
16) A part of android studio, that work as a simulator for android devices is called
  1. driver
  2. emulator
  3. stub
  4. firmware
Ans:B
17) Code that provide easy way to use all android features is called
  1. API
  2. DEX
  3. DVM
  4. JDK
Ans:A
18) A type of service provided by android that controls application lifespan and activity pile is
  1. Activity Manager
  2. View System
  3. Notifications Manager
  4. Content Providers
Ans:A
19) One of operating system that cannot be used for android application development is
  1. Eclipse
  2. Cooja
  3. Netbeans
  4. Android studio
Ans:B
20) Android understandable form of code is called
  1. JDK
  2. DEX
  3. DVM
  4. API
Ans:B

Comments