Deck 10: Programming for Mobile Devices and Touchscreens

Full screen (f)
exit full mode
Question
Which type of events focus on responding to finger touches on a touchscreen?

A)Drag events
B)Pointer events
C)Touch events
D)Mouse events
Use Space or
up arrow
down arrow
to flip the card.
Question
Which type of events aim to handle input from a mouse, finger, or stylus with each event?

A)Drag events
B)Pointer events
C)Touch events
D)Mouse events
Question
The touchstart event is roughly analogous to the ____ event.

A) click
B) mouseup
C) mousedown
D) mouseover
Question
A device's ____ detects its orientation in space.

A)gyroscope
B)camera
C)accelerometer
D)battery
Question
To continually monitor a user's position, you use the ____ method of the Geolocation API.

A) getCurrentPosition()
B)watchPosition()
C)clearWatch()
D)latitude()
Question
The mobile versions of popular browsers share all the same  capabilities, limitations, and even bugs as their desktop counterparts.
Question
You access methods of the Geolocation API using the geolocation property of the ____ object.

A) Screen
B) Window
C) Navigator
D) Location
Question
Which event is fired when a user moves a finger off the screen or outside of an object's containing element?

A) touchstart
B) touchmove
C) touchend
D) touchcancel
Question
Which of the following is a touch event?

A) touchend
B) mousedown
C) pointermove
D) clientY
Question
A device's ____ detects changes in speed.

A)gyroscope
B)camera
C)accelerometer
D)battery
Question
The success and fail arguments of the getCurrentPosition()method, which are executable code, are examples of ____ .

A)API keys
B)properties
C) callbacks
D)minifiers
Question
To disable interface gestures in response to pointer events, you change the value off the ____ property.

A) touches
B) clientX
C) touchAction
D) msTouchAction
Question
The Geolocation API p rovides access to device orientation and changes in orientation.
Question
Which of the following is a mouse event?

A) touchstart
B) click
C) pointerup
D) clientX
Question
Pointer events do not aim to handle input from  a mouse.
Question
Which of the following is NOT removed when minifying a file?

A) spaces
B)comments
C)indents
D)line breaks
Question
On a touchscreen device without a mouse, most browsers fire the click event when a  user touches the screen.
Question
To request a user's position a single time, you use the ____ method of the Geolocation API.

A) getCurrentPosition()
B)watchPosition()
C)clearWatch()
D)latitude()
Question
Touch events are built to  allow for multiple touches on the screen at the same  time.
Question
Which of the following is a pointer event?

