Contents

The web development environment (JavaScript) offers which standard construct for data validation of the input entered by the user.
a) Controlled loop constructs
b) Server page access
c) Client side Event
d) Permit server-side

a

Explanation: JavaScript provides with for, while loops and if, else, switch cases for checking the information entered by the user. Additionally, all development environments provide syntax to create and use memory variables, constants, and functions.


The main purpose of a “Live Wire” in NetScape is to………….
a) Create linkage between client side and server side
b) Permit server side, JavaScript code, to connect to RDBMS
c) Support only non-relational database
d) To interpret JavaScript code

b

Explanation: A Live Wire database driver also supports a number of non-relational databases.


The script tag must be placed in………..
a) the head tag
b) the head or body
c) the title or head               
d) after the body tag

b

A JavaScript program developed on a Unix Machine…………
a) will throw errors and exceptions
b) must be restricted to a Unix Machine only
c) will work perfectly well on a Windows Machine
d) will be displayed as a JavaScript text on the browser

c

Explanation: JavaScript can be executed on different operating systems therefore the program developed on UNIX will work perfectly fine on windows also.


JavaScript is ideal to………….
a) make computations in HTML simpler
b) minimize storage requirements on the web server
c) increase the download time for the client
d) increase the loading time of the website

b

Explanation: JavaScript helps in performing various tasks with minimum storage requirements. Therefore to minimize storage requirements, JavaScript is always a better say.


Which attribute is used to specify that the script is executed when the page has finished parsing? (only for external scripts)
a) parse                                 
b) a sync
c) defer                                 
d) type

c

Explanation: The defer attribute is a Boolean attribute. When present, it specifies that the script is executed when the page has finished parsing.