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 kill an activity in Android?
finish() − It is used to close the activity.
finish(int requestCode) − It is used to close the activity with requestCode.
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 -How to pass the data from activity to services in android?
Using putExtra() method, we can send the data. While using it, we need to call setResult() method in services. We can also store data in a common database and access it on services as well as in Activity.
Q 4 - What is sleep mode in android?
CPU will be in sleeping mode and it does not take any commands except radio interface layer and alarm from mobile.
Q 5 -What is the 9 patch tool in android?
We can change bitmap images to 9 sections as four corners, four edges and one axis.
Every emulator or device is allocated by 2 ports based on port availability.
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 is sandbox in android?
Each application runs securely in sandbox without interrupting another process. If an application is running in a sandbox, outside application can't touch sandbox application
Q 9 -What are return types of startActivityForResult() in android?
strartActivityforResult() returns RESULT_OK and RESULT_CANCEL.
Q 10 - What is bean class in android?
Bean class can hold other states and objects. It contains all fields which are private with setter and getter.