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 get a response from an activity in Android?
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?
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?
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?
In helper class, we can pass the version numbers in incremental order.
Q 5 - How to get current location in android?
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?
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.
Q 7 - How to fix crash using log cat in android?
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.
Q 8 - What are the JSON elements in android?
Json elements are Number, string, boolean, null, array, and object
Q 9 - Why don't we give MIN SDK as 1 in android?
Android version 2.2 is deprecated so we don't need to call MIN version to be 1
Q 10 - How do you join two notifications in android?
Give same id for both notifications.