• 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

Answer : A

Explanation

Activity is a single screen in an application, Activity performs the actions on the screen(UI)

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

Explanation

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

Answer : C

Explanation

Content values are named key pair values which is used to store the data, update the data in SQlite database. Cursor is a temporary buffering area to store the temporary result of android SQlite.

Answer : A

Explanation

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

Q 6 - WHich method is used to find GPS enabled or disabled pro-grammatically in android?

A - finish()

B - getGPSStatus()

C - onProviderDisable()

D - getGPS().

Answer : C

The onProviderDisable() method is used to find whether GPS is enabled or disabled in android pro-grammatically

Answer : B

Using with log cat, we can find the exception, which has occurred along with the line number. Using of line number, we can find the errors.

Q 8 - How many orientations does android support?

A - 4

B - 10

C - 2

D - None of the above

Answer : A

According to the Google documentation, Android supports 4 types of orientations, those are landscape, portrait, sensor and No orientation

Q 9 - Is it possible activity without UI in android?

A - No, it's not possible

B - Yes,it's possible

C - We can't say

D - None of the above

Answer : B

Without UI, we can call an activity, It will do some background functionalities.

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