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 - Is it possible to have an activity without UI to perform action/actions?
Generally, every activity is having its UI(Layout). But if a developer wants to create an activity without UI, he can do it.
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 - What is broadcast receiver in android?
It is a main component of android. It reacts on the system broadcast announcements, and it acts as a gateway between outside application environment with your application.
Q 4 - How to store heavy structured data in android?
We can store structured data in SQlite database only. SQlite database is very efficient and faster to read and store the data.
Q 5 - What is an anonymous class in android?
Anonymous class doesn't have class name but has some functionalities in it.
Q 6 - What is APK in android?
APK is an android packaging kit. We can pack/zip, our code in apk format to work on Android devices as an application.
Q 7 - What is JSON in android?
JSON is Java Script Object Notation with which we can exchange data between two systems in the connected network.
Q 8 - What is the JSON exception in android?
Json exception can be thrown while parsing JSON response from the server.
Q 9 - How many protection levels are available in the android permission tag?
Android is having four levels of protection in android permission tag. They are normal, dangerous, signature, and signatureOrsystem
Q 10 - What are the main components in android?
The main components in android are Activity, services, Broadcast Receiver and content providers.