Android Online Quiz
Following quiz provides Multiple Choice Questions (MCQs) related to Android. You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer button. You can use Next Quiz button to check new set of questions in the quiz.
Q 1 - Is it possible to have an activity without UI to perform action/actions?
Answer : C
Explanation
Generally, every activity is having its UI(Layout). But if a developer wants to create an activity without UI, he can do it.
Q 2 - What is android view group?
A - Collection of views and other child views
Answer : A
Explanation
View Group is collaborating with views and other child views,It is an invisible container and base classes for layouts.
Q 3 - What is broadcast receiver in android?
A - It will react on broadcast announcements.
B - It will do background functionalities as services.
Answer : A
Explanation
It is a main component of android. It reacts on the system broadcast announcements, and it acts as a gateway between outside application environment with your application.
Q 4 - What is the use of content provider in android?
A - To send the data from an application to another application
B - To store the data in a database
Answer : C
Explanation
Content provider is used to share the data between applications
Q 5 -What is the 9 patch tool in android?
Answer : A
Explanation
We can change bitmap images to 9 sections as four corners, four edges and one axis.
Q 6 - WHich method is used to find GPS enabled or disabled pro-grammatically in android?
Answer : C
The onProviderDisable() method is used to find whether GPS is enabled or disabled in android pro-grammatically
Q 7 - In which technique, we can refresh the dynamic content in android?
Answer : B
Using with Ajax technology, we can refresh the dynamic data in web pages.
Q 8 - What is a GCM in android?
Answer : A
Using with google could messaging, we can push the data from the servers to client devices. In short, we can send messages to mobile devices through the cloud(Push Notification).
Answer : B
ANR responding time is 5 sec. If an application is not responding within 5 sec, ANR will occur
Q 10 - What is the life cycle of foreground activity in android?
A - onCreate() −> onStart() −> onResume() −> onStop() −> onRestart
B - onCreate() −> onStart() −> onResume() −>onStop()
Answer : C
Foreground activity should be onCreate() −> onStart() −> onResume() in activity life cycle.