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

Q 1 - How to get a response from an activity in Android?

A - startActivityToResult()

B - startActiivtyForResult()

C - Bundle()

D - None of the above

Answer : B

Explanation

startActivityForResult(Intent intent,int requestCode) will give the response from second activity to first activity as a result.

Q 2 - WHich of the following is/are are the subclasses in Android?

A - Action Bar Activity

B - Launcher Activity

C - Preference Activity

D - Tab Activity

E - All of above

Answer : E

Explanation

Action bar,Launcher, Preference and Tab activities are subclasses of activities in android

Answer : A

Explanation

Services work in the background without any UI and it updates UI by using thread. By default, every service is having a main thread.

Q 4 - What is the time limit of broadcast receiver in android?

A - 10 sec

B - 15 sec

C - 5 sec

D - 1 hour

Answer : A

Explanation

Broadcast receiver has to do operation within 10 sec or else ANR will occur

Answer : B

Explanation

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

Q 6 - What are the debugging techniques available in android?

A - DDMS

B - Breaking point

C - Memory profiling

D - None of the above.

E - None of the above.

Answer : D

DDMS, Breaking Point and Memory profiling are the three debugging techniques available in Android. Based on requirement, we can use debugging techniques, each technique is having different capabilities to debug.

Q 7 - What is the library of Map View in android?

A - com.map

B - com.goggle.gogglemaps

C - in.maps

D - com.goggle.android.maps

Answer : D

com.google.android.maps is the library of the map view in android. We can access google maps by calling this library.

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

Answer : A

It is not mandatory, the program will work perfectly without fail, but the programmer has to implement the life cycle of activity.

Answer : D

The concurrent executable unit is called a thread. It's performs some background functionalities with services.


android_questions_answers.htm

Advertisements