
Signature ____________________ Name _____________________
cs3wb_____
Student ID ___________________ Score:
Quiz 4
CSE 3
Winter 2007
Circle the correct answer.
1. In JavaScript, global variable declarations are placed:
A. inside the curly braces { } of a function definition
B. in the parens ( ) of a function
C. after the keyword global
D. inside <script> </script> tags
2. The JavaScript statement that is used to insert HTML code or text into a page as it is being rendered:
A. document.render()
B. document.insert()
C. document.print()
D. document.write()
3. In Microsoft Excel, which of the following is a valid cell range:
A. 4C:8D
B. C4-D8
C. 4C-8D
D. C4:D8
4. In the if statement โ if ( exp ) โ the exp part must be:
A. an assignment statement
B. a boolean statement
C. a string
D. an arithmetic expression (an expression using arithmetic operators like +, -, *, /)
5. Input controls like buttons using the <input> tag are usually enclosed in
A. <script> </script> tags
B. if or if-else statements
C. <form> </form> tags
D. <p> </p> tags
6. Given the assignment document.X.Y.Z = 420; which of the following naming is correct:
A. attribute Z on input element Y in form X on this document
B. attribute X in input element Y in form Z on this document
C. input element X in form Y with attribute Z on this document
D. attribute document in input element Z on form Y in table X on this html page
(Over)