1. Which of the following are UI elements that you can use in a window in an Android application?

Answers:

  1. TextBox
  2. TextView
  3. TextField
  4. TextElement
  5. EditText
  6. RichText

2. What is the correct way to fix if checking the status of the GPS_PROVIDER throws SecurityException?

Answers:

  1. request permission for ACCESS_COARSE_LOCATION
  2. request permission for ACCESS_FINE_LOCATION
  3. request permission for INSTALL_LOCATION_PROVIDER
  4. None of the above

3. Which of the following is not Content Provider?

Answers:

  1. Contacts
  2. Contacts
  3. Shared Preferences
  4. MediaStore
  5. Bookmarks
  6. Settings

4. Which of the following statements are correct with regards to signing applications?

a) All applications must be signed.
b) No certificate authority is needed.
c) When releasing application special debug key that is created by the Android SDK build tools can be used.

Answers:

  1. a) and b) are true
  2. a) and c) are true
  3. b) and c) are true
  4. all statements are true

5. What does the following code do?

SensorManager mgr = (SensorManager) getSystemService(SENSOR_SERVICE);
List<Sensor> sensors = mgr.getSensorList(Sensor.TYPE_ALL);
for (Sensor sensor : sensors) {
System.out.println(“”+sensor.getName());
}

Answers:

  1. prints names of all available sensors in device
  2. prints names of all available sensor types in device
  3. prints names of all sensors which are not available
  4. none of above

6. What does the following code do?

try {
String token = GoogleAuthUtil.getToken(this, email, “https://www.googleapis.com/auth/devstorage.read_only”);
System.out.println(token);
} catch (IOException e) {
System.out.println(“IOException”);
} catch (UserRecoverableAuthException e) {
System.out.println(“UserRecoverableAuthException”);
} catch (GoogleAuthException e) {
System.out.println(“GoogleAuthException”);
}

Answers:

  1. prints token
  2. prints IOException
  3. prints UserRecoverableAuthException
  4. prints GoogleAuthException

7. Which of the following is correct to use for data transfer regularly and efficiently, but not instantaneously?

Answers:

  1. AsyncTask
  2. IntentService
  3. Sync adapters
  4. All of these

8. What is the ListActivity class used for?

Answers:

  1. Create a view to display a list of items from a data source.
  2. List all the activities currently running on the Android device.
  3. List all the activites that are installed on the Android device.
  4. List the activities whose IntentFilters match with a particular Intent type.

9. Using a content provider, which of the following operations are able to perform?
a) create
b) read
c) update
d) delete

Answers:

  1. a, b and c
  2. b, c and d
  3. all of these
  4. none of these

10. Which of the following widgets helps to embed images in activities?

Answers:

  1. ImageView
  2. ImageButton
  3. both of above
  4. none of these

11. What is the best way of opening camera as sub-activity?

Answers:

  1. Intent takePictureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); startActivity(takePictureIntent);
  2. Intent takePictureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); if (takePictureIntent.resolveActivity(getPackageManager()) != null) { startActivityForResult(takePictureIntent, 1); }
  3. Intent takePictureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); startActivityForResult(takePictureIntent, 1);
  4. Intent takePictureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); if (takePictureIntent.resolveActivity(getPackageManager()) != null) { startActivityForResult(takePictureIntent, -1); }

12. What is the correct way to restrict app visibility on Google Play to devices that have a camera?

Answers:

  1. <uses-feature android:name=”android.hardware.camera”/>
  2. <uses-feature android:name=”android.hardware.camera” android:required=”true” />
  3. <uses-feature android:name=”android.hardware.camera.front” android:required=”true” />
  4. <uses-permission android:name=”android.permission.CAMERA”/>

13. Which of the following sensors is only hardware-based?

Answers:

  1. linear acceleration sensor
  2. gravity sensor
  3. rotation vector sensor
  4. accelerometer sensor

14. Which of the following formats is not supported in Android?

Answers:

  1. MP4
  2. MPEG
  3. AVI
  4. MIDI

15. Which of the following permissions and configurations must be added in manifest file for implementing GCM Client?

A) com.google.android.c2dm.permission.RECEIVE
B) android.permission.INTERNET
C) android.permission.GET_ACCOUNTS
D) android.permission.WAKE_LOCK
E) applicationPackage + “.permission.C2D_MESSAGE”
F) A receiver for com.google.android.c2dm.intent.RECEIVE, with the category set as applicationPackage. The receiver should require the com.google.android.c2dm.SEND permission

Answers:

  1. A, B, C and D
  2. C, D, E and F
  3. A, B, E and F
  4. all of these

16. Which of the following permissons is needed to perform the network operations through internet?
a) INTERNET
b) ACCESS_NETWORK_STATE

Answers:

  1. a
  2. b
  3. both
  4. none

17. Consider the following snippet of code:

@Override
protected void onStop
{
Super.onStop();
SharedPreferences setting = getSharedPreferences(“MyPrefs”, 0);
SharedPreferences.Editor editor = settings.edit();
editor.putBoolean(“MyBool”, true);

<some more code here>
}

Which of the following should be used <some more code here>?

Answers:

  1. editor.save(); editor.close();
  2. editor.save(); editor.finish();
  3. editor.commit();
  4. editor.save();
  5. editor.close();
  6. editor.finish();

18. What does the following statement define?

It provides query(), insert(), update(), and delete() methods for accessing data from a content provider and invokes identically-named methods on an instance of a concrete content provider.

Answers:

  1. CursorLoader
  2. ContentResolver
  3. ContentProvider
  4. Loader

19. What is the advantage of using AsyncTaskLoader instead of AsyncTask?

Answers:

  1. a bit easier to work with
  2. the possibility easily update progress bar
  3. no comparison, because it implements completely different functionality
  4. less work with the configuration of applicationM

20. What does the following code do?

public boolean isOnline() {
ConnectivityManager connMgr = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);
NetworkInfo networkInfo = connMgr.getActiveNetworkInfo();
return (networkInfo != null && networkInfo.isConnected());
}

Answers:

  1. checking Network connection.
  2. checking only WIFI network connectivity.
  3. checking only Bluetooth data connection.
  4. checking only Ethernet data connection

21. Which of the following statements are correct with regards to running of the Sync Adapter?

A) Running sync adapter in response to a user request.
B) Running sync adapter periodically by setting a period of time to wait between runs, or by running it at certain times of the day, or both.

