General Information
- Date: Friday, Apr 19, 2019
- 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.
- We may curve in this course. After you take the exam, do not discuss
anything associated with the exam with other students that have
not taken the exam yet.
- 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). This
will interfere with the scanning process.
- For practice problems, please see the
Exam 2 Worksheet. Note that this worksheet is provided for practicing the course material
and is not a guarantee of exactly what will be on the exam.
Exam Structure
- Short answer questions: This includes for example, multiple
choice, true/false, fill-in-the-blank, and 1-2 sentence answer type questions.
- Code analysis questions: We will give a 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/class,
but we may also ask you to provide just a single method or a code fragment.
Topics
The exam will include all the material covered in
lecture (mostly weeks 5-10), 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 /> or <br> (both acceptable)
- <strong></strong>
- <em></em>
- <h1></h1>, <h2></h2>, etc.
- <div></div>
- <span></span>
- <p></p>
- <pre></pre>
- <img>
- <a></a>
- JavaScript
- Variables (including local versus global)
- Expressions and logical operators (e.g. && and ||)
- Loops (while, do while, for)
- Conditionals (if, else if, else, switch)
- Break and continue
- Random values
- Primitive data types we’ve discussed (number, string, boolean, undefined, null)
- Pseudocode
- Defining your own functions and passing arguments
- Functions to convert between types (e.g. Number())
- Basics of arrays (most of the exam will be on material covered before arrays)
- How to create an array
- How to access and change elements (e.g. someArray[someIndex])
- How to get the length
- How to loop through it with a for loop
- How it is stored in a variable differently from primitives
- You should know how to use the following functions: prompt(), document.write(), window.open(), and alert()
The exam will NOT cover the following topics:
- Komodo Edit
- Bootstrap
- CSS
- Array methods (e.g. concat, splice, etc.) and multi-dimensional arrays
-
Writing recursion
(You won't have to write recursive code, but you should know what it is)
- Forms