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

Explanation

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().

Answer : D

Explanation

Splash is an activity. Generally it appears as initial screen of an application and works based on thread concept.

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 - What is the time limit of broadcast receiver in android?

A - 10 sec

B - 15 sec

C - 5 sec

D - 1 hour

Answer : A

Explanation

Broadcast receiver has to do operation within 10 sec or else ANR will occur

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.

Answer : C

Breaks the execution to find the debug value, It is one of the debugging techniques.

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

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

Answer : C

Using with Javac, we can compile Java files

Use dx tool to convert all Java class files to single dex file

Use AAPT tool to create apk file

Sign the apk file by using jar signer

Zipalign of signed apk

Answer : B

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


android_questions_answers.htm

Advertisements