This section presents you various set of Mock Tests related to Android. You can download these sample mock tests at your local machine and solve offline at your convenience. Every mock test is supplied with a mock test key to let you verify the final score and grade yourself.
Q 1 -What is ANR in android?
When an Application is not responding ANR will be occur, and it will stop the process or an application
Q 2 - What are the functionalities in asyncTask in android?
AsyncTask needs doInBackground() and remaining methods are optional. As a developer we should need to implement all methods which are given above.
Q 3 - How many threads are there in asyncTask in android?
In Android 3.0, It is having multi threads, but now it is having only one thread.
Q 4 - 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 5 - On which thread broadcast receivers will work in android?
Broadcast Receiver by default runs on Main Thread only.
Q 6 - What is the time limit of broadcast receiver in android?
Broadcast receiver has to do operation within 10 sec or else ANR will occur
Q 7 - How many broadcast receivers are available in android?
sendBroadcast() &miuns; It's normal broadcast.
sendOrderBroadcast() &miuns; It has an order priority
sendStickyBroadcast() &miuns; Intent passed with broadcast for future users.
Q 8 - What is the life cycle of broadcast receivers in android?
Broadcast receiver has only onReceive() method. Broadcast starts from onRecieve() and control comes out from onRecieve().
Q 9 - What is the use of content provider in android?
Content provider is used to share the data between applications
Q 10 - How to access the context in android content provider?
The getContext() method is used in onCreate() method and getApplicationContext() can be used anywhere in an application.
Q 11 - How to upgrade SQlite the database from a lower version to higher version in android SQlite?
In helper class, we can pass the version numbers in incremental order.
Q 12 - 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 13 - 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 14 - How many applications are there in a given task in android?
The task is a collaboration of applications. It contains one or more applications in it
Q 15 - What is sleep mode in android?
CPU will be in sleeping mode and it does not take any commands except radio interface layer and alarm from mobile.
Q 16 - What are the wake locks available in android?
When CPU is on mode, PARTIAL_WAKE_LOCK will be active.
When CPU + bright Screen low is on mode, SCREEN_DIM_WAKE_LOCK will be active.
When CPU + bright Screen High is on mode,SCREEN_BRIGHT_WAKE_LOCK will be active.
When CPU, Screen, bright Screen High is on mode, FULL_WAKE_LOCK will be active.
Q 17 - What is an anonymous class in android?
Anonymous class doesn't have class name but has some functionalities in it.
Q 18 - What is singleton class in android?
There is only an object which can be accessed by all other class.
Q 19 -What is the application class in android?
Application class is the base class for any android application.
Q 20 - Which features are considered while creating android application?
Before creating an application, developers should consider screen size, input configuration, version, and device features
Q 21 -What is the 9 patch tool in android?
We can change bitmap images to 9 sections as four corners, four edges and one axis.
Q 22 -What is JNI in android?
Java Native interfaces are used to call native/cross applications, which are written in C and C++ languages.
Q 23 - Persist data can be stored in Android through
We can store persist data in android in shared preferences, internal/external storage, SQlite, and Network servers.
Q 24 - How to get current location in android?
GPRS and Location provider is used to fetch the current location of a phone as longitude and latitude.
Q 25 -Which permissions are required to get a location in android?
To get a location of a phone, ACCESS_FINE and ACCESS_COARSE permission in manifest file are required. Without these permissions, we can't get the location of a mobile.
|Question Number||Answer Key|