Docsity

Comprehensive HTML5 Application Programming Interface Review Questions and Verified Answer, Exams of Nursing

Toggle sidebar
bg1
Comprehensive HTML5 Application Programming
Interface Review Questions and Verified Answers for C777
Unit 4 Coursework
What is a collection of standards and programming instructions that enable access
to a software application? - correct answer ✅application programming interface
(API)
Which API is used for rendering visual images on the fly via scripting? - correct
answer ✅Canvas API
Which element is a transparent container for graphics? - correct answer
✅<canvas>
What two attributes does the <canvas> element have? - correct answer ✅height
and width
What primitive shape does canvas support? - correct answer ✅rectangle
What is the standard specifying how objects in a Web document can be referred to
and manipulated? - correct answer ✅Document Object Model (DOM)
Which language is used to access HTML elements via the DOM? - correct answer
✅JavaScript
Which method returns a context object, which provides properties and methods
that can be used to draw and manipulate images on the canvas? - correct answer
✅getContext()
Which method draws a filled rectangle? - correct answer
✅fillRect(x,y,width,height)
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Comprehensive HTML5 Application Programming Interface Review Questions and Verified Answer and more Exams Nursing in PDF only on Docsity!

Interface Review Questions and Verified Answers for C

Unit 4 Coursework

What is a collection of standards and programming instructions that enable access to a software application? - correct answer ✅application programming interface (API) Which API is used for rendering visual images on the fly via scripting? - correct answer ✅Canvas API Which element is a transparent container for graphics? - correct answer ✅ What two attributes does the element have? - correct answer ✅height and width What primitive shape does canvas support? - correct answer ✅rectangle What is the standard specifying how objects in a Web document can be referred to and manipulated? - correct answer ✅Document Object Model (DOM) Which language is used to access HTML elements via the DOM? - correct answer ✅JavaScript Which method returns a context object, which provides properties and methods that can be used to draw and manipulate images on the canvas? - correct answer ✅getContext() Which method draws a filled rectangle? - correct answer ✅fillRect(x,y,width,height)

Interface Review Questions and Verified Answers for C

Unit 4 Coursework

Which method draws a rectangular outline? - correct answer ✅strokeRect(x,y,width,height) Which method clears the specified area and makes it fully transparent? - correct answer ✅clearRect(x,y,width,height) Which method begins a drawing path or resets the current path? - correct answer ✅beginPath() Which method ends the current drawing path? - correct answer ✅closePath() Which method moves the drawing pointer to a specified position? - correct answer ✅moveTo(x,y) 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? - correct answer ✅arc(x,y,radius,startAngle,endAngle,anticlockwise) Which method draws a straight line from the current drawing position to the specified position? - correct answer ✅lineTo(x,y) Which method adds a line to the path drawn? - correct answer ✅stroke()

Interface Review Questions and Verified Answers for C

Unit 4 Coursework

Which API provides the ability to determine a user's location? - correct answer ✅geolocation API Which method retrieves the current geographic location of the user? - correct answer ✅getCurrentPosition() Which method retrieves periodic updates about the current geographic location of the user? - correct answer ✅watchPosition() Which method cancels an ongoing watchPosition() call? - correct answer ✅clearWatch() Which API allows a user to grab an object on a computer screen and move it to a different location on the screen? - correct answer ✅Drag-and-drop API Which event specifies where the dragged data can be dropped? - correct answer ✅dragover Which attribute make an element draggable? - correct answer ✅draggable="true" Which method prevents default action where data elements cannot be dropped in other elements? - correct answer ✅preventDefault() Which event is called when a page element is dropped after being dragged? - correct answer ✅drop

Interface Review Questions and Verified Answers for C

Unit 4 Coursework

Which event listener triggers the drag event? - correct answer ✅ondragstart Which API provides a standard way to interact with files on the client machine using a Web browser? - correct answer ✅File API Which statement is the simplest way to reference several files at once? - correct answer ✅ Which interface provides a directory list of file objects. You can list information such as the file name, MIME type and size? - correct answer ✅FileList Which interface provides read-only access to individual files, such as images? - correct answer ✅FileReader What data type is a collection of data stored as a single entity and provides the ability to divide a file into byte ranges? - correct answer ✅Blob (Binary Large Object) Which API allows you to add, change and delete URLs and titles in the browser history field? - correct answer ✅History API Which method sends the browser back one page in the history? - correct answer ✅history.back()

Interface Review Questions and Verified Answers for C

Unit 4 Coursework

How do you create a new XMLHttpRequest object? - correct answer ✅xmlhttp=new XMLHttpRequest(); What technique is used to transmit data between a server and a web application without disturbing page display? - correct answer ✅AJAX What JavaScript library make it much easier to incorporate scripting on your website? - correct answer ✅jQuery Which jQuery command selects instances of the specified element based on the element name? - correct answer ✅$("a") Which jQuery command selects the elements with the specified ID attribute? - correct answer ✅$("#custname") Which jQuery command selects all elements with the specified class? - correct answer ✅$(".demo") Which jQuery command selects all HTML elements in the document? - correct answer ✅$("*") Which jQuery command selects the current HTML element? - correct answer ✅$ (this) Which jQuery command selects all instances of the specified element with the specified class? - correct answer ✅$("a.demo")

Interface Review Questions and Verified Answers for C

Unit 4 Coursework

Which jQuery command selects the first instance of the specified element on a page? - correct answer ✅$("a:first") Which jQuery command selects all elements with the specified attribute? - correct answer ✅$("[href]") Which jQuery command selects all instances of an element element with the specified attribute and value? - correct answer ✅$("a[target='_blank']") Which jQuery command specifies that the code will not run until the document has finished loading? - correct answer ✅document.ready Which jQuery method sets or returns the text content of selected elements? - correct answer ✅text() Which jQuery method sets or returns the content of selected elements (including HTML markup)? - correct answer ✅html() Which jQuery method sets or returns the values of form fields? - correct answer ✅val() Which jQuery method is used to get and set attribute values? - correct answer ✅attr()

Interface Review Questions and Verified Answers for C

Unit 4 Coursework

What characteristic of all browsers means you do not need to develop multiple versions of your scripts tailored for each browser? - correct answer ✅all browsers are DOM-compliant What technologies make up HTML5 APIs - correct answer ✅HTML5, CSS and JavaScript