• Android Video Tutorials

Android Online Quiz


Advertisements

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.

Questions and Answers

Q 1 - How to pass the data between activities in Android?

A - Intent

B - Content Provider

C - Broadcast receiver

D - None of the Above

Answer : A

Explanation

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?

A - Worker Thread

B - Own Thread

C - Main Thread

D - None of the above.

Answer : C

Explanation

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?

A - Only one

B- Two

C - AsyncTask doesn't have tread

D - None of the Above

Answer : A

Explanation

In Android 3.0, It is having multi threads, but now it is having only one thread.

Answer : B

Explanation

Broadcast receiver has only onReceive() method. Broadcast starts from onRecieve() and control comes out from onRecieve().

Answer : B

Explanation

Anonymous class doesn't have class name but has some functionalities in it.

Answer : A

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?

A - Java

B - Ajax

C - Android

D - None of the Above

Answer : B

Using with Ajax technology, we can refresh the dynamic data in web pages.

Answer : D

Json elements are Number, string, boolean, null, array, and object

Q 9 -What are return types of startActivityForResult() in android?

A - RESULT_OK

B - RESULT_CANCEL

C - RESULT_CRASH

D - A & B

E - B & C

Answer : D

strartActivityforResult() returns RESULT_OK and RESULT_CANCEL.

Answer : B

Anchor View provides the information on respective relative positions of views.

android_questions_answers.htm
Advertisements