A) touchcancel
B) mouseout
C) pointerdown
D) clientX
Question
Match between columns
Devices that allow for multiple touches on the screen at the same time
multitouch
Devices that allow for multiple touches on the screen at the same time
Geolocation API
Devices that allow for multiple touches on the screen at the same time
pointer events
Devices that allow for multiple touches on the screen at the same time
Battery Status API
Devices that allow for multiple touches on the screen at the same time
Device Orientation API
Devices that allow for multiple touches on the screen at the same time
touch events
Devices that allow for multiple touches on the screen at the same time
WebRTC API
Devices that allow for multiple touches on the screen at the same time
gesture
Devices that allow for multiple touches on the screen at the same time
stylus
Devices that allow for multiple touches on the screen at the same time
callback
A set of events created by Apple for iOS
multitouch
A set of events created by Apple for iOS
Geolocation API
A set of events created by Apple for iOS
pointer events
A set of events created by Apple for iOS
Battery Status API
A set of events created by Apple for iOS
Device Orientation API
A set of events created by Apple for iOS
touch events
A set of events created by Apple for iOS
WebRTC API
A set of events created by Apple for iOS
gesture
A set of events created by Apple for iOS
stylus
A set of events created by Apple for iOS
callback
A pointing device that looks like a pencil and allows for precise touch input on a touchscreen
multitouch
A pointing device that looks like a pencil and allows for precise touch input on a touchscreen
Geolocation API
A pointing device that looks like a pencil and allows for precise touch input on a touchscreen
pointer events
A pointing device that looks like a pencil and allows for precise touch input on a touchscreen
Battery Status API
A pointing device that looks like a pencil and allows for precise touch input on a touchscreen
Device Orientation API
A pointing device that looks like a pencil and allows for precise touch input on a touchscreen
touch events
A pointing device that looks like a pencil and allows for precise touch input on a touchscreen
WebRTC API
A pointing device that looks like a pencil and allows for precise touch input on a touchscreen
gesture
A pointing device that looks like a pencil and allows for precise touch input on a touchscreen
stylus
A pointing device that looks like a pencil and allows for precise touch input on a touchscreen
callback
Provides access to device camera, microphone, and/or screen
multitouch
Provides access to device camera, microphone, and/or screen
Geolocation API
Provides access to device camera, microphone, and/or screen
pointer events
Provides access to device camera, microphone, and/or screen
Battery Status API
Provides access to device camera, microphone, and/or screen
Device Orientation API
Provides access to device camera, microphone, and/or screen
touch events
Provides access to device camera, microphone, and/or screen
WebRTC API
Provides access to device camera, microphone, and/or screen
gesture
Provides access to device camera, microphone, and/or screen
stylus
Provides access to device camera, microphone, and/or screen
callback
An argument that contains or references executable code
multitouch
An argument that contains or references executable code
Geolocation API
An argument that contains or references executable code
pointer events
An argument that contains or references executable code
Battery Status API
An argument that contains or references executable code
Device Orientation API
An argument that contains or references executable code
touch events
An argument that contains or references executable code
WebRTC API
An argument that contains or references executable code
gesture
An argument that contains or references executable code
stylus
An argument that contains or references executable code
callback
A browser or device interaction performed using touch, such as for scrolling the page
multitouch
A browser or device interaction performed using touch, such as for scrolling the page
Geolocation API
A browser or device interaction performed using touch, such as for scrolling the page
pointer events
A browser or device interaction performed using touch, such as for scrolling the page
Battery Status API
A browser or device interaction performed using touch, such as for scrolling the page
Device Orientation API
A browser or device interaction performed using touch, such as for scrolling the page
touch events
A browser or device interaction performed using touch, such as for scrolling the page
WebRTC API
A browser or device interaction performed using touch, such as for scrolling the page
gesture
A browser or device interaction performed using touch, such as for scrolling the page
stylus
A browser or device interaction performed using touch, such as for scrolling the page
callback
Provides user's latitude and longitude coordinates
multitouch
Provides user's latitude and longitude coordinates
Geolocation API
Provides user's latitude and longitude coordinates
pointer events
Provides user's latitude and longitude coordinates
Battery Status API
Provides user's latitude and longitude coordinates
Device Orientation API
Provides user's latitude and longitude coordinates
touch events
Provides user's latitude and longitude coordinates
WebRTC API
Provides user's latitude and longitude coordinates
gesture
Provides user's latitude and longitude coordinates
stylus
Provides user's latitude and longitude coordinates
callback
A specification created by Microsoft for Windows Phone and Windows 8
multitouch
A specification created by Microsoft for Windows Phone and Windows 8
Geolocation API
A specification created by Microsoft for Windows Phone and Windows 8
pointer events
A specification created by Microsoft for Windows Phone and Windows 8
Battery Status API
A specification created by Microsoft for Windows Phone and Windows 8
Device Orientation API
A specification created by Microsoft for Windows Phone and Windows 8
touch events
A specification created by Microsoft for Windows Phone and Windows 8
WebRTC API
A specification created by Microsoft for Windows Phone and Windows 8
gesture
A specification created by Microsoft for Windows Phone and Windows 8
stylus
A specification created by Microsoft for Windows Phone and Windows 8
callback
Reports charge level of device battery
multitouch
Reports charge level of device battery
Geolocation API
Reports charge level of device battery
pointer events
Reports charge level of device battery
Battery Status API
Reports charge level of device battery
Device Orientation API
Reports charge level of device battery
touch events
Reports charge level of device battery
WebRTC API
Reports charge level of device battery
gesture
Reports charge level of device battery
stylus
Reports charge level of device battery
callback
Provides access to device orientation and changes in orientation
multitouch
Provides access to device orientation and changes in orientation
Geolocation API
Provides access to device orientation and changes in orientation
pointer events
Provides access to device orientation and changes in orientation
Battery Status API
Provides access to device orientation and changes in orientation
Device Orientation API
Provides access to device orientation and changes in orientation
touch events
Provides access to device orientation and changes in orientation
WebRTC API
Provides access to device orientation and changes in orientation
gesture
Provides access to device orientation and changes in orientation
stylus
Provides access to device orientation and changes in orientation
callback
Question
Provide two reasons why it's important to minimize download size for a mobile app.
Question
Explain the difference in how you reference coordinates between mouse events and touch events.
Question
Explain what the Device Orientation API does and provide an example of how it could be used.
Question
Explain why you need to be able to distinguish between app and device interaction when interpreting touch events.
Question
What does it mean to load scripts responsively?
Question
Why is it necessary for geolocation code to allow for a lack of response to a permission request?
Question
Which array contains coordinates of all touches currently on the screen?

