A JavaScript program can traverse and manipulate document content through………..
a) Element Object
b) Document Object
c) Both Element and Document Object
d) Data object
Explanation: A JavaScript program can traverse and manipulate document content through the Document object and the Element objects it contains. It can alter the presentation of that content by scripting CSS styles and classes. The Element object represents an HTML element, like P, DIV, A, TABLE, or any other HTML element.
The behaviour of the document elements can be defined by……….
a) Using document object
b) Registering appropriat event handlers
c) Using element object
d) Using data element
Explanation: The JavaScript program can define the behavior of document elements by registering appropriate event handlers. A JavaScript program can traverse and manipulate document content through the Document object and the Element objects it contains.
The service(s) that enables networking through scripted HTTP requests is………
a) XMLHttpResponse
b) XMLRequest
c) XMLHttpRequest
d) XMLHttps
Explanation: The best known advanced services is the XMLHttpRequest object, which enables networking through scripted HTTP requests. The XMLHttpRequest object can be used to request data from a web server.
The HTML5 specification does not includes……….
a) Data storage
b) Graphics APIs
c) Other APIs for web apps
d) Networking
Explanation: The HTML5 specification (which, at the time of this writing, is still in draft form) and related specifications are defining a number of other important APIs for web apps. These include data storage and graphics APIs.The data storage api can store data locally within the user’s browser.
Which of the following is not an advanced services?
a) Data storage
b) Networking
c) XMLHttpRequest object
d) Graphics APIs
Explanation: Data storage is used to store data locally on user’s computer and networking is used for connecting between different platforms.
JavaScript code between a pair of “script” tags are called……………
a) Non-inline
b) External
c) Referenced
d) Inline