• 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

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

Explanation

Splash is an activity. Generally it appears as initial screen of an application and works based on thread concept.

Answer : C

Explanation

Binder is responsible to manage the thread while creating aidl and is responsible to do marshalling and un-marshalling of the data. Binders have sub functionalities and interface for clients

Q 4 - How many applications are there in a given task in android?

A - Two

B - One

C - Many

D - Zero

Answer : C

Explanation

The task is a collaboration of applications. It contains one or more applications in it

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

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

Fragment life cycle is as shown below −

onAttach()
OnCreate()
onCreateView()
onActivityCreated()
onStart()
onResume()
onPause()
onStop()
onDestroyView()
onDestroy()
onDetach()

Answer : C

Android is having four levels of protection in android permission tag. They are normal, dangerous, signature, and signatureOrsystem

Q 10 - What are the main components in android?

A - Activity

B - Services

C - Broadcast Receiver

D - Content provider

Answer : A,B,C and D

The main components in android are Activity, services, Broadcast Receiver and content providers.

android_questions_answers.htm
Advertisements