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 LastKnownLocation in android?
To find the last known location of a phone we need to use LastKnownLocation, the syntax is as shown below.
Location location = LocationServices.FusedLocationApi.getLastLocation(mGoogleApiClient);
Q 2 - WHich method is used to find GPS enabled or disabled pro-grammatically in android?
The onProviderDisable() method is used to find whether GPS is enabled or disabled in android pro-grammatically
Q 3 - What is a base adapter in android?
Base Adapter is a common class for any adapter. We can use a base adapter for both listView and spinner. It has some methods as shown below
getView() getList() getItem() getCount()
Q 4 - What is breakpoint in android?
Breaks the execution to find the debug value, It is one of the debugging techniques.
Q 5 - What is DDMS in android?
DDMS provides port forwarding, screen capturing, memory mapping, logcat, calls, SMS etc.
Q 6 - What is log message in android?
The log message is used to debug a program. Some of log messages are shown below
log.d-Debugging log log.i Informative log log.e-Error log log.w-Warning log log.v-verbose log
Q 7 - What is ADB in android?
Android debug bridge is a client and a server modelled tool and acts as a bridge between client and server.
Every emulator or device is allocated by 2 ports based on port availability.
Q 9 - 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 10 - 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 11 - How to fix crash using log cat in android?
Using with log cat, we can find the exception, which has occurred along with the line number. Using of line number, we can find the errors.
Q 12 - What are the functionalities of HTTP Client interface in android?
HTTP Client has the capabilities to manage connections, cookies and Authentication.
Q 13 - What is an HTTP client class in android?
Http request has get and post methods and it returns the response from the servers.
Q 14 - What does httpclient.execute() returns in android?
Httpclient.execute() executes only once and it will return http response from the server or device, Http entity is embedded the body of the Http response.
org.json is the package name of JSON object and JSON array
Q 16 - What is the package name of HTTP client in android?
org.apache.http.client is the package name of HTTP client.
Q 17 - Data can be read from local source XML in android through
Using with XML resource parser, we can read local resource XML in android.
Q 18 - What is the library of Map View in android?
com.google.android.maps is the library of the map view in android. We can access google maps by calling this library.
Q 19 - In which technique, we can refresh the dynamic content in android?
Using with Ajax technology, we can refresh the dynamic data in web pages.
Q 20 - 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 21 - What are the JSON elements in android?
Json elements are Number, string, boolean, null, array, and object
Q 22 - What is the HTTP response error code status in android?
HTTP status code >= 400 means error else success. Status code 404 means page not found
Q 23 - What is the JSON exception in android?
Json exception can be thrown while parsing JSON response from the server.
Q 24 - How to find the JSON element length in android JSON?
Using length(), we can find the number of elements are in JSON.
Q 25 - What is a GCM in android?
Using with google could messaging, we can push the data from the servers to client devices. In short, we can send messages to mobile devices through the cloud(Push Notification).
|Question Number||Answer Key|