- Type
- Quiz
- Course
- CS420 Web Development for Portable Devices
- Size
- PDF 455 KB
- Updated
- 23 Oct 2026
You get 3 free files a day on the website. Add the Chrome extensionSign in with the extension for 30 a day.
Preview text
Text from pages 1, 2, 3 of 6. Download the file for all 6 pages.
Take an assessment.
Q1. We define a _______ at the top where we will display the screen coordinates of the most recent touch.
Q2. To do something with the touch data, we add a ______ function.
Q3. How many coordinates of the touch we can grab in touchHandler function?
Q4. Coordinates of the touch in touchHandler are written in ______ div.
Q5. We can display the screen coordinates of the most recent touch by defining div at the ______.
we add some JavaScript to register the event listener, and add a handler function to do something with the touch data:
In the touchHandler function we grab the x and y coordinates of the touch, and write them to the coords div:
In the touchHandler function we grab the x and y coordinates of the touch, and write them to the coords div: B. down C. left D. right
Q6. To handle all types of events like mouse, touch and pen events, we have to write the code_______ for each.
Q7. Pointer events include:
Q8. Pointer events model is proposed by___________.
Q9. _____________API was defined in terms of Touches.
Q10. _____________API is defined in terms of Pointers.
Q11. Pointer is defined for _________ devices.
Q12. Pointer attribute is __________.
Q13. Pressure is a pointer attribute that means _______________.
We also define a div at the top where we will display the screen coordinates of the most recent touch.
To handle the mouse events, touch events and pen events we have to write the code separately for each of these.
Microsoft made a standards proposal that reconciles touch events and mouse events and pen input too, into one model called pointer events.
While the Touch Events API was defined in terms of Touches, the Pointer Events API is defined in terms of Pointers,
While the Touch Events API was defined in terms of Touches, the Pointer Events API is defined in terms of Pointers,
Pointer is defined as: A hardware agnostic representation of input devices that can target a specific coordinate on a scree
Pointer attributes: Attribute pointerId screenX screenY clientX clientY pageX pageY width height tiltX tiltY pressure pointerType isPrimary B. Pressure of contact on pointer C. Pressure of contact on width D. Pressure of contact on height
Q14. To present the class of pointer, we used __________.
Q15. To present the main Pointer for a pointer type, we use ___________.
Q16. Which of the following is event type?
Q17. When an element becomes target of pointer, we use _________.
Q18. When element loses pointer capture, we use _________.
Q19. Polyfill library refers to a ________ library.
Q20. While entering data using any input entry method, data should be ________.
Q21. Which of the following font size data will be difficult to enter?
pressure: pressure of contact on screen
pointerType class of Pointer: mouse, pen, or touch
isPrimary: is this the main Pointer for a pointer type
Event types :Pointerover pointerenter pointerdown pointermove pointerup pointercancel pointerout pointerleave gotpointercapture lostpointercapture
gotpointercapture: when an element becomes target of pointer
lostpointercapture when element loses pointer capture
It refers to a JavaScript library that implements an HTML5 web standard
while entering data it should be clearly visible. It is much difficult to enter the small font data.
while entering data it should be clearly visible. It is much difficult to enter the small font data.
Related CS420 files
All CS420 files →Get more out of VUBuddy, for free
- Unlimited downloads
- The explanation behind every MCQ answer
- Study offline on slow data
- 30 downloads a day instead of 3
- Sign in and buy Pro Semester here
One Pro Semester membership works in both the extension and the app.