Answers:

  1. Statement A is true, while Statement B is false.
  2. Statement B is true, while Statement A is false.
  3. Both statements are true.
  4. Both statements are false.

22. Which of the following statements are correct with regards to calling place GoogleAuthUtil.getToken()?
A) call getToken() on the UI thread
B) call getToken() on AsyncTask

Answers:

  1. Statement A is true, while Statement B is false.
  2. Statement B is true, while Statement A is false.
  3. Both statements are true.
  4. Both statements are false.

23. Which of the following protocols are provided by Google for GCM Connection Servers?
A) HTTP
B) XMPP
C) SOAP
D) RMI

Answers:

  1. A and B
  2. A, B, C
  3. C, D
  4. all of these

24. Which of the following 4 classes does not relate to others?

ApplicationInfo, SyncInfo, ActivityInfo, PackageInfo

Answers:

  1. ApplicationInfo
  2. SyncInfo
  3. ActivityInfo
  4. PackageInfo

25. Which of the following are valid ways to deploy an Android application to a device?

Answers:

  • Using the “adb install /path/to/apk” command from the command prompt/terminal, when USB Debugging Mode is enabled in the device.
  • Exporting and signing the package, then browsing it to install.
  • Launching the application from an IDE, when USB Debugging Mode is enabled in the device.
  • All of these.

26. Which of the following classes is not used in working with database?

Answers:

  1. SQLiteOpenHelper
  2. SQLiteDatabase
  3. ContentProvider
  4. DatabaseHelper

27. Consider the XML fragment below, which is taken from one of the files in an Android project:
<MyElement xmlns:”http://schemas.androd.com/apk/res/android”
android:layout_width = “fill_parent”
android:layout_height = “fill_parent”
android:text = “Some Text”>
</MyElement>
Which of the following are true about the XML fragment above?

Answers:

  1. It is taken from the manifest XML file of the Android project.
  2. It is taken from an XML file used to define a view.
  3. It is taken from the package file (.apk) of the Android project.
  4. The xmlns: attribute is a compulsory attribute.
  5. If this is not the outer most tag in the XML file then it need not contain the xmlns: attribute.
  6. MyElement should be the name of a class derived, directly or indirectly, from the View class.

28. Which of the following statement is correct regarding StrictMode?

Answers:

  1. StrictMode detects improper layouts
  2. StrictMode detects operation which blocks UI
  3. StrictMode detects the speed of the connection
  4. All of the above

29. Consider the code snippet below:
MediaPlayer mp = new MediaPlayer();

mp.setDataSource(PATH_TO_FILE);

<Some code here>

mp.start();
Which of the following should be placed at <Some code here>?

Answers:

  1. mp.prepare();
  2. mp.prepareAsync();
  3. mp.loadMedia();
  4. mp.loadSource();
  5. mp.loadSource(); mp.prepare();
  6. No code is required at <Some code here> to start playback.

30. Consider the code snippet below:

public class MyReceiver extends PhoneStateIntentReceiver

{

@Override

public void onReceiveIntent(Context context, Intent intent)

{

if (intent.action == Intent.CALL_ACTION)

{

}

}

}

Assuming that notifyPhoneCallState has been called to enable MyReceiver to receive notifications about the phone call states, in which of the following cases will the code in get executed?

Answers:

  1. When the device receives an incoming phone call.
  2. When an outgoing phone call is initiated on the device.
  3. When the user presses the CALL button on the device.
  4. The code in will never get executed.

31. Which of the following are true about enabling/disabling menu items from an Activity class?

Answers:

  1. onCreateOptionsMenu can be used to enable/disable some menu items in an Android application.
  2. onPrepareOptionsMenu can be used to enable/disable some menu items in an Android application.
  3. onShowOptionsMenu can be used to enable/disable some menu items in an Android application.
  4. The menu items in an Android application cannot be disabled.

32. Which of the following should be used to save the unsaved data and release resources being used by an Android application?

Answers:

  1. Activity.onStop()
  2. Activity.onPause()
  3. Activity.onDestroy()
  4. Activity.onShutdown()
  5. Activity.onFreeze()

33. Which of the following statements are correct with regards to publishing updates of apps on Google Play?

Answers:

  1. The android:versionCode attribute in the manifest file must be incremented and the APK file must be signed with the same private key.
  2. The android:versionCode attribute in the manifest file must be same and the APK file must be signed with the same private key.
  3. The android:versionCode attribute in the manifest file must be incremented and the APK file must be signed with the new private key.
  4. The android:versionCode attribute in the manifest file must be same and the APK file must be signed with the new private key.

34. Which of the following would you have to include in your project to use the SimpleAdapter class?

Answers:

  1. import android.content;
  2. import android.widget;
  3. import android.database;
  4. import android.database.sqlite;
  5. import android.util;

35. Which of the following is/are appropriate for saving the state of an Android application?

Answers:

  1. Activity.onFreeze()
  2. Activity.onPause()
  3. Activity.onStop()
  4. Activity.onDestroy()

36. Which of the following is the parent class for the main application class in an Android application that has a user interface?

Answers:

  1. MIDLet
  2. AndroidApp
  3. Activity
  4. AppLet
  5. Application

37. Which of the following can be used to bind data from an SQL database to a ListView in an Android application?

Answers:

  1. SimpleCursor
  2. SimpleCursorAdapter
  3. SimpleAdapter
  4. SQLiteCursor
  5. SQLLiteAdapter

38. Consider the code snippet below:

MediaPlayer mp = new MediaPlayer();

mp.setDataSource(PATH_TO_FILE);

<Some code here>

mp.start();

Which of the following should be placed at <Some code here>?

Answers:

  1. mp.prepare();
  2. mp.prepareAsync();
  3. mp.loadMedia();
  4. mp.loadSource();
  5. mp.loadSource(); mp.prepare();
  6. No code is required at <Some code here> to start playback.

39. Which of the following packages provide the classes required to manage the Bluetooth functionality on an Android device?

Answers:

  1. android.hardware
  2. android.bluetooth
  3. android.bluez
  4. org.bluez

40. Which of the following can be accomplished by using the TelephoneNumberUtil class?

Answers:

  1. Save a phone number to the contacts in the phone device.
  2. Retrieve a phone number from the contacts in the phone device.
  3. Delete a phone number from the contacts in the phone device.
  4. Format an international telephone number.
  5. Setting and retrieving the call forwarding phone number on the phone device.

