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

Answer : C

Explanation

finish() − It is used to close the activity.

finish(int requestCode) − It is used to close the activity with requestCode.

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

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.

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

Explanation

GPRS and Location provider is used to fetch the current location of a phone as longitude and latitude.

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.

Answer : B

Using with log cat, we can find the exception, which has occurred along with the line number. Using of line number, we can find the errors.

Q 8 - What is the HTTP response error code status in android?

A - status code < 100

B - status code > 100

C - status >= 400

D - None of the above

Answer : C

HTTP status code >= 400 means error else success. Status code 404 means page not found

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

Anchor View provides the information on respective relative positions of views.


android_questions_answers.htm

Advertisements