Skip to content
VUBuddy

CS420 Solved Sample Paper

Web Development for Portable Devices PDF 455 KBUpdated 23 Oct 2026
Quiz CS420 Solved Sample Paper PDF 455 KB
vubuddy.com
Type
Quiz
Course
CS420 Web Development for Portable Devices
Size
PDF 455 KB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 455 KB

You get 3 free files a day on the website. Add the Chrome extension for 30 a day.

Unlimited downloads in the Android app Get it free on Google Play

Preview text

Text from pages 1, 2, 3 of 6. Download the file for all 6 pages.

Paper Time [90 minutes] · CS420 – Web Development for Portable Devices · Final Term Spring 2023 (Sample Paper) · MCQs

Take an assessment.

Q1. We define a _______ at the top where we will display the screen coordinates of the most recent touch.

  1. Div
  2. Heading
  3. Br
  4. Href

Q2. To do something with the touch data, we add a ______ function.

  1. Catch
  2. Handler
  3. Open
  4. Close

Q3. How many coordinates of the touch we can grab in touchHandler function?

  1. 2
  2. 10
  3. 18
  4. 26

Q4. Coordinates of the touch in touchHandler are written in ______ div.

  1. Heading
  2. Href
  3. Coords
  4. Br

Q5. We can display the screen coordinates of the most recent touch by defining div at the ______.

  1. top

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.

  1. Touch events
  2. Mouse events
  3. Pen events
  4. Separately

Q7. Pointer events include:

  1. Touch events
  2. Delete events
  3. Update events
  4. Insert events

Q8. Pointer events model is proposed by___________.

  1. Tesla
  2. Microsoft
  3. IBM
  4. Intel

Q9. _____________API was defined in terms of Touches.

  1. Delete events
  2. Create events
  3. Update events
  4. Touch events

Q10. _____________API is defined in terms of Pointers.

  1. Create events
  2. Update events
  3. Delete events
  4. Pointer events

Q11. Pointer is defined for _________ devices.

  1. Input
  2. Output
  3. Both Input and Output
  4. IoT

Q12. Pointer attribute is __________.

  1. pointer
  2. pointerId
  3. screen
  4. screenId

Q13. Pressure is a pointer attribute that means _______________.

  1. Pressure of contact on screen

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 __________.

  1. Pointer
  2. PointerId
  3. PointerPressure
  4. PointerType

Q15. To present the main Pointer for a pointer type, we use ___________.

  1. PointerType
  2. PointerPressure
  3. IsPrimary
  4. IsSecondary

Q16. Which of the following is event type?

  1. Pointerenter
  2. Pointerexit
  3. Pointercreate
  4. Pointerdelete

Q17. When an element becomes target of pointer, we use _________.

  1. Got
  2. Gotpointer
  3. Gotpointercatch
  4. Gotpointercapture

Q18. When element loses pointer capture, we use _________.

  1. Lost
  2. Lostpointer
  3. Lostpointercatch
  4. Lostpointercapture

Q19. Polyfill library refers to a ________ library.

  1. JavaScript
  2. HTML
  3. PHP
  4. CSS

Q20. While entering data using any input entry method, data should be ________.

  1. Visible
  2. Not visible
  3. Same
  4. Not same

Q21. Which of the following font size data will be difficult to enter?

  1. Small
  2. Large
  3. Both small and large

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.

All CS420 files →
CS420 Web Development for Portable Devices All CS420 handouts, past papers, quizzes and MCQs in one place. Open course page

Get more out of VUBuddy, for free

Android app Free on Google Play
  • Unlimited downloads
  • The explanation behind every MCQ answer
  • Study offline on slow data
Get the Android app
Chrome extension Free on the Chrome Web Store
  • 30 downloads a day instead of 3
  • Sign in and buy Pro Semester here
Add to Chrome

One Pro Semester membership works in both the extension and the app.