CMSC198N Midterm #2
Date: Friday, April 11, 2008
Time/Location: Your exam will
take place in lecture.
Exam Structure
- The exam will have a duration of 50 minutes.
- The exam will be closed book/closed notebooks. No calculators are
allowed. (We recommend using a pencil and eraser, rather than a
pen.)
- Format:
- Short answer questions: This includes for example,
multiple choice, True/False and fill-in-the-blank type
questions.
- Code analysis questions: We will give a short segment of code
and you may be asked to identify syntax and logical errors, generate
code output, etc.
- Code Writing: Write a program/code snippets to solve a
few given problems.
Topics
The exam will include the material covered in lecture and projects. In specific:
- Only the following HTML
- How to define tables
- How to define ordered and unordered lists
- Variables
- Expressions
- While loops, do while loops, for loops
- Conditionals
- Pseudocode
- You should understand how to use the prompt, confirm, Number, document.writeln, and alert functions
- Events
- Event-Driven Programming
- Defining your own functions
- Parameters, Arguments
- Local/Global Variables
- Scope
- Random number generation
- Pass by value
- Arrays (one-dimensional arrays)
- Memory diagrams
- DOM
- null
- undefined
- Compound assignment operators
- Switch statement
- The exam will NOT cover the following topics:
- CSS
- Animation
- Forms
- Form elements
- Debugger
- Komodo
- Get vs. Post
- PHP
- Cookies
- Security of the web
- Two-Dimensional Arrays
Practice Material
Exercises in your textbook represent good practice material. In addition, the following practice questions (PracticeQuestionsMid2.pdf) which will give you an idea of the format associated with the exam.
Web Accessibility