41. Which of the following is the best way to request user permission if an Android application receives location updates from both NETWORK_PROVIDER and GPS_PROVIDER?

Answers:

  1. Adding this line to the Android manifest file: <uses-permission android:name=”android.permission.ACCESS_FINE_LOCATION” />
  2. Adding these two lines to the Android manifest file: <uses-permission android:name=”android.permission.ACCESS_FINE_LOCATION” /> <uses-permission android:name=”android.permission.ACCESS_COARSE_LOCATION” />
  3. Adding this line to the Android manifest file: <uses-permission android:name=”android.permission.ACCESS_FINE_LOCATION” />
  4. Adding this line to the Android manifest file: <uses-permission android:name=”android.permission.CONTROL_LOCATION_UPDATES” />

42. Which of the following are true about PhoneStateIntentReceiver.notifyPhoneCallState?

Answers:

  1. notifyPhoneCallState has to be called if your application wishes to receive a notification about an incoming phone call.
  2. notifyPhoneCallState is a call back function that is called when the call state changes.
  3. notifyPhoneCallState is called to initiate a call from the device.
  4. notifyPhoneCallState is used to send notifications about call states.
  5. notifyPhoneCallState gets called when the device receives an incoming phone call.

43. Which of the following statements are correct with regards to Content Providers?

A) A content provider allows applications to access data.
B) A content provider must be declared in the AndroidManifest.xml file.

Answers:

  1. Statement A is true, while Statement B is false.
  2. Statement B is true, while Statement A is false.
  3. Both statements are true.
  4. Both statements are false.

44. Which of the following functions will return all available Content Providers?

Answers:

  1. List<ProviderInfo> returnList = new ArrayList<ProvderInfo>(); for (PackageInfo pack : getPackageManager().getInstalledPackages(PackageManager.GET_PROVIDERS)) { ProviderInfo[] providers = pack.providers; if (providers != null) { returnList.addAll(Arrays.asList(providers)); } } return returnList;
  2. return getContext().getPackageManager().queryContentProviders(“com.google”, Process.myUid(), 0);
  3. List<ActivityInfo> returnList = new ArrayList<ActivityInfo>(); for (PackageInfo pack : getPackageManager().getInstalledPackages(PackageManager.GET_RECEIVERS)) { ActivityInfo[] providers = pack.receivers; if (providers != null) { returnList.addAll(Arrays.asList(providers)); } } return returnList;
  4. None of these.

45. What is the purpose of the ContentProvider class?

Answers:

  1. To play rich media content files.
  2. To create and publish rich media files.
  3. To share data between Android applications.
  4. To access the global information about an application environment.
  5. To maintain global application state.

46. Which of the following are true?

Answers:

  1. Both startActivity and startSubActivity start an activity synchronously.
  2. Both startActivity and startActivityForResults start an activity asynchronously.
  3. startActivity is an asynchronous call, but startSubActivity is synchronous.
  4. startActivity is a synchronous call, but startSubActivity is asynchronous.

47. Which of the following is the immediate base class for Activity and Service classes?

Answers:

  1. Application
  2. ApplicationContext
  3. Context
  4. Component
  5. Object

48. Which of the following are classes that can be used to handle the Bluetooth functionality on a device?

Answers:

  1. Adapte
  2. Manage
  3. Matche
  4. BluetoothAdapte

49. How many expansion files can an APK file have? Select all correct options.

Answers:

  1. one
  2. two
  3. three
  4. four

50. Which of the following are Android build modes?

Answers:

  1. Debug mode
  2. Release mode
  3. Production mode
  4. Development mode

51. What is “Android-dx”?

Answers:

  1. A command line tool to create Android project files.
  2. A framework to create unit tests for Android projects.
  3. A resource editor to create user interface for Android applications.
  4. A tool to generate Android byte code from .class files.
  5. An emulator to execute and debug Android projects.

52. Consider the XML fragment below, which is taken from one of the files in an Android project:

<MyElement xmlns:”http://schemas.androd.com/apk/res/android”

android:layout_width = “fill_parent”

android:layout_height = “fill_parent”

android:text = “Some Text”>

</MyElement>

Which of the following are true about the XML fragment above?

Answers:

  1. It is taken from the manifest xml file of the Android project.
  2. It is taken from an XML file used to define a view.
  3. It is taken from the package file (.apk) of the Android project.
  4. The xmlns: attribute is a compulsory attribute.
  5. If this is not the outer most tag in the XML file then it need not contain the xmlns: attribute.
  6. MyElement should be the name of a class derived, directly or indirectly, from the View class.

53. Which of the following fields of the Message class should be used to store custom message codes about the Message?

Answers:

  1. tag
  2. what
  3. arg1
  4. arg2
  5. userData

54. Suppose Screen1 is the main screen of an Android application MyAndroid. Now if another screen, Screen2 has to be opened from Screen1, then which of the following are true?

Answers:

  1. Screen2 has to be a part of MyAndroid.
  2. Screen2 can exist in any other Android application installed on the device.
  3. Screen2 will always be launched asynchronously.
  4. Screen2 can be launched synchronously.
  5. Screen2 can return a result code to Screen1 if launched with startActivity.
  6. Screen2 can return a result code to Screen1 if launched with startActivityForResult.

55. Select the two function calls that can be used to start a Service from your Android application?

Answers:

  1. bindService
  2. startService
  3. runService
  4. startActivity

56. Which of the following Integrated Development Environments can be used for developing software applications for the Android platform?

Answers:

  1. Android IDE
  2. Eclipse
  3. Visual Studio 2005
  4. Visual Studio 2008

57. Which of the following can you use to display an HTML web page in an Android application?

Answers:

  1. WebBrowser
  2. BrowserView
  3. WebView
  4. Browser
  5. HtmlView

58. Consider the following snippet of code:
<font size =2>
@Override
protected void onStop
{
Super.onStop();
SharedPreferences setting = getSharedPreferences(“MyPrefs”, 0);
SharedPreferences.Editor editor = settings.edit();
editor.putBoolean(“MyBool”, true);

<some more code here>
}

Which of the following should be used <some more code here>?
</font

Answers:

  1. editor.save(); editor.close();
  2. editor.save(); editor.finish();
  3. editor.commit();
  4. editor.save();
  5. editor.close();
  6. editor.finish();

