Exam 10: Programming for Mobile Devices and Touchscreens

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

A device's ____ detects its orientation in space.

Free
(Multiple Choice)
4.8/5
(37)
Correct Answer:
Verified

A

In the Google Maps API, you specify coordinates with the ____ constructor.

Free
(Multiple Choice)
4.7/5
(30)
Correct Answer:
Verified

D

Explain why you need to be able to distinguish between app and device interaction when interpreting touch events.

Free
(Essay)
4.8/5
(37)
Correct Answer:
Verified

While users can interact via touch with an app, they also use touch to perform  browser and device interactions, known as gestures , for activities such as scrolling the  page and viewing device notifications. For instance, in addition to executing code in response to a  touchmove  event that you specify, the device's operating system may also interpret the touchmove event as  the user interacting with the interface to scroll the page. As you can imagine,  users would find such unpredictable results frustrating. 
To ensure that the operating system interface does not respond to events generated when  users interact with an app, you can use the preventDefault( method. By adding the  preventDefault( method within event handler code, you prevent touch actions on  specific elements from also triggering interface gestures.

Pointer events do not aim to handle input from  a mouse.

(True/False)
4.8/5
(40)

__________ is the process of making it clear to users what information your app wants to collect from them and how you intend to use it.

(Short Answer)
4.8/5
(26)

How can you make changes or enhancements to an app that uses a minified file?

(Essay)
4.9/5
(39)

Large-volume users of the Google Maps API need an API __________, which is a string of characters that you incorporate into any request your code makes to Google to verify that your use is licensed.

(Short Answer)
4.8/5
(41)

To disable interface gestures in response to pointer events, you change the value off the ____ property.

(Multiple Choice)
4.9/5
(34)

Which array contains coordinates of all touches currently on the screen?

(Multiple Choice)
4.7/5
(35)

Which of the following is NOT removed when minifying a file?

(Multiple Choice)
4.8/5
(38)

Which of the following is a touch event?

(Multiple Choice)
4.8/5
(34)

The touchstart event is roughly analogous to the ____ event.

(Multiple Choice)
4.9/5
(47)

By adding the __________   method within event handler code, you prevent touch actions on  specific elements from also triggering interface gestures.

(Short Answer)
4.8/5
(42)

Explain what the Device Orientation API does and provide an example of how it could be used.

(Essay)
4.7/5
(40)

What is the difference between a synchronous callback and an asynchronous callback?

(Essay)
4.8/5
(34)

In the Google Maps API, the ____ constructor creates a map object.

(Multiple Choice)
4.8/5
(34)

Which type of events aim to handle input from a mouse, finger, or stylus with each event?

(Multiple Choice)
4.9/5
(37)

On a touchscreen device without a mouse, most browsers fire the click event when a  user touches the screen.

(True/False)
4.8/5
(32)

Explain the difference in how you reference coordinates between mouse events and touch events.

(Essay)
4.8/5
(41)

Which of the following is a mouse event?

(Multiple Choice)
4.9/5
(38)
Showing 1 - 20 of 41
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)