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

Answer : A

Explanation

Android is a stack of software applications for mobile devices, which includes an operating system, middleware applications, and some key applications. It executes within own process and own instance of Dalvik Virtual Machine. DVM executes byte code and later transforms into .dex format files.

Answer : E

Explanation

Android is having Linear Layout(Horizontal and Vertical), Frame Layout, Table Layout, and Relative Layout.

Q 3 - How many threads are there in asyncTask in android?

A - Only one

B- Two

C - AsyncTask doesn't have tread

D - None of the Above

Answer : A

Explanation

In Android 3.0, It is having multi threads, but now it is having only one thread.

Answer : A

Explanation

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

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

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);

Q 7 - What does httpclient.execute() returns in android?

A - Http entity

B - Http response

C - Http result

D - None of the above.

Answer : B

Httpclient.execute() executes only once and it will return http response from the server or device, Http entity is embedded the body of the Http response.

Answer : D

Json elements are Number, string, boolean, null, array, and object

Answer : A

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

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