nerdexam
IBM

LOT-404 · Question #15

Cindy is creating an application for runners that will keep track of the route they traveled. She needs to get the current acceleration along the x, y, and z axis. How can she detect the change in…

The correct answer is D. navigator.accelerometer.getCurrentAcceleration(onSuccess, onError). See the full explanation below for the reasoning.

Question

Cindy is creating an application for runners that will keep track of the route they traveled. She needs to get the current acceleration along the x, y, and z axis. How can she detect the change in movement relative to the current device orientation programmatically?

Options

  • Anavigator.traveller.getCurrentDistance(onSuccess, onError);
  • Bnavigator.traveller.getCurrentAcceleration(onSuccess, onError);
  • Cnavigator.accelerometer.getCurrentDistance(onSuccess, onError);
  • Dnavigator.accelerometer.getCurrentAcceleration(onSuccess, onError);

How the community answered

(32 responses)
  • A
    9% (3)
  • B
    16% (5)
  • C
    3% (1)
  • D
    72% (23)

Community Discussion

No community discussion yet for this question.

Full LOT-404 Practice