A) touches
B) allTouches
C) targetTouches
D) changedTouches
Question
Explain what the Battery Status API does and provide an example of how it could be used.
Question
The object returned by the getCurrentPosition()method of the Geolocation API contains a single property named ____ .

A) coordinates
B) coords
C) geolocation
D) geo
Question
In the Google Maps API, you specify coordinates with the ____ constructor.

A) Coords()
B)Coordinates()
C) New()
D)LatLng()
Question
How can you make changes or enhancements to an app that uses a minified file?
Question
Pointer events are supported only by certain versions of which browser?

A) Mozilla Firefox
B) Google Chrome
C) Apple Safari
D)Microsoft Internet Explorer
Question
In a touch __________, a browser checks a touched element for an event handler for multiple events, including some mouse events.
Question
In the Google Maps API, the ____ constructor creates a map object.

A) Create()
B)New()
C) Map()
D)LatLng()
Question
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.
Question
What is the difference between a synchronous callback and an asynchronous callback?
Question
Converting a physical address to a pair of latitude and longitude coordinates is known as __________.
Question
__________ 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.
Question
By adding the __________   method within event handler code, you prevent touch actions on  specific elements from also triggering interface gestures.
Question
What are some different ways to test a mobile app on different mobile platforms?
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/41
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 10: Programming for Mobile Devices and Touchscreens
1
Which type of events focus on responding to finger touches on a touchscreen?

A)Drag events
B)Pointer events
C)Touch events
D)Mouse events
C
2
Which type of events aim to handle input from a mouse, finger, or stylus with each event?

A)Drag events
B)Pointer events
C)Touch events
D)Mouse events
B
3
The touchstart event is roughly analogous to the ____ event.

A) click
B) mouseup
C) mousedown
D) mouseover
C
4
A device's ____ detects its orientation in space.

A)gyroscope
B)camera
C)accelerometer
D)battery
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
5
To continually monitor a user's position, you use the ____ method of the Geolocation API.

A) getCurrentPosition()
B)watchPosition()
C)clearWatch()
D)latitude()
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
6
The mobile versions of popular browsers share all the same  capabilities, limitations, and even bugs as their desktop counterparts.
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
7
You access methods of the Geolocation API using the geolocation property of the ____ object.

A) Screen
B) Window
C) Navigator
D) Location
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
8
Which event is fired when a user moves a finger off the screen or outside of an object's containing element?

A) touchstart
B) touchmove
C) touchend
D) touchcancel
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
9
Which of the following is a touch event?

A) touchend
B) mousedown
C) pointermove
D) clientY
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
10
A device's ____ detects changes in speed.

A)gyroscope
B)camera
C)accelerometer
D)battery
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
11
The success and fail arguments of the getCurrentPosition()method, which are executable code, are examples of ____ .

A)API keys
B)properties
C) callbacks
D)minifiers
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
12
To disable interface gestures in response to pointer events, you change the value off the ____ property.

A) touches
B) clientX
C) touchAction
D) msTouchAction
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
13
The Geolocation API p rovides access to device orientation and changes in orientation.
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
14
Which of the following is a mouse event?

A) touchstart
B) click
C) pointerup
D) clientX
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
15
Pointer events do not aim to handle input from  a mouse.
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
16
Which of the following is NOT removed when minifying a file?

A) spaces
B)comments
C)indents
D)line breaks
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
17
On a touchscreen device without a mouse, most browsers fire the click event when a  user touches the screen.
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
18
To request a user's position a single time, you use the ____ method of the Geolocation API.

