Android quiz questions

Android interview questions

  • 1.

    What is the name of class used by Intent to store additional information?

    1. Bundle

    2. Extra

    3. Parcelable

    4. DataStore

  • 2.

    Which of following is incorrect about LogCat tool?

    1. Each log message has a tag

    2. You can create log in application using Log.v(string,string)

    3. Only component class (Activity,Service..etc) can create log entries

    4. LogCat view is availabe as part of ADT plugin of Eclipse

  • 3.

    Which of these is incorrect explanation of android SDK and AVD manager?

    1. The "android" command can be use if "<SDK install folder>/tools" is added to the command path

    2. 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

    3. You can create and startup AVD, and on startup you can delete user data up to that point

    4. 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

  • 4.

    In order to access member fields in doInbackground method where should we set them ?

    1. In constructor

    2. In onPreExecute

    3. On onProgressUpdate

    4. All of above

  • 5.

    What will happen if a task is executed the second time?

    1. An exception will be thrown

    2. The task will be run as normal from the beginning 

    3. The execution will be ignored

  • 6.

    How many time can a task run?

    1. Just one

    2. Multiple times

  • 7.

    Can we create an instance of AsyncTask from a service's process?

    1. Yes

    2. No

  • 8.

    What method must be overriden for using AsyncTask ?

    1. doInBackground
    2. onProgressUpdate
    3. onPostExecute
    4. All of above

  • 9.

    Can we create an instance of AsyncTask class directly?

    1. Yes

    2. No

  • 10.

    By using AsyncTask, do we need to add any custom handler to publish the result to UI thread?

    1. No

    2. Yes

  • 11.

    Which of following are good solutions for threads that need to run in long periods of time (up to minutes)

    1. FutureTask

    2. ThreadPoolExecutor

    3. Executor

    4. AsyncTask

  • 12.

    Can we declare both software and hardware requirements for an app?

    1. Yes

    2. No

  • 13.

    What does the manifest do in addition to declaring the app's components?

    1. Identifies any user permissions the app requires, such as Internet access or read-access to the user's contacts.

    2. Declares the minimum API Level required by the app, based on which APIs the app uses

    3. Declares hardware and software features used or required by the app, such as a camera, bluetooth services, or a multitouch screen.

    4. Declares API libraries the app needs to be linked against (other than the Android framework APIs), such as the Google Maps library

    5. All of above

  • 14.

    All broadcast receivers must be regisered in the manifest file

    1. True

    2. False

  • 15.

    What is the primary task of the manifest file?

    1. To inform the system about the app's components

    2. To declare the needed permissions to android OS

  • 16.

    How does system know that acomponent exists?

    1. Read the manifest  file

    2. It will be checked at runtime

  • 17.

    From android 5.0 how do you schedule actions?

    1. Using JobScheduler class

    2. Using Schelduler class

    3. Using JobQueue class

  • 18.

    A broadcast receiver is implemented as a subclass of BroadcastReceiver and each broadcast is delivered as an _______ object

    1. Event

    2. Intent

    3. Object

  • 19.

    What can Broadcast receivers do?

    1. Deliver events to the app outside

    2. Respond to system-wide broadcast announcements

    3. Both of them

  • 20.

    A service in android application will run on it's own process

    1. True

    2. False


© 2017