Which code segment should you use?

You are developing a Windows Store app by using JavaScript. The app will use an
accelerometer to detect user movements that affect the host device. (In the code segments,
accelerometer is an instance of the sensor that is connected to the host device.)
The app must report user movement either once every five seconds or at the device’s most
frequent polling interval available, whichever is less frequent.
You need to configure the accelerometer to meet the requirements.
Which code segment should you use?

You are developing a Windows Store app by using JavaScript. The app will use an
accelerometer to detect user movements that affect the host device. (In the code segments,
accelerometer is an instance of the sensor that is connected to the host device.)
The app must report user movement either once every five seconds or at the device’s most
frequent polling interval available, whichever is less frequent.
You need to configure the accelerometer to meet the requirements.
Which code segment should you use?

A.
Option A

B.
Option B

C.
Option C

D.
Option D



Leave a Reply 0

Your email address will not be published. Required fields are marked *