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

Answer : A

Explanation

When an Application is not responding ANR will be occur, and it will stop the process or an application

Answer : C

Explanation

Content values are named key pair values which is used to store the data, update the data in SQlite database. Cursor is a temporary buffering area to store the temporary result of android SQlite.

Answer : A

Explanation

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

Answer : C

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

Answer : D

HTTP Client has the capabilities to manage connections, cookies and Authentication.

Answer : D

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

Q 9 -What are return types of startActivityForResult() in android?

A - RESULT_OK

B - RESULT_CANCEL

C - RESULT_CRASH

D - A & B

E - B & C

Answer : D

strartActivityforResult() returns RESULT_OK and RESULT_CANCEL.

Answer : D

Set can't contain duplicate values. Examples of set are hashset,treeset and linked hash set

The list contains duplicate values. Example of list is linked list and array list

android_questions_answers.htm
Advertisements