59. What is “Android-Positron”?

Answers:

  1. A command line tool to create Android project files.
  2. A framework to create unit tests for Android projects.
  3. A resource editor to create user interface for Android applications.
  4. A tool to generate Android byte code from .class files.
  5. An emulator to execute and debug Android projects.

60. Which of the following can you use to add items to the screen menu?

Answers:

  1. Activity.onCreate
  2. Activity.onCreateOptionsMenu
  3. Constructor of the Activity class.
  4. Activity.onCreateMenu
  5. Activity.onStart
  6. Activity.onPrepareOptionsMenu

61. Which of the following is not a life-cycle methods of an Activity that can be implemented to perform various operations during the lifetime of an Activity?

Answers:

  1. onCreate
  2. onInit
  3. onCompleteThaw
  4. onRestart

62. What is the interface Spannable used for?

Answers:

  1. Manipulate text that can span across multiple pages.
  2. Manipulate text that can span across multiple TextView windows.
  3. This is the interface for text to which markup objects can be attached and detached.
  4. String parsing.

63. What is correct regarding GCM – Google Cloud Messaging service?

Answers:

  1. It does server to device communication.
  2. It does device to server communication.
  3. It does device to server communication and vice versa.
  4. It does device to device communication.

64. Which of the following procedures will get the package name of an APK file?

Answers:

  1. Looking for the package attribute’s value of the <manifest> element in the manifest file.
  2. Executing the command, “pm list packages -f”, in the ADB shell.
  3. Programmatically, using PackageManager in an installed Android app.
  4. Using the AAPT platform tool, “aapt dump badging apkName.apk”.

65. What is the maximum supported file size for a single APK file (excluding expansion packages) in the Google Play Store?
Answers:

  1. 50MB
  2. 2GB
  3. 30MB
  4. unlimited

66. What is Android?
Answers:

  1. A new programming language that can be used to develop applications for mobile devices.
  2. A new IDE that can be used to develop applications for mobile devices.
  3. A software stack for mobile devices that includes an operating system, middleware and key applications.
  4. A new mobile device developed by Google.

67. Which of the following can be used to navigate between screens of different Android applications?

Answers:

  1. Binde
  2. Flow
  3. Navigate
  4. Intent
  5. ApplicationContext

68. Which of the following are valid features that you can request using requestWindowFeature?

Answers:

  1. FEATURE_NO_TITLE
  2. FEATURE_NO_ICON
  3. FEATURE_RIGHT_ICON
  4. FEATURE_NO_MENU
  5. FEATURE_TRANSPARENT_WINDOW

69. Which of the following are true?

Answers:

  1. startActivity and startActivityForResult can both be used to start a new activity from your activity class.
  2. Only startActivityForResult can be used to launch a new activity from your activity class.
  3. startActivity(myIntent); and startActivityForResult(myIntent, -1); have the same result.
  4. startActivity(myIntent); and startActivityForResult(myIntent, 0); have the same result.
  5. When startActivity is used to launch a new activity from your activity class then your activity class gets notified when the new activity is completed.
  6. When startActivityForResult is used to launch a new activity from your activity class then your activity class gets notified when the new activity is completed.

70. Which of the following can you use to display a progress bar in an Android application?

Answers:

  1. ProgressBar
  2. ProgressDialog
  3. ProgressItem

71. Which of the following can be used to handle commands from menu items in an Android application?

Answers:

  1. commandAction
  2. onMenuItem
  3. onMenuItemSelected
  4. onMenuItemClicked
  5. onOptionsItemSelected

72. Fill in the blank:

Once an app is published, the ________ cannot be changed. It should be unique for each APK.

Answers:

  1. private key
  2. package name
  3. main activity
  4. APK file name

73. Which of the following attributes in the manifest file defines version information of an application for the Google Play Store (as opposed to defining version information for display to users)?

Answers:

  1. android:versionCode
  2. android:versionName
  3. android:targetSdkVersion
  4. android:maxSdkVersion

74. Which of the following are true about Intent.CALL_ACTION and Intent.DIAL_ACTION?

Answers:

  1. Both of them are used to dial a phone number on the device.
  2. Intent.action == Intent.CALL_ACTION is true when a phone call is received on the device.
  3. Intent.action = Intent.CALL_ACTION is used when a phone number is to be dialled without showing a UI on the device.
  4. Intent.action = Intent.DIAL_ACTION is used when a phone number is to be dialled without showing a UI on the device.
  5. Intent.action = Intent.CALL_ACTION is used when a phone number is to be dialled without the user having to explicitly initiate the call.
  6. Intent.action = Intent.DIAL_ACTION is used when a phone number is to be dialled without the user having to explicitly initiate the call.

75. Suppose MyView is a class derived from View and mView is a variable of type MyView. Which of the following should be used to display mView when the Android application is started?

Answers:

  1. Call setCurrentView(mView) in the startApp() of the main application class.
  2. Call setContentView(mView) in the startApp() of the main application class.
  3. Call setContentView(mView) in the onStart() of the main application class.
  4. Call setContentView(mView) in the onCreate() of the main application class.

76. Which of the following programming languages can be used to develop software applications for the Android platform?

Answers:

  1. Java
  2. C# with .NET Compact Framework for mobile devices.
  3. C programming language.
  4. Android programming language.

77. Which of the following would you have to include in your project to use the APIs and classes required to access the camera on the mobile device?

Answers:

  1. import android.drivers;
  2. import android.hardware.camera;
  3. import android.camera;
  4. import android.util;
  5. import android.hardware;

78. What is «Android-dx»?

Answers:

  1. A command line tool to create Android project files.
  2. A framework to create unit tests for Android projects.
  3. A resource editor to create user interface for Android applications.
  4. A tool to generate Android byte code from .class files.
  5. An emulator to execute and debug Android projects.

79. What is “Android-activityCreator”?

Answers:

  1. A command line tool to create Android project files.
  2. A framework to create unit tests for Android projects.
  3. A resource editor to create user interface for Android applications.
  4. A tool to generate Android byte code from .class files.
  5. An emulator to execute and debug Android projects.

80. What is the maximum supported size for a single expansion file in the Google Play Store?

Answers:

  1. 50MB
  2. 2GB
  3. 30MB
  4. unlimited

81. Which of the following tools can be used to reduce apk package size?

