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 - How to pass the data between activities in Android?
An Intent is used to connect one activity to another activity and having a message passing mechanism between activities.
Q 2 - On which thread services work in android?
Services, by default, work on Main thread. You can start services from any thread, but if you want to update the UI, you need to call Main thread.
Q 3 - How many threads are there in asyncTask in android?
In Android 3.0, It is having multi threads, but now it is having only one thread.
Q 4 - What is the life cycle of broadcast receivers in android?
Broadcast receiver has only onReceive() method. Broadcast starts from onRecieve() and control comes out from onRecieve().
Q 5 - What is an anonymous class in android?
Anonymous class doesn't have class name but has some functionalities in it.
Q 6 - What is a base adapter in android?
Base Adapter is a common class for any adapter. We can use a base adapter for both listView and spinner. It has some methods as shown below
getView() getList() getItem() getCount()
Q 7 - In which technique, we can refresh the dynamic content in android?
Using with Ajax technology, we can refresh the dynamic data in web pages.
Q 8 - What are the JSON elements in android?
Json elements are Number, string, boolean, null, array, and object
Q 9 -What are return types of startActivityForResult() in android?
strartActivityforResult() returns RESULT_OK and RESULT_CANCEL.
Q 10 - What is anchor view?
Anchor View provides the information on respective relative positions of views.