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

Explanation

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

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

Q 2 - On which thread services work in android?

A - Worker Thread

B - Own Thread

C - Main Thread

D - None of the above.

Answer : C

Explanation

Services, by default, work on Main thread. You can start services from any thread, but if you want to update the UI, you need to call Main thread.

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 provider is used to share the data between applications

Q 5 - Which features are considered while creating android application?

A - Screen Size

B - Input configuration

C - Platform Version

D - Device features

E - All of above

Answer : E

Explanation

Before creating an application, developers should consider screen size, input configuration, version, and device features

Q 6 - How many ports are allocated for new emulator?

A - 2

B - 0

C - 10

D - None of the above.

Answer : A

Every emulator or device is allocated by 2 ports based on port availability.

Answer : A

Http request has get and post methods and it returns the response from the servers.

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

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

Foreground activity should be onCreate() −> onStart() −> onResume() in activity life cycle.

android_questions_answers.htm
Advertisements