• Android Video Tutorials

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

Explanation

Context is used to create new components or objects like views and it is used to start activity and services. Android has two kinds of contexts and those are getContext() and getApplicationContext().

Answer : D

Explanation

We have to call startFordgroud(int id,Notification notification) to make services as foreground services. When it comes to foreground, it will show a notification.

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

Answer : B

Explanation

Broadcast receiver has only onReceive() method. Broadcast starts from onRecieve() and control comes out from onRecieve().

Answer : B

Explanation

Anonymous class doesn't have class name but has some functionalities in it.

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

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

Using with google could messaging, we can push the data from the servers to client devices. In short, we can send messages to mobile devices through the cloud(Push Notification).

Q 9 - What is ANR responding time in android?

A - 10 sec

B - 5 sec

C - 1 min

D - None of the above

Answer : B

ANR responding time is 5 sec. If an application is not responding within 5 sec, ANR will occur

Answer : E

Give same id for both notifications.

nm.notify(1,notification);
android_questions_answers.htm
Advertisements