Answers:

  1. lint
  2. ProGuard
  3. zipalign
  4. etc1tool

82. What is «Android-activityCreator»?

Answers:

  1. A command line tool to create Android project files.
  2. A framework to create unit tests for Android projects.
  3. A resource editor to create user interface for Android applications.
  4. A tool to generate Android byte code from .class files.
  5. An emulator to execute and debug Android projects.

83. What is «Android-Positron»?

Answers:

  1. A command line tool to create Android project files.
  2. A framework to create unit tests for Android projects.
  3. A resource editor to create user interface for Android applications.
  4. A tool to generate Android byte code from .class files.
  5. An emulator to execute and debug Android projects.

84. ____ makes appropriate list of application data for the other applications

Answers:

  1. service provider
  2. content provider
  3. application provider
  4. resource

85. The simplest widget is the label, referred to in Android as a ____________

Answers:

  1. TextView
  2. grid view
  3. lableview
  4. none of these

86. Which of the following 4 classes does not relate to other?
SQLiteOpenHelper, SQLiteDatabase, Cursor, ContentProvider

Answers:

  1. SQLiteOpenHelper
  2. SQLiteDatabase
  3. Cursor
  4. ContentProvider

87. What is correct regarding GCM — Google Cloud Messaging service?

Answers:

  1. It does server to device communication.
  2. It does device to server communication.
  3. It does device to server communication and vice versa.
  4. It does device to device communication.

88. What is Google Cloud Messaging?

Answers:

  1. A service that can be used to send messages to Android devices using Google’s cloud platform.
  2. A data format used for accessing Google APIs.
  3. A command and control interface for controlling servers from within an Android application.
  4. None of the above

89. Which of the following is a tool used for profiling the performance of Android apps?

Answers:

  1. Pixel Perfect
  2. Hierarchy Viewer
  3. Genymotion
  4. Traceview

90. How could using Guava in an Android application cause problems at build time in particular?

Answers:

  1. The libraries are not supported by the Gradle build process.
  2. The libraries are large and can cause the compiler to exceed the 65k method limit imposed by Java 7 and below.
  3. The libraries must be compiled separately before the build process will complete.
  4. They are deprecated, Google no longer support them so many of the methods that they contain will not compile.

91. In the context of the Android OS, what is the GC?

Answers:

  1. A Global Constants file.
  2. Google Cloud service.
  3. The libraries must be compiled separately before the build process will complete.
  4. Part of the Dalvik VM that is responsible for clearing and reallocating unused memory when it is no longer required or when higher priority services or applications require it.
  5. None of the above

92. What is the largest size of a texture that can be loaded within an Android application?

Answers:

  1. 512*512 in all cases..
  2. 2048*2048 in all cases.
  3. The value is hardware-dependent, so should be referenced by calling this.getLayoutParams() post Gingerbread, and MATCH_PARENT directly in previous releases.
  4. The value is hardware-dependent, so should be referenced by calling Canvas.getMaximumBitmapWidth()/Canvas.getMaximumBitmapHeight() post ICS, and GL_MAX_TEXTURE_SIZE directly in previous releases.

93. Which of the following is true when an Android device is rotated?

Answers:

  1. The Activity is destroyed and recreated.
  2. The Activity is paused and resumed.
  3. The Activity remains active, and the LayoutParams of its contents are provided with an alternative dimensions and values for the new orientation.
  4. The Activity remains active, and the width of the Window is altered to match the new width of the display.

94. What feature of the Google Play Store allows developers to release pre-production builds to testers?

Answers:

  1. Google Cloud Messaging upstream communication.
  2. Crashlytics beta deployment.
  3. Google Play Alpha and Beta deployment channels.
  4. TestFlight

95. What is the purpose of the AppCompat library?

Answers:

  1. It allows the ActionBar UI pattern to be used on older versions of Android.
  2. It allows the app to share content with other apps via the share intent.
  3. It allows for the developer to internationalize their app.
  4. It allows the SnackBar UI to be used on newer versions of Android.

96. Which of the following enables you to use Java 8 features when building apps for Android?

Answers:

  1. retrofit
  2. lint
  3. retrolambda
  4. spoon

97. Which of the following will cause a Force Close event?

Answers:

  1. An unhandled null pointer exception.
  2. An unhandled invalid parser exception.
  3. retrolambda
  4. Attempting a network call without the correct permissins, outside of a Try/Catch statement.
  5. None of the above

98. Which exception is thrown when an image exceeds the maximum allocated size in memory?

Answers:

  1. InvalidStateException
  2. UnhandledException
  3. NullPointerException
  4. OutOfMemoryException

99. What are the two types of Intent in Android?

Answers:

  1. Bad and Good
  2. Implicit and Explicit
  3. Explicit and Restricted
  4. Implicit and System

100. Which feature of the Java build process allows for Android projects with more than 65k method calls?

Answers:

  1. The Gradle build process
  2. Multidexing
  3. Proguard/Dexguard
  4. The Android Run Time (ART)

101. What is Lint?

Answers:

  1. A static code analysis tool that checks code for bugs, optimisation opportunities, common coding errors and other patterns indicating that the code could be improved.
  2. A runtime analysis tool that checks code for bugs, optimisation opportunities, common coding errors and other patterns indicating that the code could be improved.
  3. The Android layout initializer object.
  4. A low-level interface for accessing the raw header and body of a network communication packet.

102. Which is the correct file in which you should request permissions that an app will use?

Answers:

  1. In build.gradle for the module.
  2. In build.gradle for the project.
  3. The Android layout initializer object.
  4. In AndroidManifest.xml.
  5. In settings.gradle.

103. Which of the following is considered best practice according to Google’s Android Development documentation?

Answers:

  1. Use Activities wherever possible, Fragments should only be used when supporting older devices.
  2. Use Fragments whenever possible, Activities should only be used where a FragmentManager and Fragment cannot do the job required.
  3. Use Activities when developing graphically-intensive apps, use Fragments primarily for text-based content.
  4. Use Activities for devices with a smaller form factor, use Fragments for tablet and phablet devices.

104. What is Robolectric?

Answers:

  1. An Android unit testing framework.
  2. An Android test automation framework.
  3. The name given to a specific release version of the Android OS.
  4. An open source, free Java implementation, upon which Android is based

105. What must be done after a TypeArray is no longer needed?

