C777 Unit 4: HTML5 APIs Questions and Answers (Graded A+)
application programming interface (API) - ANSWER-What is a collection of standards and programming instructions that enable access to a software application? Canvas API - ANSWER-Which API is used for rendering visual images on the fly via scripting? <canvas> - ANSWER-Which element is a transparent container for graphics? height and width - ANSWER-What two attributes does the <canvas> element have? rectangle - ANSWER-What primitive shape does canvas support? Document Object Model (DOM) - ANSWER-What is the standard specifying how objects in a Web document can be referred to and manipulated? JavaScript - ANSWER-Which language is used to access HTML elements via the DOM? getContext() - ANSWER-Which method returns a context object, which provides properties and methods that can be used to draw and manipulate images on the canvas? fillRect(x,y,width,height) - ANSWER-Which method draws a filled rectangle? strokeRect(x,y,width,height) - ANSWER-Which method draws a rectangular outline? clearRect(x,y,width,height) - ANSWER-Which method clears the specified area and makes it fully transparent? beginPath() - ANSWER-Which method begins a drawing path or resets the current path? closePath() - ANSWER-Which method ends the current drawing path? moveTo(x,y) - ANSWER-Which method moves the drawing pointer to a specified position? arc(x,y,radius,startAngle,endAngle,anticlockwise) - ANSWER-Which method draws a curving line with a center, a given radius, a starting and ending angle (in radians), and instruction to draw in a clockwise or counterclockwise direction? lineTo(x,y) - ANSWER-Which method draws a straight line from the current drawing position to the specified position? s
Written for
- Institution
- C777 Unit 4: HTML5
- Course
- C777 Unit 4: HTML5
Document information
- Uploaded on
- April 9, 2024
- Number of pages
- 5
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers
Subjects
-
c777 unit 4 html5 apis questions and answers gra
-
c777 unit 4 html5 apis stuvia
Also available in package deal