The CSE 142 midterm exam is usually very similar to the format of the practice exams. The following kinds of problems are often found on the exam:
To solve each problem, you will need to use various concepts and syntax taught throughout the course so far, such as System.out.println, expressions, variables, parameters, return, if/else, for/while loops, Scanner, and Random. Part of the challenge is in figuring out which tools to use and how to use them together to solve the problem at hand.