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.
Q 1 - What is an activity in Android?
Activity is a single screen in an application, Activity performs the actions on the screen(UI)
Q 2 -How to move services to foreground in android?
We have to call startFordgroud(int id,Notification notification) to make services as foreground services. When it comes to foreground, it will show a notification.
Q 3 -How to stop the services in android?
We can stop the services by stopSelf() and stopService(), in some cases android will kill the services due to the low memory problem.
Q 4 - What is the difference between content values and cursor in android SQlite?
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.
Q 5 -What is JNI in android?
Java Native interfaces are used to call native/cross applications, which are written in C and C++ languages.
Q 6 - What are the debugging techniques available in android?
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.
Q 7 - What is the package name of HTTP client in android?
org.apache.http.client is the package name of HTTP client.
Q 8 - What is fragment life cycle in android?
Fragment life cycle is as shown below −
onAttach() OnCreate() onCreateView() onActivityCreated() onStart() onResume() onPause() onStop() onDestroyView() onDestroy() onDetach()
Q 9 - What is transient data in android?
Transient data is logical data and we can store application logic in it.
Q 10 - What is an interface in android?
The Interface acts as a bridge between class and the outside world. Interface contains method declaration, nested types, and constants.