in Education by
What is the purpose of the canvas element? (a) Creates drawing surface (b) Exposes powerful drawing API to client-side JavaScript (c) Creates drawing surface & Exposes powerful drawing API to client-side JavaScript (d) Creates a rectangular box This question was addressed to me in unit test. My enquiry is from Graphics topic in chapter Graphics and Rendering of JavaScript Select the correct answer from above options JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
The correct choice is (c) Creates drawing surface & Exposes powerful drawing API to client-side JavaScript Explanation: The HTML canvas element is used to draw graphics, on the fly, via JavaScript. The canvas element is only a container for graphics. The canvas element has no appearance of its own but creates a drawing surface within the document and exposes a powerful drawing API to client-side JavaScript.

Related questions

0 votes
    What is the purpose of the area element? (a) Area of the text (b) Shape and coordinates of the ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 22, 2021 in Education by JackTerrance
0 votes
    From which version of IE is canvas supported? (a) 7 (b) 8 (c) 9 (d) 6 I got this ... questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
0 votes
    If the size of the array used to implement a circular queue is MAX_SIZE. How rear moves to traverse ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 25, 2021 in Education by JackTerrance
0 votes
    Which of this interface must contain a unique element? (a) Set (b) List (c) Array (d) Collection ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 25, 2021 in Education by JackTerrance
0 votes
    Which of these methods sets every element of a List to a specified object? (a) set() (b) fill() ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 25, 2021 in Education by JackTerrance
0 votes
    Which attribute uniquely identification element? (a) ID (b) Class (c) Name (d) Scope This question ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
0 votes
    Which is the root element in a HTML document? (a) HTML (b) HEAD (c) SCRIPT (d) BODY This ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
0 votes
0 votes
    Which is the element that has a src property to initiate HTTP GET request? (a) img (b) iframe (c ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
    What will happen when the data of the jQuery.cache is read from an element? (a) Unique number is ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
...