• 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 - How to pass the data between activities in Android?

A - Intent

B - Content Provider

C - Broadcast receiver

D - None of the Above

Answer : A

Explanation

An Intent is used to connect one activity to another activity and having a message passing mechanism between activities.

Answer : D

Explanation

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

Q 3 -What are the return values of onStartCommand() in android services?

A - START_STICKY

B - START_NOT_STICKY

C - START_REDELIVER_INTENT

D - All of the above

E - None of the above

Answer : D

Explanation

START_STICKY − If android stops services forcefully, using with START_STICKY, it can be restarted automatically without the user interaction.

START_NOT_STICKY − If android stops services forcefully, it will not restart services till user start services.

START_REDELIVER_INTENT − If android stops services forcefully, it will restart services by re-sending an intent.

Answer : A

Explanation

CPU will be in sleeping mode and it does not take any commands except radio interface layer and alarm from mobile.

Answer : D

Explanation

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

Answer : D

DDMS provides port forwarding, screen capturing, memory mapping, logcat, calls, SMS etc.

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

Q 8 - What is the HTTP response error code status in android?

A - status code < 100

B - status code > 100

C - status >= 400

D - None of the above

Answer : C

HTTP status code >= 400 means error else success. Status code 404 means page not found

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

Bean class can hold other states and objects. It contains all fields which are private with setter and getter.

android_questions_answers.htm
Advertisements