Study Guide
First Midterm Exam: Wed, Feb. 28, 2007
The exam will be in class, and you will have 50 minutes to complete it.
It will be closed book, closed notes, and no discussions allowed with class mates during the exam.
Here is a list of topics that you should be able to explain or use in a program.
Understanding these topics well will help you do well on the exams.
This is a guide, not a guarantee. I intend for it to help you, but questions on the exam
can come from any material we have studied in this class.
-
the main components of a computer system
-
internal representation of information in a computer... bits, bytes, words, binary
-
the fetch/execute cycle
-
The structure of an HTML document (head, body, etc.) and the location(s) of JavaScript programs
within that structure
-
HTML tags... what are the common ones, what do they do in the browser window
-
variable declaration... creating storage in your program
-
assignment... storing values in variables
-
array varibles
-
data types: numeric, string, boolean
-
constants and flag data values
-
simple arithmetic on numeric data
-
for loop
-
while loop
-
conditional statements: if, if-then, if-then-else, if-then-elseif
-
comparison of data values (less than, greater than, less than or equal, equal, etc.)
-
input via prompt and confirm
-
input via form fields
-
simple output via alert
-
HTML output via document.write()
-
functions
-
passing parameters into functions