General Information
- Date: Fri, Jan 22
- Time/Location: Your exam will take place in lecture.
- Duration: 50 minutes
- Closed-book, Closed-notebooks, No Computers/Calculators.
- Use a pencil/mechanical pencil (no pen) to answer the exam.
- Please take a look at the general exam rules available at
Exam Rules.
- Information about taking exams
Taking Exams.
- Posting any information in Piazza about the exam after taking it
is considered an academic integrity violation.
Exam Structure
- 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 given
problem. You should be prepared to give a complete program, but we may also
ask you to provide just a single function or a code fragment.
Topics
The exam will include all the material covered
in lecture and projects including the following topics:
- Only the following HTML
- How to define tables.
- How to define ordered and unordered lists.
- How to define forms using text fields, buttons and
submit buttons. You don't need to know any other form
elements (e.g., radio buttons, etc.)
- Other tags you should be familiar with:
- <br>
- <div></div>
- <p></p>
- <img>
- <a></a>
- <img>
- Only the following CSS properties
- CSS Selectors
- id selectors
- class selectors
- type selectors
- JavaScript
- JavaScript data types
- Expressions
- prompt
- alert
- console
- Iteration constructs(while, for in, etc.)
- Functions
- Form validation using JavaScript
- DOM
- document.getElementById
- getAttribute, setAttribute
- innerHTML
- charAt
- JavaScript object definition
- Object properties
- Objects as associative arrays
- strict mode
- Prototypes, constructor/prototype/default patterns
- Private variables, private functions
- JSON
- Localstorage
- Cookies
The exam will NOT cover the following topics:
- Server side includes
- XAMPP configuration
- jQuery Mobile
- You don't need to know the JavaScript code used to identify which element
has been selected in checkboxes, drop-down lists, scrollable
lists, radio buttons, textarea.
-
Regular expressions, iframe, video tag, audio tag,
canvas tag, svg tag, geolocation, Node.js.
- Sealing, freezing objects
- Error
- Ajax
- Framework information
Some Practice Material
The course cmsc389N covers both JavaScript and PHP. Some previous
exams can be found at previous389NMidterms.zip
Web Accessibility