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

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

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.

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

APK is an android packaging kit. We can pack/zip, our code in apk format to work on Android devices as an application.

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

Android is having two levels of securities, they are as App level security and kernel level security

Answer : A

The Interface acts as a bridge between class and the outside world. Interface contains method declaration, nested types, and constants.


android_questions_answers.htm

Advertisements