A) getCurrentPosition()
B)watchPosition()
C)clearWatch()
D)latitude()
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
19
Touch events are built to  allow for multiple touches on the screen at the same  time.
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
20
Which of the following is a pointer event?

A) touchcancel
B) mouseout
C) pointerdown
D) clientX
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
21
Match between columns
Devices that allow for multiple touches on the screen at the same time
multitouch
Devices that allow for multiple touches on the screen at the same time
Geolocation API
Devices that allow for multiple touches on the screen at the same time
pointer events
Devices that allow for multiple touches on the screen at the same time
Battery Status API
Devices that allow for multiple touches on the screen at the same time
Device Orientation API
Devices that allow for multiple touches on the screen at the same time
touch events
Devices that allow for multiple touches on the screen at the same time
WebRTC API
Devices that allow for multiple touches on the screen at the same time
gesture
Devices that allow for multiple touches on the screen at the same time
stylus
Devices that allow for multiple touches on the screen at the same time
callback
A set of events created by Apple for iOS
multitouch
A set of events created by Apple for iOS
Geolocation API
A set of events created by Apple for iOS
pointer events
A set of events created by Apple for iOS
Battery Status API
A set of events created by Apple for iOS
Device Orientation API
A set of events created by Apple for iOS
touch events
A set of events created by Apple for iOS
WebRTC API
A set of events created by Apple for iOS
gesture
A set of events created by Apple for iOS
stylus
A set of events created by Apple for iOS
callback
A pointing device that looks like a pencil and allows for precise touch input on a touchscreen
multitouch
A pointing device that looks like a pencil and allows for precise touch input on a touchscreen
Geolocation API
A pointing device that looks like a pencil and allows for precise touch input on a touchscreen
pointer events
A pointing device that looks like a pencil and allows for precise touch input on a touchscreen
Battery Status API
A pointing device that looks like a pencil and allows for precise touch input on a touchscreen
Device Orientation API
A pointing device that looks like a pencil and allows for precise touch input on a touchscreen
touch events
A pointing device that looks like a pencil and allows for precise touch input on a touchscreen
WebRTC API
A pointing device that looks like a pencil and allows for precise touch input on a touchscreen
gesture
A pointing device that looks like a pencil and allows for precise touch input on a touchscreen
stylus
A pointing device that looks like a pencil and allows for precise touch input on a touchscreen
callback
Provides access to device camera, microphone, and/or screen
multitouch
Provides access to device camera, microphone, and/or screen
Geolocation API
Provides access to device camera, microphone, and/or screen
pointer events
Provides access to device camera, microphone, and/or screen
Battery Status API
Provides access to device camera, microphone, and/or screen
Device Orientation API
Provides access to device camera, microphone, and/or screen
touch events
Provides access to device camera, microphone, and/or screen
WebRTC API
Provides access to device camera, microphone, and/or screen
gesture
Provides access to device camera, microphone, and/or screen
stylus
Provides access to device camera, microphone, and/or screen
callback
An argument that contains or references executable code
multitouch
An argument that contains or references executable code
Geolocation API
An argument that contains or references executable code
pointer events
An argument that contains or references executable code
Battery Status API
An argument that contains or references executable code
Device Orientation API
An argument that contains or references executable code
touch events
An argument that contains or references executable code
WebRTC API
An argument that contains or references executable code
gesture
An argument that contains or references executable code
stylus
An argument that contains or references executable code
callback
A browser or device interaction performed using touch, such as for scrolling the page
multitouch
A browser or device interaction performed using touch, such as for scrolling the page
Geolocation API
A browser or device interaction performed using touch, such as for scrolling the page
pointer events
A browser or device interaction performed using touch, such as for scrolling the page
Battery Status API
A browser or device interaction performed using touch, such as for scrolling the page
Device Orientation API
A browser or device interaction performed using touch, such as for scrolling the page
touch events
A browser or device interaction performed using touch, such as for scrolling the page
WebRTC API
A browser or device interaction performed using touch, such as for scrolling the page
gesture
A browser or device interaction performed using touch, such as for scrolling the page
stylus
A browser or device interaction performed using touch, such as for scrolling the page
callback
Provides user's latitude and longitude coordinates
multitouch
Provides user's latitude and longitude coordinates
Geolocation API
Provides user's latitude and longitude coordinates
pointer events
Provides user's latitude and longitude coordinates
Battery Status API
Provides user's latitude and longitude coordinates
Device Orientation API
Provides user's latitude and longitude coordinates
touch events
Provides user's latitude and longitude coordinates
WebRTC API
Provides user's latitude and longitude coordinates
gesture
Provides user's latitude and longitude coordinates
stylus
Provides user's latitude and longitude coordinates
callback
A specification created by Microsoft for Windows Phone and Windows 8
multitouch
A specification created by Microsoft for Windows Phone and Windows 8
Geolocation API
A specification created by Microsoft for Windows Phone and Windows 8
pointer events
A specification created by Microsoft for Windows Phone and Windows 8
Battery Status API
A specification created by Microsoft for Windows Phone and Windows 8
Device Orientation API
A specification created by Microsoft for Windows Phone and Windows 8
touch events
A specification created by Microsoft for Windows Phone and Windows 8
WebRTC API
A specification created by Microsoft for Windows Phone and Windows 8
gesture
A specification created by Microsoft for Windows Phone and Windows 8
stylus
A specification created by Microsoft for Windows Phone and Windows 8
callback
Reports charge level of device battery
multitouch
Reports charge level of device battery
Geolocation API
Reports charge level of device battery
pointer events
Reports charge level of device battery
Battery Status API
Reports charge level of device battery
Device Orientation API
Reports charge level of device battery
touch events
Reports charge level of device battery
WebRTC API
Reports charge level of device battery
gesture
Reports charge level of device battery
stylus
Reports charge level of device battery
callback
Provides access to device orientation and changes in orientation
multitouch
Provides access to device orientation and changes in orientation
Geolocation API
Provides access to device orientation and changes in orientation
pointer events
Provides access to device orientation and changes in orientation
Battery Status API
Provides access to device orientation and changes in orientation
Device Orientation API
Provides access to device orientation and changes in orientation
touch events
Provides access to device orientation and changes in orientation
WebRTC API
Provides access to device orientation and changes in orientation
gesture
Provides access to device orientation and changes in orientation
stylus
Provides access to device orientation and changes in orientation
callback
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
22
Provide two reasons why it's important to minimize download size for a mobile app.
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
23
Explain the difference in how you reference coordinates between mouse events and touch events.
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
24
Explain what the Device Orientation API does and provide an example of how it could be used.
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
25
Explain why you need to be able to distinguish between app and device interaction when interpreting touch events.
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
26
What does it mean to load scripts responsively?
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
27
Why is it necessary for geolocation code to allow for a lack of response to a permission request?
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
28
Which array contains coordinates of all touches currently on the screen?

