ADVANCED TOPICS IN COMPILER DESIGN
CODE GENERATION FOR OBJECT ORIENTED LANGUAGES
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
Because scripts are needed to control presentation of content styles.
|
|
Because scripts are needed to protect the copyrights of a page.
|
|
Because scripts are needed to provide semantic markup of the content.
|
|
Because scripts are needed to support dynamic Web page behavior.
|
Detailed explanation-1: -JavaScript is a text-based programming language that’s commonly used to make webpages more dynamic and interactive for visitors.
Detailed explanation-2: -Because it is a front-end and client-side language, the code can be read directly via a browser quickly and without it having to be sent and read by a far-off server in addition to a client.
Detailed explanation-3: -Referencing JavaScript as an external file in HTML: Embedding an external JavaScript file references the JavaScript file in the HTML text. Embedding as a reference allows externally noted JavaScript files to be loaded on multiple pages without having to note them directly as verbose JavaScript elements in HTML files.
Detailed explanation-4: -Client-side scripting Such web pages use presentation technology called rich interfaced pages. Client-side scripting languages like JavaScript or ActionScript, used for Dynamic HTML (DHTML) and Flash technologies respectively, are frequently used to orchestrate media types (sound, animations, changing text, etc.)