The midterm is a 50-minute closed-book written exam that will be held during the lecture (in the same room) on Monday February 25th at 8:30am.
The midterm is closed-book: the exam will be written on paper and no computers, calculators, books, notes, or other aids are permitted. This includes scratch paper. You will be provided with extra paper to work with.
Please bring you SFU student ID card to the exam: we will be checking it during the exam. If you don’t have a student ID, we will have to interrupt you and ask that you retrieve it!.
The midterm will cover class notes up to, and including Sound in Processing. You should be comfortable with the material used in the assignments.
Note that the emphasis is programming, and understanding the tools Processing. So you will not be expected to derive any of the trickier mathematical expressions.
While the exam could have any kind of question (short answer, true/false, multiple choice, etc), you should expect at least to be asked to:
A great source for sample exercises is the website CodingBat. Notice that the questions on this site are in Java, so you will see function definitions such as:
public boolean func(int a) {...}
You should ignore the word public and treat the rest of the code as Processing code. After writing a solution to one of the questions in the box provided, pressing the “Go” button will cause CodingBat to test your solution, Showing green squares next to each test that your code passes, and red squares for tests that your code fails. You should pass all of the tests before continuing to the next question.
For the midterm, I assume that you are capable of answering all of the questions under the Logic-1 section.
Here is a sample midterm, prepared last term by Toby Donaldson, as well as some additional practice exercises.