Exam 2 Review
The exam will cover Chapter 2 - Chapter 4, excluding Sections 2.14, 3.8, 3.10, and 4.11 (also excluding Section 4.10). The exam will also cover arrays (Section 8.1 - 8.2). The exam will focus on material that was covered in lecture after
the first exam but may also
include material that was covered prior to the first exam.
You are allowed a single 8.5"x11" page of notes, hand-written,
two sides, to bring into the exam. If you bring any other kind of notes
with you (for example, typed notes), they will be taken away from you during the exam.
Monday's class (5/11/09) will be a review for the exam.
Types of questions to expect (not an exhaustive list)
The exam format will be similar to the first exam, but perhaps a bit longer.
Types of questions to expect are:
- Short-answer questions
- Tell what the output is of a piece of code
- Draw a control-flow diagram (flow chart) of a program
- Find errors in a short piece of code
- Write pseudocode for a program description
- Write a few lines of code, for example a short loop
- Fill in a truth table for a boolean expression
Good review exercises from the book
Chapter 3
Multiple Choice and True/False: 4, 6, 7, 9, 11, 12, 14, 16, 21
Find the error: 1, 3, 5, 6, 7
Algorithm Workbench: 6, 7, 8, 10
Short Answer: 4, 5, 7, 8
Programming Challenges: 11, 15
Chapter 4
Multiple Choice and True/False: 1 - 10, 12, 13, 15, 16, 18, 19 - 22, 25, 26
Find the error: 4
Algorithm Workbench: 1, 2, 3, 9, 11, 12, 14
Short Answer: 3, 7, 8, 18
Programming Challenges: 1, 4, 14