A) touches
B) allTouches
C) targetTouches
D) changedTouches
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
29
Explain what the Battery Status API does and provide an example of how it could be used.
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
30
The object returned by the getCurrentPosition()method of the Geolocation API contains a single property named ____ .

A) coordinates
B) coords
C) geolocation
D) geo
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
31
In the Google Maps API, you specify coordinates with the ____ constructor.

A) Coords()
B)Coordinates()
C) New()
D)LatLng()
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
32
How can you make changes or enhancements to an app that uses a minified file?
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
33
Pointer events are supported only by certain versions of which browser?

A) Mozilla Firefox
B) Google Chrome
C) Apple Safari
D)Microsoft Internet Explorer
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
34
In a touch __________, a browser checks a touched element for an event handler for multiple events, including some mouse events.
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
35
In the Google Maps API, the ____ constructor creates a map object.

A) Create()
B)New()
C) Map()
D)LatLng()
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
36
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.
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
37
What is the difference between a synchronous callback and an asynchronous callback?
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
38
Converting a physical address to a pair of latitude and longitude coordinates is known as __________.
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
39
__________ 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.
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
40
By adding the __________   method within event handler code, you prevent touch actions on  specific elements from also triggering interface gestures.
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
41
What are some different ways to test a mobile app on different mobile platforms?
Unlock Deck
Unlock for access to all 41 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 41 flashcards in this deck.