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 - What is a context in android ?
Context is used to create new components or objects like views and it is used to start activity and services. Android has two kinds of contexts and those are getContext() and getApplicationContext().
Q 2 -How many sizes are supported by Android?
X-large screens are having at least 960dp*720dp resolutions
Large screens are having at least 640dp*480dp resolutions
Normal screens are having at least 470dp*320dp resolutions
Small screens are having at least 426dp*320dp resolutions
Q 3 -How to stop the services in android?
We can stop the services by stopSelf() and stopService(), in some cases android will kill the services due to the low memory problem.
Q 4 - How to store heavy structured data in android?
We can store structured data in SQlite database only. SQlite database is very efficient and faster to read and store the data.
Q 5 - Which features are considered while creating android application?
Before creating an application, developers should consider screen size, input configuration, version, and device features
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 - What does httpclient.execute() returns in android?
Httpclient.execute() executes only once and it will return http response from the server or device, Http entity is embedded the body of the Http response.
Q 8 - What are the JSON elements in android?
Json elements are Number, string, boolean, null, array, and object
ANR responding time is 5 sec. If an application is not responding within 5 sec, ANR will occur
Q 10 - What are the main components in android?
The main components in android are Activity, services, Broadcast Receiver and content providers.