QuestionQuestion

Question 1
In the Cannon Game app we used ________ to determine whether the cannonball hit any of the canvas’- s edges-, the blocker or a section of the target.
collision awareness
collision detection
target detection
compositing

Question 2
The ________ method is used to save the context's current state.
store
saveContext
save
saveState

Question 3
The ________ attribute specifies the alignment points of the text.
text
font
textBaseline
font-face

Question 4
Using the ________ attribute value, if the images overlap, only the source image is displayed (the destination is ignored).
destination-atop
copy
xor
lighter

Question 5
You can change the transformation matrix (the coordinates) on the canvas using method ________ so that the center of the canvas becomes the point of origin with the x, y values 0, 0.
transform
scale
transpose
translate

Question 6
Which of the following statements is false?
HTML5 canvas is XML-based, so it uses a declarative approach.
SVG (Scalable Vector Graphics) is JavaScript-based, so it uses an imperative approach.
Vector graphics are made of scalable geometric primitives such as line segments and arcs.
Both (b) and (c)

Question 7
To specify the coordinates of the rectangle, we use fillRect in which format (where w is the width, h is the height, and x and y are the coordinates of the starting point)?
(x, y, h, w)
(w, h, x, y)
(h, w, x, y)
(x, y, w, h)

Question 8
The ________ method draws an image to a canvas.
drawCanvas
createImage
drawImage
drawImage

Question 9
The ________ specifies the color of the rectangle
fillStyle
strokeRect
fill
fillRect

Question 10
By default, the coordinates (0, 0) represent which of the following?
the upper-left corner of a canvas
the center of a canvas
the bottom-left corner of a canvas
None of the above.

Question 11
________ allow(s) you to control the layering of shapes and images on a canvas
Gradients
Compositing
Patterns
1SVG

Question 12
________ have a starting point, an ending point and two control points through which the curve passes
Ellipses
Bezier curves
Circles
Quadratic curves

Question 13
The ________ method can draw a circle to the canvas.
arcJoin
arc
circle
arcTo

Question 14
The ________ method starts the path
startPath
lineTo
beginPath
moveTo

Question 15
The ________ method allows you to skew, scale, rotate and translate elements without using separate transformation methods
transform
animation
translate
transformation

Question 16
Which of the following is false?
If the width and height are 0, no stroke will appear.
If the width and height are 0, no stroke will appear.
If the height is 0, the result will be a line, not a rectangle.
None of the above.

Question 17
Which of the following is not a possible textAlign attribute value?
bottom
left
start
end

Question 18
Which of the following statements is false?
The y-coordinate is the vertical distance upward from the bottom border of a canvas.
The x-coordinate is the horizontal distance to the right from the left border of a canvas.
A coordinate pair has both an x-coordinate (the horizontal coordinate) and a y-coordinate (the vertical coordinate)
Coordinate space units are measured in pixels (“picture elements”), which are the smallest units of resolution on a screen

Question 19
The canvaselement’: s default width is ________.
100
300
0
150

Question 20
When creating patterns using the createPatternmethod, the value repeat ________.
repeats the pattern horizontally
repeats the pattern vertically
is an invalid value
Both (a) and (b)

Solution PreviewSolution Preview

This material may consist of step-by-step explanations on how to solve a problem or examples of proper writing, including the use of citations, references, bibliographies, and formatting. This material is made available for the sole purpose of studying and learning - misuse is strictly forbidden.

Question 1: The answer is collision detection
Question 2: The answer is save
Question 3: The answer is textBaseline...
$40.00 for this solution

PayPal, G Pay, ApplePay, Amazon Pay, and all major credit cards accepted.

Find A Tutor

View available Web Development (HTML, XML, PHP, JavaScript, Adobe, Flash, etc.) Tutors

Get College Homework Help.

Are you sure you don't want to upload any files?

Fast tutor response requires as much info as possible.

Decision:
Upload a file
Continue without uploading

SUBMIT YOUR HOMEWORK
We couldn't find that subject.
Please select the best match from the list below.

We'll send you an email right away. If it's not in your inbox, check your spam folder.

  • 1
  • 2
  • 3
Live Chats