• Android Video Tutorials

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.

Questions and Answers

Q 1 - How to get a response from an activity in Android?

A - startActivityToResult()

B - startActiivtyForResult()

C - Bundle()

D - None of the above

Answer : B


startActivityForResult(Intent intent,int requestCode) will give the response from second activity to first activity as a result.

Q 2 - WHich of the following is/are are the subclasses in Android?

A - Action Bar Activity

B - Launcher Activity

C - Preference Activity

D - Tab Activity

E - All of above

Answer : E


Action bar,Launcher, Preference and Tab activities are subclasses of activities in android

Q 3 -What are the return values of onStartCommand() in android services?




D - All of the above

E - None of the above

Answer : D


START_STICKY − If android stops services forcefully, using with START_STICKY, it can be restarted automatically without the user interaction.

START_NOT_STICKY − If android stops services forcefully, it will not restart services till user start services.

START_REDELIVER_INTENT − If android stops services forcefully, it will restart services by re-sending an intent.

Q 4 - 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

Answer : A


In helper class, we can pass the version numbers in incremental order.

Answer : C


GPRS and Location provider is used to fetch the current location of a phone as longitude and latitude.

Q 6 - What are the debugging techniques available in android?


B - Breaking point

C - Memory profiling

D - None of the above.

E - None of the above.

Answer : D

DDMS, Breaking Point and Memory profiling are the three debugging techniques available in Android. Based on requirement, we can use debugging techniques, each technique is having different capabilities to debug.

Answer : B

Using with log cat, we can find the exception, which has occurred along with the line number. Using of line number, we can find the errors.

Answer : D

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

Answer : A

Android version 2.2 is deprecated so we don't need to call MIN version to be 1

Answer : E

Give same id for both notifications.