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

Explanation

View Group is collaborating with views and other child views,It is an invisible container and base classes for layouts.

Answer : E

Explanation

AsyncTask needs doInBackground() and remaining methods are optional. As a developer we should need to implement all methods which are given above.

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.

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

Answer : D

Using FragmentManager.findFragmentByID(R.id.fragment), we can find the fragment/fragments which are placed on the layout

Answer : A

It is not mandatory, the program will work perfectly without fail, but the programmer has to implement the life cycle of activity.

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