- Date: Wednesday, October 4
- Time/Location: Your exam will take place in lecture.
- Duration: 50 minutes
- Closed-book, Closed-notebooks, No Computers/Calculators.
- Use a pencil/mechanical pencil (no pen) to answer the exam.
- Please take a look at the general exam rules available at
- Information about taking exams
- We curve in this course. After you have taken the exam, do not discuss
anything associated with the exam with other students that have
not taken the exam. Sharing information about the exam represents an academic
- Posting any information in Piazza about the exam after taking it
is considered an academic integrity violation.
- IMPORTANT (You need to come to your section)
If you come to any section other than your own we will not grade your exam.
We keep the piles separate and we will know how you took the exam and at which
- Short answer questions: This includes for example, multiple
choice, True/False and fill-in-the-blank type questions.
- Code analysis questions: We will give a short segment of code and
you may be asked to identify syntax and logical errors, generate code
- Code Writing: Write a program/code snippets to solve a given
problem. You should be prepared to give a complete program, including full
class heading, import, and main methods, but we may also
ask you to provide just a single method or a code fragment.
The exam will include all the material covered in discussion session (lab),
lecture, quizzes, and projects (1 through 3) including the following topics:
- Computer Organization
- Object-Oriented Terminology
- Java Variables and Types
- Expressions and Side Effects
- Java Numeric/String/Logical Operators
- Assignment Operators
- Short Circuiting
- Precedence/Associativity Rules (Only responsible for the operators: +, -, *, /, %, =)
- Scanner Class
- Conditional Statements
- Blocks and Scoping
- Loops (whiles, do whiles, for loops)
- Static methods
- String Class
- JOptionPane Class (methods used for input and output)
The exam will NOT cover the following topics:
- Constructors, instance variables, instance (non-static) methods, toString, equals method,
Eclipse, CVS, memory organization (Heap/Stack), how to create objects using new
Notice that some of this material may cover topics that are not part of the midterm.