• 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

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.

Answer : E

Explanation

Android is having Linear Layout(Horizontal and Vertical), Frame Layout, Table Layout, and Relative Layout.

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

Explanation

The getContext() method is used in onCreate() method and getApplicationContext() can be used anywhere in an application.

Answer : A

Explanation

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

Answer : D

DDMS provides port forwarding, screen capturing, memory mapping, logcat, calls, SMS etc.

Q 7 - In which technique, we can refresh the dynamic content in android?

A - Java

B - Ajax

C - Android

D - None of the Above

Answer : B

Using with Ajax technology, we can refresh the dynamic data in web pages.

Answer : D

Using FragmentManager.findFragmentByID(R.id.fragment), we can find the fragment/fragments which are placed on the layout

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

Class can be immutable.

android_questions_answers.htm
Advertisements