CIW Course Revision Site


Tutor Marked Assignment JS TMA-01

In a Nutshell - CIW Course Section 2 Part A

JS TMA-01 - CD Access Code: not required

Q1. What will be displayed on the screen from the following code, and when will it be displayed:

<HTML>
<HEAD>
<TITLE>JavaScript</TITLE>
</HEAD>
<body bgcolor="LIGHTBLUE" onLoad="alert('Thank you for visiting this site!')">
</BODY>
</HTML>

Q2. JavaScript can store:

Q3. To run properly, client-side JavaScript must reside inside HTML:

Q4, Match each characteristic with it's correct definition:

 

Q5. JavaScript contains reserved words that cannot be used for variables names. Which of the following are reserved words:

Q6. Match the correct description to each Method:

 

Q7. JavaScript is:

Q8. Which of the following are basic rules for naming variables in JavaScript:

Q9. Match each OPERATOR to the TYPE:

 

Q10. Indicate which of the following are key characteristics of JavaScript:

Q11. Match the Expression type to the Function:

 

Q12. JavaScript contains predefined identifiers, called keywords, which cannot be used as variable names. Which of the following are keywords:

Q13. Match the operators with their definitions:

 

Q14. What will be displayed on the screen if the following code were inserted into a HTML page?

<SCRIPT LANGUAGE="JavaScript">
<!--
var a = 7 * 8 + 3;
a--;
alert(a);
//-->
</SCRIPT>

Hint: Consider every line of code, I jumped to a wrong comclusion!

Q15. What was the original name given to JavaScript?

Design by Stephen

Certified Internet Webmaster

Page last Edited: 25 Nov 2011