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

Explanation

Pending Intent is fired or triggered at a future point of time.

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

Explanation

CPU will be in sleeping mode and it does not take any commands except radio interface layer and alarm from mobile.

Answer : E

Explanation

We can store persist data in android in shared preferences, internal/external storage, SQlite, and Network servers.

Answer : C

To find the last known location of a phone we need to use LastKnownLocation, the syntax is as shown below.

Location location = LocationServices.FusedLocationApi.getLastLocation(mGoogleApiClient);

Answer : A

Http request has get and post methods and it returns the response from the servers.

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

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

Set can't contain duplicate values. Examples of set are hashset,treeset and linked hash set

The list contains duplicate values. Example of list is linked list and array list

android_questions_answers.htm
Advertisements