Answers:

  1. The invalidate() method must be called in order to refresh the contents of the object.
  2. The recycle() method must be manually called in order to notify the system that the object is no longer using the memory allocated to it.
  3. The onDestroy() method must be manually called in order to notify the system that the object is no longer using the memory allocated to it.
  4. The keepalive() method must be called in order to notify the system that the object is still being used and to prevent GC from clearing it.

106. What was Project Butter?

Answers:

  1. An internal Google Android team initiative intended to increase security of apps on the platform by removing commonly made mistakes or planks from encryption libraries.
  2. An AOSP initiative aimed at reducing the influence that Google has on the open-source platform.
  3. An internal Google Android team initiative intended to reduce visual stuttering or jank, and UI performance across the platform.
  4. An AOSP initiative aimed at making APIs easier to understand by the new developers, on order to reduce the instability found in some poorly designed apps.

107. Within the context of Android resource definitions, what do ‘sw600’ and ‘w800’ mean?

Answers:

  1. sw600 resources are referenced when the screen width exceeds 600dp in width, w800 resources are referenced when the screen width is exactly 800dp.
  2. sw600 resources are referenced when software rendering is enabled, w800 resources are referenced when WiFi is enabled.
  3. sw600 resources are referenced when the versionCode is 600 and the device is of small form factor, w800 resources are referenced when the versionCode is 800 and the device is of wide form factor.
  4. sw600 resources are referenced when the screen width is smaller than 600dp in width, w800 resources are referenced when the screen width is greater than 800dp.

108. What is Retrofit?

Answers:

  1. A collection of libraries that allows older versions on Android to support the latest APIs and libraries released with newer versions of the platform.
  2. A type-safe client for consuming RESTful APIs in Android and Java in general.
  3. A competing operating system from Apple.
  4. The name given to Google’s integrated fitness and activity tracking API available in recent version of Android.

109. What is the difference between a Broadcast Receiver and an Intent Filter?

Answers:

  1. A Broadcast Receiver allows an app to register to be notified upon system or application events, an Intent Filter specifies which Intents an app can receive.
  2. A Broadcast Receiver allows an app to receive video streams from live media sources, an Intent Filter determines which URLs are supported.
  3. A Broadcast Receiver is a component of the TelephonyManager that determines the cellular network that the device can connect to, an Intent Filter removes noise from telephone call audio.
  4. A Broadcast Receiver is a server-side endpoint that an app can communicate with, an Intent Filter determines which Android IDs can access the endpoint.

110. In which situation is it acceptable to make network calls on the UI thread?

Answers:

  1. Where information is held within a dynamic view.
  2. Network calls should always be executed on the main UI thread
  3. Where asynchronous data calls are required.
  4. Network calls should never be on the main UI thread.

111. Which of the following is the correct way to request permission to allow an app feature to access the internet?

Answers:

  1. <uses-feature android:name=»android.permission.INTERNET»/>
  2. <uses-permission android:name=»android.permission.INTERNAL_SYSTEM_WINDOW»/>
  3. <uses-permission android:name=»android.permission.INTERNET»/>
  4. <uses-permission android:feature=»android.permission.INTERNET»/>

112. Where should layouts be defined wherever possible?

Answers:

  1. In XML
  2. In Java
  3. In HTML
  4. In JSON

113. In the context of Android development tools, what does DDMS stand for?

Answers:

  1. Dalvik Debug Monitor Server
  2. Download Debugging Master System
  3. Dalvik Drive Monitor Server
  4. Dalvik Debug Measure Service

114.When does ANR occur?

Answers:

  1. When a network thread pauses for more than a minute.
  2. When there has been no response to a system event within 5 seconds.
  3. When there has been no response to user input event within 5 seconds.
  4. When the app is selected from within the app launcher, but is not installed.

115.When defining a View within an XML layout, which two attributes are always required?

Answers:

  1. Width and Height
  2. LayoutSum and LayoutWeight
  3. Style and LayoutWeight
  4. Height and Orientation

116.What is an Intent Filter?

Answers:

  1. Provides the OS with the data types that an application can receive from an Intent triggered elsewhere.
  2. Filters the media types shown in an instance of the MediaStore.
  3. Filters a defined string and removes characters of the supplied type.
  4. Provides the OS with a list of users allowed to share content from an app.

117.What is the purpose of Volley?

Answers:

  1. A type-safe client for consuming RESTful APIs in Android and Java in general.
  2. A convenience library that makes network calls easier and faster.
  3. An Android unit testing framework.
  4. An analytics tool that can shed light on parts of an app’s UI that are used most/least.

118.What is Guava?

Answers:

  1. A hybrid web framework used for developing cross-platform apps for Windows Phone, iOS and Android.
  2. An open-source project consisting of common libraries for Java, maintained and primarily developed by Google.
  3. A library that makes it easy for developers to integrate RESTful APIs using industry-standard encryption techniques.
  4. An OpenGL graphics library aimed specifically at Android devices.

119.What does ANR stand for?

Answers:

  1. Application Not Recognised
  2. Application Not Responding
  3. Android Network Resource
  4. Asynchronous Network Response

120.Which of the following is true?

Answers:

  1. Fragments are top-level classes that can contain and manage Activities.
  2. Activities are top-level classes that can contain and manage Fragments.
  3. Fragment is the superclass for UI elements such as Buttons, EditText boxes and ImageViews.
  4. A Fragment is a data bundle that contains information that an Activity requires in order to be drawn to the display.

121.What is a RemoteView for?

Answers:

  1. It defines a view hierarchy that can be displayed in another process, such as a rich notification layout or home screen widget.
  2. It defines an inputstream that can display a remote device such as a hardware camera.
  3. It allows apps to interact with the Google Cast API.
  4. It is a base class that allows your app to send a limited set of control commands and serve as an Android TV remote control.

122.Which of the following statements are true with regard to an AsyncTask class.

Answers:

  1. AsyncTasks are executed serially on a single background thread on all versions of Android.
  2. AsyncTasks execute on a single thread by default from Eclair to Ice Cream Sandwich, and default to thread pool from Jellybean onwards unless programmatically forced to use a single thread. The number of which is restricted only by available system memory available.
  3. AsyncTasks are executed on parallel threads in all cases, but the maximum number of concurrent instances is restricted to 8 up until KitKat.
  4. AsyncTasks execute on a single thread by default from Cupcake to Donut, and default to a single thread from Honeycomb onwards unless forced to use a thread pool.

