• 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

Q 1 - Is it possible to have an activity without UI to perform action/actions?

A - Not possible

B - Wrong question

C - Yes, it is possible

D - None of the above

Answer : C

Explanation

Generally, every activity is having its UI(Layout). But if a developer wants to create an activity without UI, he can do it.

Answer : E

Explanation

Android is having Linear Layout(Horizontal and Vertical), Frame Layout, Table Layout, and Relative Layout.

Answer : D

Explanation

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.

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.

Q 5 -Which permissions are required to get a location in android?

A - ACCESS_FINE and ACCESS_COARSE

B - GPRS permission

C - Internet permission

D - WIFI permission.

Answer : A

Explanation

To get a location of a phone, ACCESS_FINE and ACCESS_COARSE permission in manifest file are required. Without these permissions, we can't get the location of a mobile.

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 JSON?

A - com.json

B - in.json

C - com.android.JSON

D - org.json

Answer : D

org.json is the package name of JSON object and JSON array

Answer : A

Json exception can be thrown while parsing JSON response from the server.

Answer : C

Android is having four levels of protection in android permission tag. They are normal, dangerous, signature, and signatureOrsystem

Answer : B

Anchor View provides the information on respective relative positions of views.

android_questions_answers.htm
Advertisements