• 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

Answer : C

Explanation

Pending Intent is fired or triggered at a future point of time.

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.

Answer : D

Explanation

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?

A - Shared Preferences

B - Cursor

C - SQlite database

D - Not possible

Answer : C

Explanation

We can store structured data in SQlite database only. SQlite database is very efficient and faster to read and store the data.

Answer : B

Explanation

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

Q 6 - How many ports are allocated for new emulator?

A - 2

B - 0

C - 10

D - None of the above.

Answer : A

Every emulator or device is allocated by 2 ports based on port availability.

Q 7 - What is the package name of HTTP client in android?

A - com.json

B - org.apache.http.client

C - com.android.JSON

D - org.json

Answer : B

org.apache.http.client is the package name of HTTP client.

Q 8 - How to find the JSON element length in android JSON?

A - count()

B - sum()

C - add()

D - length()

Answer : D

Using length(), we can find the number of elements are in JSON.

Answer : A

Android is having two levels of securities, they are as App level security and kernel level security

Answer : C

Foreground activity should be onCreate() −> onStart() −> onResume() in activity life cycle.

android_questions_answers.htm
Advertisements