123.Which of the following data types AIDL has support?

Answers:

  1. string
  2. charSequence
  3. list
  4. map
  5. All of the above

124.Which of the following common design patterns use in Android?
public int pxToDp(int px) {
DisplayMetrics displayMetrics = getContext().getResources().getDisplayMetrics();
int dp = Math.round(px / (displayMetrics.xdpi / DisplayMetrics.DENSITY_DEFAULT));
return dp;
}
public int dpToPx(int dp) {
DisplayMetrics displayMetrics = getContext().getResources().getDisplayMetrics();
int px = Math.round(dp * (displayMetrics.xdpi / DisplayMetrics.DENSITY_DEFAULT));
return px;

Answers:

  1. pxToDp() converts pixel into screen size value, and dpToPx() works via versa
  2. pxToDp() converts pixel into screen status value, and dpToPx() works via versa
  3. pxToDp() converts pixel into window DPI value, and dpToPx() works via versa
  4. pxToDp() converts pixel into activity screen size value, and dpToPx() works via versa

125.How to show option menu using the following source on Samsung phone but cannot see it. How to fix it?
try {
ViewConfiguration config = ViewConfiguration.get(this);
Field menuKeyField = ViewConfiguration.class
.getDeclaredField(«sHasPermanentMenuKey»);
if (menuKeyField != null) {
menuKeyField.setAccessible(true);
menuKeyField.setBoolean(config, false);
}
} catch (Exception e) {
e.printStackTrace();
}

Answers:

  1. startActivity(new Intent(Settings.ACTION_SETTINGS));
    startActivity(new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS));
    startActivity(new Intent(Settings.ACTION_AIRPLANE_MODE_SETTINGS));
    startActivity(new Intent(Settings.ACTION_BLUETOOTH_SETTINGS));
  2. -AndroidManifest.xml
    <uses-permission android:name=»android.permission.ACCESS_FINE_LOCATION» />
    <uses-permission android:name=»android.permission.ACCESS_COARSE_LOCATION» />
    <uses-permission android:name=»android.permission. WRITE_SECURE_SETTINGS » />
  3. None of the above

