Name:     ID: 
 
    Email: 

WebPage Design-Chapter # 15-Introduction to Scripting

True/False
Indicate whether the sentence or statement is true or false.
 

 1. 

A script is a series of instructions carried out by the computer to achieve a goal.
 

 2. 

Scripts are interpreted by the scripting engine.
 

 3. 

Web pages can contain both server- and client-side scripts.
 

 4. 

Client-side scripts help to reduce the resource load on the Web server.
 

 5. 

JavaScript can be used for client-side scripts.
 

 6. 

JavaScript is not case sensitive.
 

 7. 

HTML and JavaScript only differ in where the script is interpreted.
 

 8. 

Looping statements can cause segments of code to be repeated.
 

 9. 

An if then else statement is an example of a conditional statement.
 

 10. 

A for next loop typically uses a counter variable to determine when to stop executing a section of code.
 

 11. 

The scripting engine on the server compiles server-side code.
 

 12. 

The <SCRIPT> tag is used to insert client-side JavaScript into Web pages.
 

 13. 

JavaScript is an object-oriented scripting language.
 

 14. 

Scripts can only be written in JavaScript.
 

 15. 

Server-side scripts can interact with other programs, including databases.
 

Multiple Choice
Identify the letter of the choice that best completes the statement or answers the question.
 

 16. 

Scripts need to be interpreted by a ____.
a.
compiler
c.
scripting engine
b.
language interpreter
d.
Web page
 

 17. 

Scripts that are interpreted in the Web browser itself are normally referred to as ____.
a.
server-side scripts
c.
server-only scripts
b.
client-side scripts
d.
client-only scripts
 

 18. 

An advantage of client-side scripts is that they ____.
a.
reduce the load on the server
b.
interact with databases and other programs on the server
c.
are more efficient than other scripts
d.
are dependent on the browser
 

 19. 

An advantage of server-side scripts is that they ____.
a.
reduce the load on the server
b.
interact with databases and other programs on the server
c.
are more efficient than other scripts
d.
are dependent on the browser
 

 20. 

The language invented by Netscape to accomplish scripting is ____.
a.
VBScript
c.
Jscript
b.
ASP
d.
JavaScript
 

 21. 

The language invented by Microsoft to accomplish scripting is ____.
a.
VBScript
c.
Java
b.
ASP
d.
JavaScript
 

 22. 

Which container tag is used to designate client-side JavaScript?
a.
<JAVASCRIPT>
c.
<LANGUAGE>
b.
<SCRIPT>
d.
<CLIENTSIDE>
 

 23. 

To insert a comment into a client-side script in JavaScript, you can use ____.
a.
<!-- -->
c.
\\
b.
//
d.
**
 

 24. 

To insert a comment into an HTML page, you can use ____.
a.
<!-- -->
c.
\\
b.
//
d.
**
 

 25. 

Each action that an object-oriented object can perform is known as a(n) ____.
a.
action
c.
call
b.
attribute
d.
method
 

 26. 

In the JavaScript statement document.writeln, ____.
a.
document is the object and writeln is the method
b.
document is the method and writeln is the object
c.
writeln is the method and window is the object
d.
window is the method and writeln is the object
 

 27. 

Which JavaScript object can be used to display a pop-up window on the screen?
a.
document
c.
alert
b.
window
d.
location
 

 28. 

Which JavaScript object can be used to navigate to other pages in the browser?
a.
document
c.
alert
b.
window
d.
location
 

 29. 

Statements that cause a set of commands to be executed repeatedly until some certain condition is met are known as ____.
a.
conditional statements
c.
if then statements
b.
looping statements
d.
none of the above
 

 30. 

Statements that can cause different sets of code to be executed based on a comparison statement are known as ____.
a.
conditional statements
c.
for next statements
b.
looping statements
d.
none of the above
 



 
Submit          Reset Help