• Android Video Tutorials

Android Online Quiz


Advertisements

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 : A

Explanation

Activity is a single screen in an application, Activity performs the actions on the screen(UI)

Answer : D

Explanation

We have to call startFordgroud(int id,Notification notification) to make services as foreground services. When it comes to foreground, it will show a notification.

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.

Answer : C

Explanation

Content values are named key pair values which is used to store the data, update the data in SQlite database. Cursor is a temporary buffering area to store the temporary result of android SQlite.

Answer : D

Explanation

Java Native interfaces are used to call native/cross applications, which are written in C and C++ languages.

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

A - DDMS

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.

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.

Answer : C

Fragment life cycle is as shown below −

onAttach()
OnCreate()
onCreateView()
onActivityCreated()
onStart()
onResume()
onPause()
onStop()
onDestroyView()
onDestroy()
onDetach()

Answer : D

Transient data is logical data and we can store application logic in it.

Answer : A

The Interface acts as a bridge between class and the outside world. Interface contains method declaration, nested types, and constants.

android_questions_answers.htm
Advertisements