Skip to content

Midterm 1 Review

The following resources will help you prepare for the first midterm exam.

Sample Exam Questions

Take the sample exam on your own, closed book, without a computer. Set a 50-minute timer so you can practice finishing in the time alloted.

The actual exam will be similar in nature and length to the sample exam.

cs159_f25_practice-exam-1.pdf

Once you have finished the exam, enter your code into VSCode and test it. Make a list of mistakes you made so you can understand what to review and what to check during the test. Experiment with the code asking what else might be asked about it.

Review Videos

These videos are from previous semesters, but they are still relevant to the material we are covering! (You can ignore the week numbers, but the content is still the same.)

Each one covers about 1-2 weeks of material.

Video 1: Parts of a Program Review (Variables, Printing, Methods)

Video 2: Types and Casting Review (Operators, Expressions, Comparisons, Logic, Conditionals, While Loops)

Video 3: Loops, Arrays, and Strings Review

Video 4: Classes Review (Writing a Simple Class)

Extra Practice

CodingBat is a great resource for practicing writing Java code without any assistance.

The first exam includes topics from the following categories:

  • Logic-1 and Logic-2
  • Array-1 and Array-2
  • String-1 and String-2