|
You're responsible for everything that's been covered, anywhere, at any time, in the class.
|
To Get partial credit on the exam: Comment your code !
Question Types:
Write code that does X
Find all the errors in sample code
You don't get penalized for incorrect "errors"
Tell me what this code does/prints/etc
Question Topics:
HTML: Basic stuff we need to do JavaScript
TABLE
SCRIPT Tag
Debugging
3 methods
WebDeveloper
any others you've found
external files
Document.write
newlines - JavaScript ("\n") vs. HTML ("<BR>")
Alert, prompt
switch
for loops
while loops
if, if...else
'accumulator' pattern
functions
parameters
returning values
local vs. global variables
toString
Operators
all operators covered in class
logical operators = and, or, not
modulus ( % )
--, ++ - which side?
Arrays
Basic (Java-style) usage
built-in methods
Objects
data fields
methods
toString
for...in
arrays of objects
an object with an array as a property (data field)
Event Handlers: onClick, onMouseOver
NOT ON THE EXAM:
Navigator object
Document object
Laundry list of event handlers
"Vocabulary questions" (e.g., define what encapsulation is)
o You are expected to know what the words mean, though J
Disclaimer: This is a suggested list of topics that you might focus on. The presence of an item on this list does not guarantee that it will be on the midterm exam. Likewise, the absence of a topic from the list does not guarantee that the topic will be absent from the exam. The exam will cover everything that has been covered in this class (in lecture, in the reading, and in the in-class exercises), and may draw upon topics from any pre-requisite classes as well.