Android Programming - The Complete Practice Test Set 3

What are return types of startActivityForResult() in android?


Options are :

  • RESULT_OK
  • RESULT_CANCEL
  • RESULT_CRASH
  • A & B (Correct)
  • B & C

Answer : A & B

What is ANR responding time in android?


Options are :

  • 10 sec
  • 5 sec (Correct)
  • 1 min
  • None of the above

Answer : 5 sec

What is transient data in android?


Options are :

  • Permanent data
  • Secure data
  • Temporary data
  • Logical data (Correct)

Answer : Logical data

Android Programming - The Complete Practice Test Set 1

Why don't we give MIN SDK as 1 in android?


Options are :

  • Android deprecated version (Correct)
  • There is no value for 1
  • Android doesn't allow min version 1
  • None of the above

Answer : Android deprecated version

What are commands needed to create APK in android?


Options are :

  • No need to write any commands
  • Create apk_android in command line
  • Javac,dxtool, aapt tool, jarsigner tool, and zipalign (Correct)
  • None of the above

Answer : Javac,dxtool, aapt tool, jarsigner tool, and zipalign

How do you join two notifications in android?


Options are :

  • Give same id for both notifications
  • Write notification code two times
  • It is not possible in android
  • A & B (Correct)
  • A & C

Answer : A & B

Android Programming - The Complete Practice Test Set 4

What is the main difference between set and list in android?


Options are :

  • Both are same
  • Set can't contain duplicate values
  • List may contain duplicate values
  • B & C (Correct)
  • A & C

Answer : B & C

What is an interface in android?


Options are :

  • Interface acts as a bridge between class and the outside world. (Correct)
  • Interface is a class.
  • Interface is a layout file.
  • None of the above

Answer : Interface acts as a bridge between class and the outside world.

What is anchor view?


Options are :

  • Same as list view
  • provides the information on respective relative positions (Correct)
  • Same as relative layout
  • None of the above

Answer : provides the information on respective relative positions

What is the life cycle of foreground activity in android?


Options are :

  • onCreate() ?> onStart() ?> onResume() ?> onStop() ?> onRestart
  • onCreate() ?> onStart() ?> onResume() ?>onStop()
  • onCreate() ?> onStart() ?> onResume() (Correct)
  • None of the above

Answer : onCreate() ?> onStart() ?> onResume()

Can a class be immutable in android?


Options are :

  • No, it can't
  • Yes, Class can be immutable (Correct)
  • Can't make the class as final class
  • None of the above

Answer : Yes, Class can be immutable

What is a thread in android?


Options are :

  • Same as services
  • Background activity
  • Broadcast Receiver
  • Independent dis-patchable unit is called a thread (Correct)

Answer : Independent dis-patchable unit is called a thread

What are the main components in android?


Options are :

  • Activity (Correct)
  • Services
  • Broadcast Receiver
  • Content provider

Answer : Activity

What is bean class in android?


Options are :

  • A class used to hold states and objects
  • A bean class can be passed from one activity to another. (Correct)
  • A mandatory class in android
  • None of the above

Answer : A bean class can be passed from one activity to another.

What is off-line synchronization in android?


Options are :

  • Synchronization with internet
  • Background synchronization
  • Synchronization without internet (Correct)
  • None of the above

Answer : Synchronization without internet

What is an activity in Android?


Options are :

  • Activity performs the actions on the screen (Correct)
  • Manage the Application content
  • Screen UI
  • None of the above

Answer : Activity performs the actions on the screen

Android Programming - The Complete Practice Test Set 4

What is the life cycle of services in android?


Options are :

  • onCreate()?>onStartCommand()?>onDestory() (Correct)
  • onRecieve()
  • final()
  • Service life cycle is same as activity life cycle.

Answer : onCreate()?>onStartCommand()?>onDestory()

What is broadcast receiver in android?


Options are :

  • It will react on broadcast announcements. (Correct)
  • It will do background functionalities as services.
  • It will pass the data between activities.
  • None of the Above

Answer : It will react on broadcast announcements.

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 (Correct)
  • A & B

Answer : A & C

What is an anonymous class in android?


Options are :

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

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

How many ports are allocated for new emulator?


Options are :

  • 2 (Correct)
  • 0
  • 10
  • None of the above.

Answer : 2

What is the library of Map View in android?


Options are :

  • com.map
  • com.goggle.gogglemaps
  • in.maps
  • com.goggle.android.maps (Correct)

Answer : com.goggle.android.maps

What is fragment in android?


Options are :

  • JSON
  • Peace of Activity (Correct)
  • Layout
  • None of the above

Answer : Peace of Activity

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 (Correct)
  • None of the above

Answer : Normal, dangerous, signature, and signatureOrsystem

What is off-line synchronization in android?


Options are :

  • Synchronization with internet
  • Background synchronization
  • Synchronization without internet (Correct)
  • None of the above

Answer : Synchronization without internet

What is Android?


Options are :

  • Android is a stack of software's for mobility (Correct)
  • Google mobile device name
  • Virtual machine
  • None of the above

Answer : Android is a stack of software's for mobility

What is an activity in Android?


Options are :

  • Activity performs the actions on the screen (Correct)
  • Manage the Application content
  • Screen UI
  • None of the above

Answer : Activity performs the actions on the screen

What is the atomic symbol for Gold?


Options are :

  • onCreate() ?> onStart() ?> onActivityStarted() ?> onResume() ?> onPause() ?> onStop() ?> onActivityDistroy() ?> onDestroy()
  • OnCreate() ?> onStart() ?>onResume() ?> onPause() ?> onStop() ?> onRestart() ?> onDestroy() (Correct)
  • OnCreate() ?> onStart() ?> onPause() ?> onResume() ?> onStop() ?> onDestroy()
  • ?>onResume()

Answer : OnCreate() ?> onStart() ?>onResume() ?> onPause() ?> onStop() ?> onRestart() ?> onDestroy()

Is it possible to have an activity without UI to perform action/actions?


Options are :

  • Not possible
  • Wrong question
  • Yes, it is possible (Correct)
  • None of the above

Answer : Yes, it is possible

How to get a response from an activity in Android?


Options are :

  • startActivityToResult()
  • startActiivtyForResult() (Correct)
  • Bundle()
  • None of the above

Answer : startActiivtyForResult()

Comment / Suggestion Section
Point our Mistakes and Post Your Suggestions