Server Side And Client Side Scripting - Study Mode

[#51] The HTML5 specification includes
Correct Answer

(D) All of the mentioned

Explanation

Solution: 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 the data storage and graphics APIs.

[#52] Which of the following are not advanced services?
Correct Answer

(D) None of the mentioned

Explanation

Solution: All the above mentioned are advanced services.

[#53] JavaScript code between a pair of “script” tags are called
Correct Answer

(D) Inline

Explanation

Solution: Inline code are those that are writeen between a pair of “script” tags.

[#54] Client-side JavaScript code is embedded within HTML documents in
Correct Answer

(C) A URL that uses the special javascript:protocol

Explanation

Solution: The Client-side JavaScript code is embedded within HTML documents in four ways : 1. Inline, between a pair of “script” tags 2. From an external file specified by the src attribute of a “script” tag 3. In an HTML event handler attribute, such as onclick or onmouseover 4. In a URL that uses the special javascript: protocol.

[#55] What is the programming philosophy that argues that content and behaviour should as much as possible be kept separate?
Correct Answer

(A) Unobtrusive JavaScript

Explanation

Solution: A programming philosophy known as unobtrusive JavaScript argues that content (HTML) and behavior (JavaScript code) should as much as possible be kept separate. According to this programming philosophy, JavaScript is best embedded in HTML documents using “script” elements with src attributes.