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

Explanation

OnCreate() − The system will call this,when an activity is created first time.

onStart() − The system will call this,when an activity starts the actions/action on UI.

onResume() − The system will call this, when onRestart() or onPause() is called.

onPause() −> The system will call this, when an activity going into the background.

onStop() − The system will call this, when an activity going into stop.

onRestart() − The system will call this, when an activity going to stop stage and to start the activity again.

onDestroy() − The system will call this, when an activity going in stop mode.

Answer : D

Explanation

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

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

Explanation

Content provider is used to share the data between applications

Answer : E

Explanation

When CPU is on mode, PARTIAL_WAKE_LOCK will be active.

When CPU + bright Screen low is on mode, SCREEN_DIM_WAKE_LOCK will be active.

When CPU + bright Screen High is on mode,SCREEN_BRIGHT_WAKE_LOCK will be active.

When CPU, Screen, bright Screen High is on mode, FULL_WAKE_LOCK will be active.

Answer : C

Android debug bridge is a client and a server modelled tool and acts as a bridge between client and server.

Q 7 - Data can be read from local source XML in android through

A - XML resource parser

B - XML pull parsing

C - DOM parsing

D - None of the above

Answer : A

Using with XML resource parser, we can read local resource XML in android.

Answer : C

Fragment life cycle is as shown below −

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

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

Give same id for both notifications.

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