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

Explanation

OnCreate() − The system will call this,when an activity is created first time.

onStart() − The system will call this,when an activity starts the actions/action on UI.

onResume() − The system will call this, when onRestart() or onPause() is called.

onPause() −> The system will call this, when an activity going into the background.

onStop() − The system will call this, when an activity going into stop.

onRestart() − The system will call this, when an activity going to stop stage and to start the activity again.

onDestroy() − The system will call this, when an activity going in stop mode.

Answer : C

Explanation

Manifest.xml is having information about application as number components in your application,Activity information,service information, and icon about an application

Each application has at least one Manifest file. Without manifest file we can't generate the APK file.

Answer : A

Explanation

It is a main component of android. It reacts on the system broadcast announcements, and it acts as a gateway between outside application environment with your application.

Q 4 - How to upgrade SQlite the database from a lower version to higher version in android SQlite?

A - Using helper Class

B - Using cursor

C - Using intent

D - None of the above

Answer : A

Explanation

In helper class, we can pass the version numbers in incremental order.

Answer : A

Explanation

There is only an object which can be accessed by all other class.

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

Answer : D

Json elements are Number, string, boolean, null, array, and object

Q 9 - What is ANR responding time in android?

A - 10 sec

B - 5 sec

C - 1 min

D - None of the above

Answer : B

ANR responding time is 5 sec. If an application is not responding within 5 sec, ANR will occur

Answer : C

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


android_questions_answers.htm

Advertisements