Coursera Answers

Programming Mobile Applications for Android Handheld Systems: Part 2 | Week 4 Quiz Answer

Programming Mobile Applications for Android Handheld Systems Part 2  Week 4 Quiz Answer

Programming Mobile Applications for Android Handheld Systems: Part 2 | Week 4 Quiz Answer 

In this article i am gone to share Programming Mobile Applications for Android Handheld Systems: Part 2 | Week 4 Practice Exercise Quiz Answer with you..

Week 4 Practice Exercise Quiz Answer

Question 1)

When registering a Listener for SensorEvents, you can set the rate at which the Sensor returns its readings. Which of the following Sensor constants represents to the most frequent rate? See: for more information.


Question 2)

SensorEvents have which of the following fields? See: for more documentation.

  • A timestamp.
  • A sensor identifier.
  • A measurement accuracy.
  • Sensor-specific measurement values.

Question 3)

(True or False) High-pass filters are used when you want to emphasize the transient changes in a Sensor’s readings, while deemphasizing the constant portions of the reading?

  • True
  • False

Question 4)

Which of the following Sensor types did the SensorCompass application use?


Question 05)

Which type of LocationProvider gets its readings from Global Positioning System satellites?


Question 6)

Recently Android added an improved API for acquiring Location information via Google Play Services. I have created a new version of the LocationGetLocation application called LocationGetLocationServices. This application is in the source code repository for the class. Which LocationClient method is used in this new application to acquire the last known location reading?

  • getLastLocation

Question 7)

Which class and method did the MapEarthQuakeMap application use in order to create a marker pin for each earthquake? Give your answer in the form “ClassName.MethodName”.

  • GoogleMap.addMarker

Question 8)

With the Google Maps Android API, you can change a map’s zoom level by calling methods of the CameraUpdate class, such as zoomTo(float). At what zoom level would the width of the earth be roughly 1024dp? See: for more documentation.

  • 4
  • 2
  • 8
  • 0

Question 9)

In the DataManagementPreferenceFragment application, Android invokes a method when the user changes the username preference. The code in this method then updates the display with the new username. What method does Android call?

  • SharedPreferences.OnSharedPreferenceChangeListener.onSharedPreferenceChanged

Question 10)

In the DataManagementFileInternalMemory application, which method was called to open the file from which the application reads the text to display? Give your answer in the form “ClassName.MethodName”.

  • Context.openFileInput

Question 11)

If your application wants to write to external memory, it should determine whether that external storage is available by calling the Environment.getExternalStorageState() method. What constant value will this method return if external storage is mounted and available for writing?


Question 12)

The DataManagementSQL example application called the delete(String table, String whereClause, String[] whereArgs) method. This method takes 3 parameters. Which one of the following statements correctly describes the purpose of the 2nd parameter? See for more documentation.

  • It gives the location of the database.
  • It helps to determine which rows to extract from the database.
  • It names the specific database table from where to extract data.
  • It provides specific values for parameters to an SQL WHERE clause.