Android Components MCQ Questions & Answers
This section focuses on "Components" of Android. These Multiple Choice Questions (MCQ) should be practiced to improve the Android skills required for various interviews (campus interviews, walk-in interviews, company interviews), placements, entrance exams and other competitive examinations.
1. How many main components that can be used within an Android application?
A. 2
B. 3
C. 4
D. 5
View Answer
Ans : C
Explanation: There are four main components that can be used within an Android application : Activities, Services, Broadcast Receivers and Content Providers.
2. Which component handle background processing associated with an application?
A. Activities
B. Services
C. Broadcast Receivers
D. Content Providers
View Answer
Ans : B
Explanation: Services : They handle background processing associated with an application.
3. What is true about Content Providers?
A. They dictate the UI and handle the user interaction to the smart phone screen
B. They handle background processing associated with an application.
C. They handle communication between Android OS and applications
D. They handle data and database management issues
View Answer
Ans : D
Explanation: Content Providers : They handle data and database management issues.
4. What is true about Activities component?
A. An activity represents a single screen with a user interface,in-short Activity performs actions on the screen.
B. application has more than one activity, then one of them should be marked as the activity that is presented when the application is launched.
C. An activity is implemented as a subclass of Activity class
D. All of the above
View Answer
Ans : D
Explanation: All of the above statement are true.
5. Which of the following statement is false about Broadcast Receivers?
A. A broadcast receiver is implemented as a subclass of ContentProvider class
B. A broadcast receiver is implemented as a subclass of Activity class
C. A broadcast receiver is implemented as a subclass of BroadcastReceiver class
D. A broadcast receiver is implemented as a subclass of Service class
View Answer
Ans : C
Explanation: A broadcast receiver is implemented as a subclass of BroadcastReceiver class and each message is broadcaster as an Intent object.
6. What is true about Fragments component?
A. Represents a portion of user interface in an Activity.
B. UI elements that are drawn on-screen including buttons, lists forms etc.
C. View hierarchies that control screen format and appearance of the views.
D. Messages wiring components together
View Answer
Ans : A
Explanation: Fragments : Represents a portion of user interface in an Activity.
7. What is true about Intents component?
A. External elements, such as strings, constants and drawable pictures.
B. UI elements that are drawn on-screen including buttons, lists forms etc.
C. View hierarchies that control screen format and appearance of the views.
D. Messages wiring components together
View Answer
Ans : D
Explanation: Intents : Messages wiring components together.
8. Which of the following component has view hierarchies that control screen format and appearance of the views?
A. Layouts
B. Views
C. Resources
D. Manifest
View Answer
Ans : A
Explanation: Layouts : View hierarchies that control screen format and appearance of the views.
9. Which of the following component has UI elements that are drawn on-screen including buttons, lists forms etc?
A. Fragments
B. Views
C. Resources
D. Manifest
View Answer
Ans : B
Explanation: Views : UI elements that are drawn on-screen including buttons, lists forms etc.
10. Which of the following component has Configuration file for the application?
A. Resources
B. Manifest
C. Services
D. Activities
View Answer
Ans : B
Explanation: Manifest : Configuration file for the application.
Discussion