• 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 get a response from an activity in Android?

A - startActivityToResult()

B - startActiivtyForResult()

C - Bundle()

D - None of the above

Answer : B

Explanation

startActivityForResult(Intent intent,int requestCode) will give the response from second activity to first activity as a result.

Answer : C

Explanation

Margin specifies the space left on four sides in the layout and padding specifies the exact position where the element going to be taking place in the layout.

Answer : A

Explanation

When an Application is not responding ANR will be occur, and it will stop the process or an 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 : D

Explanation

Application class is the base class for any android application.

Answer : D

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

Q 7 - Data can be read from local source XML in android through

A - XML resource parser

B - XML pull parsing

C - DOM parsing

D - None of the above

Answer : A

Using with XML resource parser, we can read local resource XML in android.

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

Android version 2.2 is deprecated so we don't need to call MIN version to be 1

Answer : C

Synchronization without internet in which we can take the application data without internet.

android_questions_answers.htm
Advertisements