
Signature ____________________ Name _____________________
cs3fa_____
Student ID ___________________ Score:
Quiz 4
CSE 3
Fall 2006
Circle the correct answer.
1. In JavaScript, local variable declarations are placed:
A. inside a function definition
B. in the parens ( ) of a function
C. after the keyword local
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 the talk about Microsoft Vista, the key sequence to flip through the open windows as a 3D stack:
A. <Windows>+<Tab>
B. <Alt>+<Tab>
C. <Control>+<Tab>
D. <Shift>+<Tab>
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)