General Information
- Date: Wednesday, Nov 6, 2024
- 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.
- Posting any information in Piazza about the exam after taking it
is considered an academic integrity violation.
- Do not separate the pages of the exam (e.g., remove the staple).
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, quizzes, exercises, and projects including the following topics:
- HTML
- How to define tables.
- How to define ordered and unordered lists.
- Other tags you should be familiar with:
- <br />
- <strong></strong>
- <em></em>
- <h1></h1>
- <div></div>
- <span></span>
- <p></p>
- <pre></pre>
- <img>
- <a></a>
- JavaScript
- Variables and types: number, string, boolean, array(object), undefined, null
- String properties like length, and methods such as toLowerCase, toUpperCase, charAt, etc.
- Expressions
- Loops and nested loops
- Conditionals, nested ifs, if/else if
- Random values
- Pseudocode
- Defining your own functions - arguments, parameters, pass/copy by value, return values
- Scope, local variabls vs. global variables, var vs. let vs. const
- You need to know how to use the following functions: prompt,
document.write, Number, and alert
- Arrays - write code using arrays
- Array methods such as push, pop, shift, unshift, etc
The exam will NOT cover the following topics:
Practice Material
Some old exams can be found at PreviousExams.zip.
Please DO NOT ASSUME your exam will have all similar problems to these old exams. In other words, study everything in the slides, examples, and lecture videos, not just the topics covered on these old exams.
The best way to prepare is to practice problems
discussed / suggested in lecture, to study the projects you implemented, and review the lectures/slides/videos. I would suggest you set aside 50 minutes and take an old exam as if it was a real exam. Next check you answers and try to learn from your mistakes.