-
1.
What is the name of class used by Intent to store additional information?
Bundle
Extra
Parcelable
DataStore
Answer
-
2.
Which of following is incorrect about LogCat tool?
Each log message has a tag
You can create log in application using Log.v(string,string)
Only component class (Activity,Service..etc) can create log entries
LogCat view is availabe as part of ADT plugin of Eclipse
Answer
-
3.
Which of these is incorrect explanation of android SDK and AVD manager?
The "android" command can be use if "<SDK install folder>/tools" is added to the command path
They are provided from version 1.6 of the SDK. Up to version 1.5 there was an AVD manager but it lacked of SDK management functions
You can create and startup AVD, and on startup you can delete user data up to that point
The development tools can be downloaded from Android SDK and AVD manager are SDK android platform, NDK platform, emulators image and USB drivers for handsets
Answer
-
4.
In order to access member fields in doInbackground method where should we set them ?
In constructor
In onPreExecute
On onProgressUpdate
All of above
Answer
-
5.
What will happen if a task is executed the second time?
An exception will be thrown
The task will be run as normal from the beginning
The execution will be ignored
Answer
-
6.
How many time can a task run?
Just one
Multiple times
Answer
-
7.
Can we create an instance of AsyncTask from a service's process?
Yes
No
Answer
-
8.
What method must be overriden for using AsyncTask ?
doInBackground
onProgressUpdate
onPostExecute
All of above
Answer
-
9.
Can we create an instance of AsyncTask class directly?
Yes
No
Answer
-
10.
By using AsyncTask, do we need to add any custom handler to publish the result to UI thread?
No
Yes
Answer
-
11.
Which of following are good solutions for threads that need to run in long periods of time (up to minutes)
FutureTask
ThreadPoolExecutor
Executor
AsyncTask
Answer
-
12.
Can we declare both software and hardware requirements for an app?
Yes
No
Answer
-
13.
What does the manifest do in addition to declaring the app's components?
Identifies any user permissions the app requires, such as Internet access or read-access to the user's contacts.
Declares the minimum API Level required by the app, based on which APIs the app uses
Declares hardware and software features used or required by the app, such as a camera, bluetooth services, or a multitouch screen.
Declares API libraries the app needs to be linked against (other than the Android framework APIs), such as the Google Maps library
All of above
Answer
-
14.
All broadcast receivers must be regisered in the manifest file
True
False
Answer
-
15.
What is the primary task of the manifest file?
To inform the system about the app's components
To declare the needed permissions to android OS
Answer
-
16.
How does system know that acomponent exists?
Read the manifest file
It will be checked at runtime
Answer
-
17.
From android 5.0 how do you schedule actions?
Using JobScheduler
class
Using Schelduler class
Using JobQueue class
Answer
-
18.
A broadcast receiver is implemented as a subclass of BroadcastReceiver
and each broadcast is delivered as an _______ object
Event
Intent
Object
Answer
-
19.
What can Broadcast receivers do?
Deliver events to the app outside
Respond to system-wide broadcast announcements
Both of them
Answer
-
20.
A service in android application will run on it's own process
True
False
Answer