Android Programming - The Complete Practice Test Set 2

What is the time limit of broadcast receiver in android?


Options are :

  • 10 sec
  • 15 sec
  • 5 sec
  • 1 hour

Answer : 10 sec

How many broadcast receivers are available in android?


Options are :

  • sendIntent()
  • onRecieve()
  • implicitBroadcast()
  • sendBroadcast(),sendOrderBroadcast(),and sendStickyBroadcast().

Answer : sendBroadcast(),sendOrderBroadcast(),and sendStickyBroadcast().

Android Programming - The Complete Practice Test Set 3

What is the life cycle of broadcast receivers in android?


Options are :

  • send intent()
  • onRecieve()
  • implicitBroadcast()
  • sendBroadcast(), sendOrderBroadcast(), and sendStickyBroadcast().

Answer : onRecieve()

What is the use of content provider in android?


Options are :

  • To send the data from an application to another application
  • To store the data in a database
  • To share the data between applications
  • None of the above.

Answer : To share the data between applications

How to access the context in android content provider


Options are :

  • Using getContext() in onCreate()
  • Using intent()
  • Using getApplicationContext() at anywhere in an application
  • A & C
  • A & B

Answer : A & C

Android Programming - The Complete Practice Test Set 1

How to upgrade SQlite the database from a lower version to higher version in android SQlite?


Options are :

  • Using helper Class
  • Using cursor
  • Using intent
  • None of the above

Answer : Using helper Class

What is the difference between content values and cursor in android SQlite?


Options are :

  • Content values are key pair values, which are updated or inserted in the database
  • Cursor is used to store the temporary result.
  • A & B
  • Cursor is used to store data permanently.
  • Content values are used to share the data.

Answer : A & B

How to store heavy structured data in android?


Options are :

  • Shared Preferences
  • Shared Preferences
  • SQlite database
  • Not possible

Answer : SQlite database

Android Programming - The Complete Practice Test Set 4

How many applications are there in a given task in android?


Options are :

  • Two
  • One
  • Many
  • Zero

Answer : Many

What is sleep mode in android?


Options are :

  • Only Radio interface layer and alarm are in active mode
  • Switched off
  • Air plane mode
  • None of the Above

Answer : Only Radio interface layer and alarm are in active mode

What are the wake locks available in android?


Options are :

  • PARTIAL_WAKE_LOCK
  • SCREEN_DIM_WAKE_LOCK
  • SCREEN_BRIGHT_WAKE_LOCK
  • FULL_WAKE_LOCK
  • FULL_WAKE_LOCK

Answer : FULL_WAKE_LOCK

What is an anonymous class in android?


Options are :

  • Interface class
  • A class that does not have a name but have functionalities in it
  • Java class
  • Manifest file

Answer : A class that does not have a name but have functionalities in it

What is singleton class in android?


Options are :

  • A class that can create only one object
  • Anonymous class
  • Java class
  • Manifest file

Answer : A class that can create only one object

What is the application class in android?


Options are :

  • A class that can create only an object
  • Anonymous class
  • Java class
  • Base class for all classes

Answer : Base class for all classes

Which features are considered while creating android application?


Options are :

  • Screen Size
  • Input configuration
  • Platform Version
  • Device features
  • All of above

Answer : All of above

What is the 9 patch tool in android?


Options are :

  • Using with tool, we can redraw images in 9 sections.
  • image extension tool
  • image editable tool
  • Device features

Answer : Using with tool, we can redraw images in 9 sections.

What is JNI in android?


Options are :

  • Java network interface
  • Java interface
  • Image editable tool
  • Java native interface.

Answer : Java native interface.

Android Programming - The Complete Practice Test Set 4

Persist data can be stored in Android through


Options are :

  • Shared Preferences
  • Internal/External storage
  • SQlite
  • Network servers.
  • All of above

Answer : All of above

How to get current location in android?


Options are :

  • Using with GPRS
  • Using location provider
  • A & B
  • SQlite
  • Network servers

Answer : A & B

Which permissions are required to get a location in android?


Options are :

  • ACCESS_FINE and ACCESS_COARSE
  • GPRS permission
  • Internet permission
  • WIFI permission.

Answer : ACCESS_FINE and ACCESS_COARSE

What is fragment in android?


Options are :

  • JSON
  • Peace of Activity
  • Layout
  • None of the above

Answer : Peace of Activity

Fragment in Android can be found through


Options are :

  • findByID()
  • findFragmentByID()
  • getContext.findFragmentByID()
  • FragmentManager.findFragmentByID()

Answer : FragmentManager.findFragmentByID()

How many orientations does android support?


Options are :

  • 4
  • 10
  • 2
  • None of the above

Answer : 4

What is fragment life cycle in android?


Options are :

  • onReceive()
  • onCreate()
  • onAttach()->onCreate() ?> onCreateView() ?> onActivityCreated() ?> onStart() ?> onResume()
  • None of the above

Answer : onAttach()->onCreate() ?> onCreateView() ?> onActivityCreated() ?> onStart() ?> onResume()

What is sandbox in android?


Options are :

  • Each application runs securely in sandbox without interrupting another process
  • Android Box
  • Android development tool kit
  • None of the above

Answer : Each application runs securely in sandbox without interrupting another process

How many levels of securities are there in android?


Options are :

  • App level security and kernel level security
  • Android level security
  • Java level security
  • None of the above

Answer : App level security and kernel level security

How many protection levels are available in the android permission tag?


Options are :

  • There are no permission tags available in android
  • Normal, kernel, application
  • Normal, dangerous, signature, and signatureOrsystem
  • None of the above

Answer : Normal, dangerous, signature, and signatureOrsystem

What is the purpose of super.onCreate() in android?


Options are :

  • To create an activity
  • To create a graphical window for subclass
  • It allows the developers to write the program
  • None of the above

Answer : To create a graphical window for subclass

Is it mandatory to call onCreate() and onStart() in android?


Options are :

  • No, we can write the program without writing onCreate() and onStart()
  • Yes, we should call onCreate() and onStart() to write the program
  • At least we need to call onCreate() once
  • None of the above

Answer : No, we can write the program without writing onCreate() and onStart()

Is it possible activity without UI in android?


Options are :

  • No, it's not possible
  • Yes,it's possible
  • We can't say
  • None of the above

Answer : Yes,it's possible

Comment / Suggestion Section
Point our Mistakes and Post Your Suggestions