Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 2 out of 7 pages
Exam (elaborations)

FIT2081 Questions and Answers 2023| comprehensive Study guide

Document preview thumbnail
Preview 2 out of 7 pages

FIT2081 Questions and Answers 2023| comprehensive Study guide MotionEvents of which action type need a coded response to draw a rectangle of appropriate dimensions by drag-drawing on a "canvas"? Select one: a. Only ACTION_UP b. Only ACTION_MOVE and ACTION_UP c. Only ACTION_DOWN d. ACTION_DOWN, ACTION_MOVE and ACTION_UP e. Only ACTION_DOWN and ACTION_MOVE f. Only ACTION_MOVE g. Only ACTION_DOWN and ACTION_UP - ANSW g The methods getX() and getY() return the absolute coordinates of the current event. The data type of their return is:

Content preview

FIT2081 Questions and Answers 2023|
comprehensive Study guide


MotionEvents of which action type need a coded response to draw a rectangle of
appropriate dimensions by drag-drawing on a "canvas"?

Select one:
a. Only ACTION_UP
b. Only ACTION_MOVE and ACTION_UP
c. Only ACTION_DOWN
d. ACTION_DOWN, ACTION_MOVE and ACTION_UP
e. Only ACTION_DOWN and ACTION_MOVE
f. Only ACTION_MOVE
g. Only ACTION_DOWN and ACTION_UP - ANSW g

The methods getX() and getY() return the absolute coordinates of the current event.
The data type of their return is:

Select one:
a. MotionEvent
b. integer
c. LatLng
d. double
e. float - ANSW e

What should the callback method onTouch() return to report handling the event?

Select one:
a. true
b. false - ANSW a

MotionEvents of which action type can utilise batching?

Select one:
a. ACTION_DOWN
b. ACTION_UP
c. ACTION_MOVE - ANSW c

What should you do to catch incoming touch events on a nested layout?

, Select one:
a. Overriding the onTouchEvent() method in the activity's controller.
b. Registering onTouchListerner on the nested layout
c. Registering onTouchListerner on the activity's layout - ANSW b

f you want to draw a freehand line by drag-drawing on a "canvas", which MotionEvent
should you implement?
Note: A freehand line is simply a line drawn without a straightedge.

Select one:
a. Only ACTION_UP
b. Only ACTION_MOVE
c. Only ACTION_DOWN
d. Only ACTION_DOWN and ACTION_UP - ANSW b

For each gesture, you will only get one ACTION_MOVE event at most.

Select one:
a. true
b. false - ANSW b

Which motion event does a gesture start with?

Select one:
a. ACTION_UP
b. ACTION_MOVE
c. ACTION_DOWN - ANSW c

Which of the following is not a possible return value from a MotionEvent's
getActionMasked method?

Select one:
a. ACTION_SKIP
b. ACTION_UP
c. ACTION_DOWN
d. ACTION_MOVE - ANSW a

The data type of the input parameter to onTouchEvent() callback is:

Select one:
a. LatLng
b. MotionEvent
c. Event
d. View - ANSW b
Which of the following is false?

Document information

Uploaded on
February 1, 2024
Number of pages
7
Written in
2023/2024
Type
Exam (elaborations)
Contains
Questions & answers
$11.49

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
smartchoices
4.8
(9)
Sold
36
Followers
5
Items
4504
Last sold
4 months ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions