1) How many threads are created by asyncTask in Android?

a) Only one
b) Two
c) AsyncTask doesn’t have threads.
d) None of the above

Answer(s) : 
a) Only one

2) What is the application class in android?

a) A class that can create only an object.
b) Anonymous class
c) Java class
d) Base class for all classes

Answer(s) : 
d) Base class for all classes

3) What is an HTTP client class in android?

a) httprequest (get/post) and returns response from server
b) Cookies management
c) Authentication management
d) None of the above

Answer(s) : 
a) httprequest (get/post) and returns response from server

4) Fragment in android can be found through

a) findByID()
b) findFragmentByID()
c) getContext.findFragmentByID()
d) FragmentManager.findFragmentByID()

Answer(s) : 
d) FragmentManager.findFragmentByID()

5) What is the lifecycle of foreground activity in Android?

a) onCreate() -> onStart() -> onResume() -> onStop() -> onRestart
b)  onCreate() -> onStart () -> onResume() -> onStop
c) onCreate() -> onStart() -> onResume()
d) None of the above

Answer(s) : 
c) onCreate() - onStart() - onResume()

6) What is AndroidManifest.xml ?

a) It has information about layout in an application.
b) It has information about activities in an application.
c) It has all the information about an application.
d) None of the above.

Answer(s) : 
c) It has all the information about an application.

7) Do all components in Android run on the same thread?

a) It is based on the number of components because activity, service, receiver and content provider will create a thread by default internally.
b) Each application can have one process and one main thread created by default by the system.
c) Process or application by default will not have any thread.
d) None of the above

Answer(s) : 
b) Each application can have one process and one main thread created by default by the system.

8) What is the parent class of Activity?

a) Object
b) Context
c) ActivityGroup
d) ContextThemeWrapper

Answer(s) : 
b) Context

9) You can shut down an Activity by calling its ______ method

a) onDestroy()
b) finishActivity()
c) finish()
d) None of the above

Answer(s) : 
c) finish()

10) Which component is not activated by an Intent?

a) Activity
b) Services
c) ContentProvider
d) BroadcastReceiver

Answer(s) : 
c) ContentProvider