31. Midterm Exam

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!.

31.1. Topcis Covered

The midterm will cover class notes up to, and including Sound in Processing. You should be comfortable with the material used in the assignments.

31.2. Kinds of Questions

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:

  • Write small Processing programs.
  • Examine some Processing program or code snippet and determine what it does.

31.3. Sample Questions

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.

31.4. Study Advice

  • Review the lecture notes. Type in the example programs and run them yourself. Play around with the variables workings of the programs to test your understanding of the program.
  • Answer all of the questions at the end of the notes. Answers to these questions will not be provided. If you are having difficulties with them, please come to the instructors office hours or talk to the TA.
  • Look at the course glossary. It defines many basic terms.

Previous topic

30. A Simple Sprice Class

Next topic

32. Final exam