126.What does A() function do?
private void A() {
B(getActivity(), «com.app.package.here»);
}
public void B(Context context, String packageN) {
Intent i = context.getPackageManager().getLaunchIntentForPackage(packageN);
if (i == null) {
i.addCategory(Intent.CATEGORY_LAUNCHER);
context.startActivity(i);
} else {
try {
context.startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(«market://details?id=» + packageN)));
}
catch (android.content.ActivityNotFoundException anfe) {
context.startActivity(new Intent(Intent.ACTION_VIEW,
Uri.parse(«http://play.google.com/store/apps/details?id=» + packageN)));
}
}

Answers:

  1. Load application named as “com.app.package.here” and prepare for the execution
  2. Launch other app named as “com.app.package.here”
  3. Creates child process named as “com.app.package.here”
  4. parent process named as “com.app.package.here”

127.Going to check network connection with below source code. What can be required to make it work?
public boolean isOnline() {
ConnectivityManager cm = (ConnectivityManager)
getSystemService(Context.CONNECTIVITY_SERVICE);
NetworkInfo netInfo = cm.getActiveNetworkInfo();
if (netInfo != null && netInfo.isConnectedOrConnecting()) return true;
return false;

}

Answers:

  1. android.permission.ACCESS_NETWORK_STATE
  2. android.permission.ACCESS_NETWORK_CONNECTION
  3. android.permission.INTERNET
  4. android.permission.ACCESS_WIFI_STATE

128.Which of the following mechanisms Android has support for data storing and sharing?
public boolean isOnline() {
ConnectivityManager cm = (ConnectivityManager)
getSystemService(Context.CONNECTIVITY_SERVICE);
NetworkInfo netInfo = cm.getActiveNetworkInfo();
if (netInfo != null && netInfo.isConnectedOrConnecting()) return true;
return false;

}

Answers:

  1. Saving Activity State
  2. Data Providers
  3. Network Connection
  4. Shared Preferences

129.Which of the following are possible states of a process?

Answers:

  1. Visible Activity
  2. Foreground Activity
  3. Background Activity
  4. Empty Process
  5. None of the above

130.By default, ArrayAdapter creates a view for each array item by calling toString() on each item and placing the contents in?

Answers:

  1. Group
  2. TextView
  3. List
  4. Layout

131. The addCategory() method places a category in an Intent object, ____ deletes a category previously added, and ____ gets the set of all categories currently in the object?

Answers:

  1. destroyCategory()
  2. removeCategory()
  3. setCategories()
  4. getCategories()

132. How to capture screen size, choose a correct answer?

Answers:

  1. Display display = getWindowManager().getDefaultDisplay();
    Point size = new Point();
    display.getSize(size);
    width = size.x;
    height = size.y;
  2. int width = getWindowManager().getDefaultDisplay().getWidth();
    int height = getWindowManager().getDefaultDisplay().getHeight();
  3. int height = Resources.getSystem().getDisplayMetrics().widthPixels;
    int width = Resources.getSystem().getDisplayMetrics().heightPixels;
  4. DisplayMetrics displaymetrics = new DisplayMetrics();
    getWindowManager().getDefaultDisplay().getMetrics(displaymetrics);
    int height = displaymetrics.heightPixels;
    int width = displaymetrics.widthPixels;
  5. DisplayMetrics displaymetrics = new DisplayMetrics();
    getWindowManager().getDefaultDisplay().getMetrics(displaymetrics);
    int height = displaymetrics.heightPixels;
    int width = displaymetrics.widthPixels;

133. AndroidManifest.xml
<application android:label=»@string/app_name» android:icon=»@drawable/icon»
android:name=»com.intel.starApp»> … ….
<meta-data android:name=»DATABASE» android:value=» example.db»>
<meta-data android:name=»VERSION» android:value=»2″>
<meta-data android:name=»QUERY_LOG» android:value=»true»>

</meta-data></meta-data></meta-data>

Answers:

  1. Display display = getWindowManager().getDefaultDisplay();
    Point size = new Point();
    display.getSize(size);
    width = size.x;
    height = size.y;
  2. Local custom DataBase file name is “example.db”, App version 2.0, Logs selected queries
  3. Local SQLite DataBase file name is “example.db”, DBMS version 2.0, Logs selected queries
  4. Local text-type DataBase file name is “example.db”, DBMS version 2.0, Logs selected queries
  5. Remote DataBase file name is “example.db”, App version 2.0, Logs selected queries

134. When creating main Android App project with Android studio, how can we support localization of the Android App?

Answers:

  1. main/res/AndroidManifest.xml
  2. main/res/layout/activity_my.xml
  3. main/res/values/strings.xml
  4. main/res/values/styles.xml

135.An Intent object is a bundle of information and what are the object contains?

Answers:

  1. Component,Category
  2. Active,Send
  3. Type,Extra
  4. A and C
  5. A and B

136.Which of the following ADT generates a debug certificate automatically for emulator and device?

Answers:

  1. Key alias:”androiddebugkey”
  2. Keystore name:”debug.keystore”
  3. Keystore password:”android”
  4. Key password:”android”
  5. None of the above

137. With regard to Android Wear, what is Ambient Mode?

Answers:

  1. The state which some devices launch into when an app is launched via voice.
  2. The dimmed or reduced detail display state which some devices enter when they are not being actively interacted with by the user.
  3. Ambient mode does not apply to Android Wear devices.
  4. A high power usage state that is a prerequisite to rendering detailed graphics on Android Wear devices.

138. With regard to Android Wear, what is Ambient Mode?

Answers:

  1. In a configuration file outside of version control, such as gradle.properties.
  2. As a hard-coded string in committed code.
  3. In AndroidManifest.xml
  4. In a README.txt file in the /assets directory.

139. What does a strikethrough formatting indicate in Android Studio?

Answers:

  1. That the method or class in use has been deprecated in the current version of the build tools in use.
  2. That the method or class in use is private.
  3. That the method or class in use is public.
  4. That the method or class in use has been newly introduced in the current version of the build tools in use

140. When publishing updates to an app on the Google Play Store, which of the following is true?

Answers:

  1. The versionCode must remain the same.
  2. The package name must be the same.
  3. The versionCode must be incremented or higher than the previous published version.
  4. The versionCode must be decremented or lower than the previous published version.
  5. The keystore used to publish the app must be different from that used for previous published versions

141. What is a Master Detail pattern?

Answers:

  1. A layout pattern consisting of a Master layout (containing a collection of data) and Detail (containing detailed information about an item from the collection).
  2. A term used in parallel processing where there are multiple Detail threads controlled by a hypervising Master thread manager.
  3. A layout pattern consisting of a Detail layout (containing a collection of data) and Master (containing detailed information about an item from the collection).
  4. A layout pattern consisting of a user-interactive Master layout, and a passive non-touch-enabled Detail layout.

142. With regard to Android XML layout definitions, what is the difference between <include> and <merge>.

Answers:

  1. Include causes all of the specified layout to be inserted into the current layout without modification, whereas an Merge element becomes the root view for a re-usable layout in order to prevent a redundant root element.
  2. Merge causes all of the specified layout to be inserted into the current layout without modification, whereas an Include element becomes the root view for a re-usable layout in order to prevent a redundant root element.
  3. Include is only used when a Fragment needs to be added to a layout after onMeasure has been called, whereas an Include element allows a Fragment to be inserted into a layout before onMeasure.
  4. Include and Merge are not used in Android XML layout definitions.

143. Which of the following FragmentTransaction methods allow the transaction to occur after the parent Activity’s state has been saved?

Answers:

  1. execute()
  2. commitAllowingStateLoss()
  3. commitStateless()
  4. runOnUiThread()

144. What is Robotium?

Answers:

  1. An Android unit testing framework.
  2. An Android test automation framework.
  3. An Android graphics library.
  4. An Android build configuration tool.

145. What is the primary purpose of an Intent?

Answers:

  1. Indicates whether a process was terminated successfully or with an error..
  2. Provides an interface which can be used by a Fragment interact with its parent Activity..
  3. Used in order to launch an Activity.
  4. Used in order to send a command or data to another Application.

146. With regard to graphics, what is the “dirty rect”?

Answers:

  1. An object that is passed as an argument to the invalidate() method to denote the portion of screen that should be redrawn.
  2. An area of screen that is not illuminated on the display when in ambient mode.

147.What are the Android Support Libraries for?

Answers:

  1. They provide APIs that allow developers to provide in-app customer support features.
  2. They provide APIs that allow developers to provide features aimed at users with additional accessibility requirements.
  3. They allow features introduced in more recent versions of Android to be used on devices running older OS versions.

148.The default action resultant when pressing the device back button is to pop the backstack. What is the backstack?

Answers:

  1. A stack data structure containing every activity in the order that they were opened. The pop action removes the most recently opened activity.
  2. A queue data structure containing every activity in the order that they were programmatically instantiated. The pop action removes the earliest opened activity from the data structure.
  3. An array containing the inheritance architecture of every View in the current Fragment.
  4. A stack data structure

149.What is the purpose of a Loader?

Answers:

  1. Loaders are special-case data streams that provide a bytewise iterator when accessing files from external storage.
  2. Loaders are convenience classes that make the asynchronous fetching and loading of data into a Fragment or Activity easier.
  3. Loaders are Android native classes that are used when graphics are drawn to screen via a canvas.
  4. Loaders are UI elements that indicate to the user at an asynchronous action is in progress.

150.What is the purpose of the Systrace tool?

Answers:

  1. It analyzes the execution of an application and places operations into a system-wide context on a common, visual timeline.
  2. It outlines the bounds of visual elements of an app to better identify overdraw.

151.What is a WakeLock?

Answers:

  1. A feature of the PowerManager that indicates to the system that your app requires the device to stay on.
  2. A system-wide developer setting that prevents apps from waking up the device.
  3. The internal name for the default Android system clock.
  4. The internal name for the Chrome for Android password manager.

152. What does the following code do?

try {
String token = GoogleAuthUtil.getToken(this, email,
«https://www.googleapis.com/auth/devstorage.read_only»);
System.out.println(token);
} catch (IOException e) {
System.out.println(«IOException»);
} catch (UserRecoverableAuthException e) {

System.out.println(«UserRecoverableAuthException»);
} catch (GoogleAuthException e) {
System.out.println(«GoogleAuthException»);
}

Answers:

  1. prints token
  2. prints IOException
  3. prints UserRecoverableAuthException
  4. prints GoogleAuthException

15,333 total views, 3 views today