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

Explanation

Manifest.xml is having information about application as number components in your application,Activity information,service information, and icon about an application

Each application has at least one Manifest file. Without manifest file we can't generate the APK file.

Q 3 - On which thread broadcast receivers will work in android?

A - Worker Thread

B - Main Thread

C - Activity Thread

D - None of the Above

Answer : B

Explanation

Broadcast Receiver by default runs on Main Thread only.

Answer : D

Explanation

sendBroadcast() &miuns; It's normal broadcast.

sendOrderBroadcast() &miuns; It has an order priority

sendStickyBroadcast() &miuns; Intent passed with broadcast for future users.

Answer : A

Explanation

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

Q 6 - How many ports are allocated for new emulator?

A - 2

B - 0

C - 10

D - None of the above.

Answer : A

Every emulator or device is allocated by 2 ports based on port availability.

Q 7 - What is the package name of HTTP client in android?

A - com.json

B - org.apache.http.client

C - com.android.JSON

D - org.json

Answer : B

org.apache.http.client is the package name of HTTP client.

Answer : C

Fragment life cycle is as shown below −

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

Answer : B

The super.onCreate() will create the graphical window for subclasses and place at onCreate() method.

Answer : C

Synchronization without internet in which we can take the application data without internet.

android_questions_answers.htm
Advertisements